diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-10-23 17:23:59 +0200 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-10-24 11:19:03 -0700 |
commit | 2b35d738f42386e52fdddeb639180ab5db8f072f (patch) | |
tree | 202d9526bedfd16b32ffa5c89e06994cc1adb0c2 /world/map/npc/031-2 | |
parent | 53d83056e03af47c2d50da0949616d74f58ad53c (diff) | |
download | serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.tar.gz serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.tar.bz2 serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.tar.xz serverdata-2b35d738f42386e52fdddeb639180ab5db8f072f.zip |
Changes in npc scripts on 031-x:
- change zeny to Zeny and baselevel to BaseLevel
- set temporary variables to zero at the end of script
- some adaptions on timer handling on the yeti fight
Diffstat (limited to 'world/map/npc/031-2')
-rw-r--r-- | world/map/npc/031-2/angelaHouse.txt | 33 | ||||
-rw-r--r-- | world/map/npc/031-2/cindyHouse.txt | 21 |
2 files changed, 37 insertions, 17 deletions
diff --git a/world/map/npc/031-2/angelaHouse.txt b/world/map/npc/031-2/angelaHouse.txt index dbc82681..4960a5f1 100644 --- a/world/map/npc/031-2/angelaHouse.txt +++ b/world/map/npc/031-2/angelaHouse.txt @@ -1,9 +1,7 @@ // author: Jenalya -// reviewed by: // state0, 1, 2: you shouldn't be able to come here // state3: it's your first visit, you can choose a reward // state4: you can do daily quests with white and yellow presents boxes -// 031-2.gat,29,28,0|script|Angela|196,{ @@ -16,7 +14,7 @@ if (@rescue_Cindy == 3) goto L_Reward; mes "..."; - close; + goto L_Close; L_Reward: mes "[Angela]"; @@ -43,11 +41,11 @@ L_Reward: mes "\"Usually, Yetis are very shy - I wonder why they did that. There is something strange going on.\""; next; mes "\"May I ask you for help again? I'll give you a small reward for every 3 boxes of one color you bring me.\""; - close; + goto L_Close; L_Full_Inv: mes "\"Oh, it seems you carry so much stuff - I will keep it for you until you can take it.\""; - close; + goto L_Close; L_Hello_Again: mes "[Angela]"; @@ -57,7 +55,7 @@ L_Hello_Again: "I just wanted to say hello.",-, "I have some yellow present boxes.",L_Yellow, "I have some white present boxes.",L_White; - close; + goto L_Close; L_Yellow: set @dq_level, 70; @@ -70,9 +68,9 @@ L_Yellow: callfunc "DailyQuest"; next; - if (@dq_return ==4) + if (@dq_return == 4) mes "\"Santa will be glad to have them back.\""; - close; + goto L_Close; L_White: set @dq_level, 80; @@ -85,8 +83,23 @@ L_White: callfunc "DailyQuest"; next; - if (@dq_return ==4) + if (@dq_return == 4) mes "\"You are a great help!\""; + goto L_Close; + +L_Close: + set @Q_Nivalis_state_MASK, 0; + set @Q_Nivalis_state_SHIFT, 0; + set @rescue_Cindy, 0; + + set @dq_level, 0; + set @dq_cost, 0; + set @dq_count, 0; + set @dq_name$, ""; + set @dq_friendly_name$, ""; + set @dq_money, 0; + set @dq_exp, 0; + set @dq_return, 0; close; S_Update_Mask: @@ -94,4 +107,4 @@ S_Update_Mask: (QUEST_Nivalis_state & ~(@Q_Nivalis_state_MASK)) | (@rescue_Cindy << @Q_Nivalis_state_SHIFT); return; -}
\ No newline at end of file +} diff --git a/world/map/npc/031-2/cindyHouse.txt b/world/map/npc/031-2/cindyHouse.txt index beae6e0a..13db7106 100644 --- a/world/map/npc/031-2/cindyHouse.txt +++ b/world/map/npc/031-2/cindyHouse.txt @@ -1,8 +1,6 @@ // author: Jenalya -// reviewed by: // state0,1,2: you shouldn't be able to reach this place // state3 and greater: Cindy is saved, she says one of some random phrases -// 031-2.gat,27,26,0|script|Cindy|197, { @@ -14,14 +12,13 @@ if (@rescue_Cindy > 2) goto L_Happy_Random; mes "..."; - close; + goto L_Close; L_Happy_Random: getinventorylist; set @candy, rand(50); - if (@inventorylist_count < 100 - && @candy == 42) - goto L_Candy; + if (@inventorylist_count < 100 && @candy == 42) + goto L_Candy; setarray @quote_Cindy$, "Thank you so much for rescuing me!", "My mother made really tasty cookies yesterday. But I already ate them all...", @@ -38,12 +35,22 @@ L_Happy_Random: set @quote$, "\"" + @quote_Cindy$[@random] + "\""; mes "[Cindy]"; mes @quote$; - close; + goto L_Close; L_Candy: mes "[Cindy]"; mes "\"Santa gave me some candy! Please, take that!\""; getitem "Candy", 1; + goto L_Close; + +L_Close: + set @Q_Nivalis_state_MASK, 0; + set @Q_Nivalis_state_SHIFT, 0; + set @rescue_Cindy, 0; + set @candy, 0; + set @inventorylist_count, 0; + set @random, 0; + set @quote$, ""; close; S_Update_Mask: |