diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2013-01-21 22:15:28 +0100 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2013-01-21 22:18:15 +0100 |
commit | d16185e9972e69d654bd642d30a2621aed0ea115 (patch) | |
tree | 553b18d8fb765ed9efe0890efa04f1cae4983ef9 /world/map/npc/007-1/voltain.txt | |
parent | 2dc34d78a7653959711064f4a89d381dc032a71e (diff) | |
download | serverdata-d16185e9972e69d654bd642d30a2621aed0ea115.tar.gz serverdata-d16185e9972e69d654bd642d30a2621aed0ea115.tar.bz2 serverdata-d16185e9972e69d654bd642d30a2621aed0ea115.tar.xz serverdata-d16185e9972e69d654bd642d30a2621aed0ea115.zip |
Reorganization of global variables: Voltain
Replace permanent variable with temporary one and give a more descriptive name.
Diffstat (limited to 'world/map/npc/007-1/voltain.txt')
-rw-r--r-- | world/map/npc/007-1/voltain.txt | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/world/map/npc/007-1/voltain.txt b/world/map/npc/007-1/voltain.txt index 35c46b3c..d1a28236 100644 --- a/world/map/npc/007-1/voltain.txt +++ b/world/map/npc/007-1/voltain.txt @@ -9,21 +9,21 @@ // # The variables are not attached to a player but to an npc variable, so it is more or less random, which // # quest comes up, when a player asks him. // # -// # used Variables: global variable $state -// # $state = 0: bring bottles -// # $state = 1: bring black scorpion stinger -// # $state = 2: bring bug legs -// # $state = 3: bring another black scorpion stinger -// # $state = 4: bring mauve herbs -// # $state = 5: bring raw logs -// # $state = 6: bring red apples -// # $state = 7: bring cobalt herbs -// # $state = 8: bring snake tongues -// # $state = 9: bring alizarin herbs -// # $state = 10:bring steak -// # $state = 11: bring arrows -// # $state = 12: bring gamboge herbs -// # $state = 13 bring chocolate cake +// # used Variables: global variable $@VOLTAIN_state +// # 0: bring bottles +// # 1: bring black scorpion stinger +// # 2: bring bug legs +// # 3: bring another black scorpion stinger +// # 4: bring mauve herbs +// # 5: bring raw logs +// # 6: bring red apples +// # 7: bring cobalt herbs +// # 8: bring snake tongues +// # 9: bring alizarin herbs +// # 10: bring steak +// # 11: bring arrows +// # 12: bring gamboge herbs +// # 13: bring chocolate cake 007-1.gat,37,21,0|script|Voltain|103,{ @@ -67,19 +67,19 @@ set @CHOCOLATECAKE_REWARD_XP, 330; set @CHOCOLATECAKE_REWARD_GOLD, 180; - if ($state == 1) goto state1; - if ($state == 2) goto state2; - if ($state == 3) goto state3; - if ($state == 4) goto state4; - if ($state == 5) goto state5; - if ($state == 6) goto state6; - if ($state == 7) goto state7; - if ($state == 8) goto state8; - if ($state == 9) goto state9; - if ($state == 10) goto state10; - if ($state == 11) goto state11; - if ($state == 12) goto state12; - if ($state == 13) goto state13; + if ($@VOLTAIN_state == 1) goto state1; + if ($@VOLTAIN_state == 2) goto state2; + if ($@VOLTAIN_state == 3) goto state3; + if ($@VOLTAIN_state == 4) goto state4; + if ($@VOLTAIN_state == 5) goto state5; + if ($@VOLTAIN_state == 6) goto state6; + if ($@VOLTAIN_state == 7) goto state7; + if ($@VOLTAIN_state == 8) goto state8; + if ($@VOLTAIN_state == 9) goto state9; + if ($@VOLTAIN_state == 10) goto state10; + if ($@VOLTAIN_state == 11) goto state11; + if ($@VOLTAIN_state == 12) goto state12; + if ($@VOLTAIN_state == 13) goto state13; // default: trap through to state0! state0: @@ -101,7 +101,7 @@ state0: delitem "EmptyBottle", @BOTTLE_NEEDED; set Zeny, Zeny + @BOTTLE_REWARD_GOLD; getexp @BOTTLE_REWARD_XP, 0; - set $state, 1; + set $@VOLTAIN_state, 1; mes "\"Thanks for the bottles. Much easier to carry liquid in them.\""; goto L_Close; @@ -119,7 +119,7 @@ menu delitem "BlackScorpionStinger", @BLACK_SC_ST_NEEDED; set Zeny, Zeny + @BLACK_SC_ST_REWARD_GOLD; getexp @BLACK_SC_ST_REWARD_XP, 0; - set $state, 2; + set $@VOLTAIN_state, 2; mes "\"Well, since you went to the trouble of getting me these here's a little something for your time...\""; goto L_Close; @@ -137,7 +137,7 @@ state2: delitem "BugLeg", @BUGLEG_NEEDED; set Zeny, Zeny + @BUGLEG_REWARD_GOLD; getexp @BUGLEG_REWARD_XP, 0; - set $state, 3; + set $@VOLTAIN_state, 3; mes "\"Great! My potion is ready to poison the moub...I mean cure scorpion stings. \""; goto L_Close; @@ -153,7 +153,7 @@ state3: goto L_NOT_ENOUGH; delitem "BlackScorpionStinger", 1; getexp @BLACK_SC_ST_REWARD_XP, 0; - set $state, 4; + set $@VOLTAIN_state, 4; mes "\"Great! Now I can really kill that monster!\""; goto L_Close; @@ -170,7 +170,7 @@ state4: delitem "MauveHerb", @HERBS_NEEDED; getexp @HERBS_REWARD_XP, 0; set Zeny, Zeny + @HERBS_REWARD_GOLD; - set $state, 5; + set $@VOLTAIN_state, 5; mes "\"Great! Now I can thicken the potion! I will try directly.\""; goto L_Close; @@ -187,7 +187,7 @@ state5: delitem "RawLog", @RAWLOG_NEEDED; getexp @RAWLOG_REWARD_XP, 0; set Zeny, Zeny + @RAWLOG_REWARD_GOLD; - set $state, 6; + set $@VOLTAIN_state, 6; mes "\"Great! Now I can thicken the potion! I will try directly.\""; goto L_Close; @@ -204,7 +204,7 @@ state6: delitem "RedApple", @REDAPPLE_NEEDED; getexp @REDAPPLE_REWARD_XP, 0; set Zeny, Zeny + @REDAPPLE_REWARD_GOLD; - set $state,7; + set $@VOLTAIN_state,7; mes "\"Very well, this will be useful.\""; goto L_Close; @@ -221,7 +221,7 @@ state7: delitem "CobaltHerb", @HERBS_NEEDED; getexp @HERBS_REWARD_XP, 0; set Zeny, Zeny + @HERBS_REWARD_GOLD; - set $state, 8; + set $@VOLTAIN_state, 8; mes "\"Great! Now I can go on with the ven- the experiments for the welfare of humanity, I mean.\""; goto L_Close; @@ -238,7 +238,7 @@ state8: delitem "SnakeTongue", @SNAKETONGUE_NEEDED; getexp @SNAKETONGUE_REWARD_XP, 0; set Zeny, Zeny + @SNAKETONGUE_REWARD_GOLD; - set $state, 9; + set $@VOLTAIN_state, 9; mes "\"Excellent, now I can extract the venom to- uhm, nevermind. Thanks for your help.\""; goto L_Close; @@ -255,7 +255,7 @@ state9: delitem "AlizarinHerb", @HERBS_NEEDED; getexp @HERBS_REWARD_XP, 0; set Zeny, Zeny + @HERBS_REWARD_GOLD; - set $state, 10; + set $@VOLTAIN_state, 10; mes "\"Great! Now I can thicken the potion! I will try directly.\""; goto L_Close; @@ -274,7 +274,7 @@ state10: delitem "Steak", @STEAK_NEEDED; getexp @STEAK_REWARD_XP, 0; set Zeny, Zeny + @STEAK_REWARD_GOLD; - set $state, 11; + set $@VOLTAIN_state, 11; mes "\"Thanks a lot. I will really enjoy my meal.\""; goto L_Close; @@ -292,7 +292,7 @@ state11: delitem "Arrow", @ARROW_NEEDED; getexp @ARROW_REWARD_XP, 0; set Zeny, Zeny + @ARROW_REWARD_GOLD; - set $state, 12; + set $@VOLTAIN_state, 12; mes "\"Thanks a lot. Now I feel more secure here in the outdoors.\""; goto L_Close; @@ -309,7 +309,7 @@ state12: delitem "GambogeHerb", @HERBS_NEEDED; getexp @HERBS_REWARD_XP, 0; set Zeny, Zeny + @HERBS_REWARD_GOLD; - set $state, 13; + set $@VOLTAIN_state, 13; mes "\"Great! Now I can thicken the potion! I will try directly.\""; goto L_Close; @@ -326,7 +326,7 @@ state13: delitem "ChocolateCake", @CHOCOLATECAKE_NEEDED; getexp @CHOCOLATECAKE_REWARD_XP, 0; set Zeny, Zeny + @CHOCOLATECAKE_REWARD_GOLD; - set $state, 0; + set $@VOLTAIN_state, 0; mes "\"I love chocolate cakes. I wonder, if I can use my ven- \""; emotion EMOTE_EVIL; goto L_Close; |