"A Greeting Cardian" work in progress

Post Reply
ik2012
Posts: 53
Joined: Fri Nov 16, 2012 2:03 pm

"A Greeting Cardian" work in progress

Post by ik2012 » Sun Dec 16, 2012 11:28 pm

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
Last edited by ik2012 on Mon Dec 17, 2012 10:45 am, edited 1 time in total.

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: "A Greeting Cardian" work in progress

Post by bluekirby0 » Mon Dec 17, 2012 9:04 am

Code: Select all

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

ik2012
Posts: 53
Joined: Fri Nov 16, 2012 2:03 pm

Re: "A Greeting Cardian" work in progress

Post by ik2012 » Mon Dec 17, 2012 10:44 am

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!
Attachments
A Greeting Cardian.zip
(4.84 KiB) Downloaded 169 times

Flunklesnarkin
Posts: 238
Joined: Wed Sep 05, 2012 10:48 am

Re: "A Greeting Cardian" work in progress

Post by Flunklesnarkin » Mon Dec 17, 2012 3:53 pm

Nice work, welcome to the project.

ik2012
Posts: 53
Joined: Fri Nov 16, 2012 2:03 pm

Re: "A Greeting Cardian" work in progress

Post by ik2012 » Mon Dec 17, 2012 6:38 pm

Thanks, glad to be here :D

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: "A Greeting Cardian" work in progress

Post by whasf » Mon Dec 17, 2012 7:13 pm

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); 
-- Whasf

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: "A Greeting Cardian" work in progress

Post by whasf » Mon Dec 17, 2012 7:34 pm

Added r2105
-- Whasf

ik2012
Posts: 53
Joined: Fri Nov 16, 2012 2:03 pm

Re: "A Greeting Cardian" work in progress

Post by ik2012 » Mon Dec 17, 2012 8:00 pm

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

Flunklesnarkin
Posts: 238
Joined: Wed Sep 05, 2012 10:48 am

Re: "A Greeting Cardian" work in progress

Post by Flunklesnarkin » Tue Dec 18, 2012 6:32 pm

I'll run through this soon so I can be one step closer to Scentless Armlets ^^

ik2012
Posts: 53
Joined: Fri Nov 16, 2012 2:03 pm

Re: "A Greeting Cardian" work in progress

Post by ik2012 » Tue Dec 18, 2012 6:47 pm

I'll have that quest up by the end of the week, if not tomorrow. 8-)

Post Reply