diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-22 22:26:08 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-22 22:26:08 -0300 |
commit | 55bd7b7d2eab6448d9515c0d2ac059f3ef281202 (patch) | |
tree | d294aa458cc1b91a44e7c4238d161e346bd2f9f3 | |
parent | f6aa539309218be5cfbc2cf5cae4e6e5cb94de4c (diff) | |
download | serverdata-55bd7b7d2eab6448d9515c0d2ac059f3ef281202.tar.gz serverdata-55bd7b7d2eab6448d9515c0d2ac059f3ef281202.tar.bz2 serverdata-55bd7b7d2eab6448d9515c0d2ac059f3ef281202.tar.xz serverdata-55bd7b7d2eab6448d9515c0d2ac059f3ef281202.zip |
Hasan tracks amount of money collected for a yearly quest with 3 months duration.
-rw-r--r-- | npc/003-1/hasan.txt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/npc/003-1/hasan.txt b/npc/003-1/hasan.txt index 29f47d0a9..aeef80c63 100644 --- a/npc/003-1/hasan.txt +++ b/npc/003-1/hasan.txt @@ -20,6 +20,11 @@ // 3 - Sorfina unlocked Mahoud's Basement // 4 - Player killed Murderer Scorpion // 5 - Quest is complete +// +// $HASAN_ST +// Number of Scorpions killed during Autumn +// $HASAN_GP +// Total money Hasan collected for Autumn event // Temporary sprite 003-1,62,148,0 script Hasan NPC_ELVEN_MAN_RED,2,2,{ @@ -71,6 +76,10 @@ L_Finish: L_Complete: mesn; mesq l("Thanks for avenging my father."); + next; + mesn; + mesq l("I am collecting money for the Yearly Autumn Scorpion Hunter quest."); + mesq l("You're, of course, invited. Thus far, the total prize money I've collected is @@ GP.", $HASAN_GP); close; L_TouchComplete: @@ -92,7 +101,9 @@ L_Steal: end; L_DoSteal: - Zeny=Zeny-rand(3,12); + .@s=rand(3,12); + $HASAN_GP=$HASAN_GP+.@s; + Zeny=Zeny-.@s; if (getq(TulimsharQuest_Hasan) == 0) setq TulimsharQuest_Hasan, 1; dispbottom l("##BYou were stolen##b by an evil NPC."); @@ -105,5 +116,10 @@ OnInit: //npcspeed(150); //npcwalkto(<x>, <y>); + // Create initial GP poll + if ($HASAN_GP == 0) + $HASAN_GP=rand(3,12)+rand(3,12)+rand(3,12); end; + + } |