Page 1 of 1

"A Greeting Cardian" work in progress

Posted: Sun Dec 16, 2012 11:28 pm
by ik2012
Hi all. My first attempt at scripting and so far it has been going...slowly. Until today when I hit a brick wall. I should have the quest mostly finished, and my test character has the correct pre-requisites complete. The start NPC only displays the default dialog instead of launching the quest when the pre-requisites are met so I am confused as to where to turn next. Is anyone willing to check my work for anything obvious? I am definitely a novice and I always get tripped up on small things whenever I try to code anything. Any help would be appreciated!

-EDIT- Removed .zip file

Re: "A Greeting Cardian" work in progress

Posted: Mon Dec 17, 2012 9:04 am
by bluekirby0

Code: Select all

if (C2000 == QUEST_COMPLETED and AGreetingCardian == QUEST_AVAILIABLE and player:getFameLevel (WINDURST) >= 3) then
You have to spell QUEST_AVAILABLE correctly.

Re: "A Greeting Cardian" work in progress

Posted: Mon Dec 17, 2012 10:44 am
by ik2012
Yuuuup! See what relying on spell check for years gets you kids? :oops: Quest appears to be working now, it flags and progresses as it should, just waiting on "JP Midnight" now to move it forward. Updated files are attached. Thanks bluekirby!

Re: "A Greeting Cardian" work in progress

Posted: Mon Dec 17, 2012 3:53 pm
by Flunklesnarkin
Nice work, welcome to the project.

Re: "A Greeting Cardian" work in progress

Posted: Mon Dec 17, 2012 6:38 pm
by ik2012
Thanks, glad to be here :D

Re: "A Greeting Cardian" work in progress

Posted: Mon Dec 17, 2012 7:13 pm
by whasf
Nice job! At the end of the quest please be sure to remove the player variables unless they need to hang on for some reason or another.

In onEventFinish() of Kororo.lua:

Code: Select all

player:setVar("AGreetingCardian_Event",0);
player:setVar("AGreetingCardian_timer",0); 

Re: "A Greeting Cardian" work in progress

Posted: Mon Dec 17, 2012 7:34 pm
by whasf
Added r2105

Re: "A Greeting Cardian" work in progress

Posted: Mon Dec 17, 2012 8:00 pm
by ik2012
Hey thanks for the add. :D

I did notice that Kopuro-Popuro has some supplemental text before the quest finishes, I was going to access that event variable in his script to offer that for the players. I am working on his script now to finish the next two quests in the line. I will definitely keep that in mind as I go forward though :D

Re: "A Greeting Cardian" work in progress

Posted: Tue Dec 18, 2012 6:32 pm
by Flunklesnarkin
I'll run through this soon so I can be one step closer to Scentless Armlets ^^

Re: "A Greeting Cardian" work in progress

Posted: Tue Dec 18, 2012 6:47 pm
by ik2012
I'll have that quest up by the end of the week, if not tomorrow. 8-)