summaryrefslogtreecommitdiff
path: root/npc/quests/quests_ayothaya.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-26 07:16:21 +0100
committerHaru <haru@dotalux.com>2014-11-02 01:36:52 +0100
commitc62b4c3e8e178f8ba1de240b9d67a664ef128ace (patch)
treede36f22718fe4533ea81e1d02093263005a30224 /npc/quests/quests_ayothaya.txt
parent54604096ac53398778a5481613061216fe47e5bc (diff)
downloadhercules-c62b4c3e8e178f8ba1de240b9d67a664ef128ace.tar.gz
hercules-c62b4c3e8e178f8ba1de240b9d67a664ef128ace.tar.bz2
hercules-c62b4c3e8e178f8ba1de240b9d67a664ef128ace.tar.xz
hercules-c62b4c3e8e178f8ba1de240b9d67a664ef128ace.zip
Replaced 'set' with direct assignment where applicable (quests folder)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/quests/quests_ayothaya.txt')
-rw-r--r--npc/quests/quests_ayothaya.txt126
1 files changed, 63 insertions, 63 deletions
diff --git a/npc/quests/quests_ayothaya.txt b/npc/quests/quests_ayothaya.txt
index 2c3225ce2..4135e8f98 100644
--- a/npc/quests/quests_ayothaya.txt
+++ b/npc/quests/quests_ayothaya.txt
@@ -141,7 +141,7 @@ ayothaya,233,105,3 script Powerful-Looking Woman 4_F_THAIAYO,2,2,{
}
delitem 7288,1; //Thai_Ring
changequest 12030,12031;
- set thai_find,3;
+ thai_find = 3;
close;
} else {
mes "[Shuda]";
@@ -321,7 +321,7 @@ ayothaya,233,105,3 script Powerful-Looking Woman 4_F_THAIAYO,2,2,{
mes "And so, that is my quest for you. It should keep you entertained for a while. So get into the water, and I'll supervise from here.";
mes "Oho ho ho ho ho!";
emotion e_heh;
- set thai_find,1;
+ thai_find = 1;
close;
case 2:
mes "[Powerful-Looking Woman]";
@@ -388,7 +388,7 @@ ayothaya,233,105,3 script Powerful-Looking Woman 4_F_THAIAYO,2,2,{
mes "So go and look under the water! There's no water current, so I'm sure it's still there! What are you waiting for, it's should be an easy swim for you! Oho ho ho ho ho!";
if (!questprogress(12029))
setquest 12029;
- set thai_find,1;
+ thai_find = 1;
close;
}
break;
@@ -473,7 +473,7 @@ if (!$@annonactive) {
mes "^3355FFshrubbery, you find";
mes "a small burrow.^000000";
next;
- set $@annonactive,1;
+ $@annonactive = 1;
enablenpc "Haggard Man";
mes "[Haggard Man]";
mes "^666666*Cough cough!*^000000";
@@ -488,7 +488,7 @@ if (!$@annonactive) {
mes "Hey...";
mes "What are you doi--";
next;
- set $@annonactive,0;
+ $@annonactive = 0;
disablenpc "Haggard Man";
mes "^3355FFHe vanished!^000000";
close;
@@ -517,7 +517,7 @@ if (!$@annonactive) {
mes "from beneath.^000000";
next;
if (!rand(0,2)) {
- set $@annonactive,1;
+ $@annonactive = 1;
enablenpc "Haggard Man";
mes "[?]";
mes "^666666*Cough cough*^000000";
@@ -561,7 +561,7 @@ OnTouch:
mes "Strange to see";
mes "a blood stain in";
mes "this kind of place...";
- set thai_find,13;
+ thai_find = 13;
changequest 12033,12034;
close;
}
@@ -710,7 +710,7 @@ ayo_dun02,91,264,3 script Haggard Man 4_M_THAIAYO,{
next;
mes "^3355FFYou feel as though Annon";
mes "realigned every bone in your skeleton, placing them in the right spots. Strangely, you feel intense relaxation and refreshment instead of excruciating pain.";
- set thai_find,14;
+ thai_find = 14;
completequest 12034;
if (checkre(3)) {
if (BaseLevel < 56) getexp 900,0;
@@ -751,7 +751,7 @@ ayo_dun02,91,264,3 script Haggard Man 4_M_THAIAYO,{
mes "before others find me.";
mes "Good day~!";
close2;
- set $@annonactive,0;
+ $@annonactive = 0;
disablenpc "Haggard Man";
end;
} else {
@@ -777,7 +777,7 @@ ayo_dun02,91,264,3 script Haggard Man 4_M_THAIAYO,{
mes "me back inside!";
mes "Wahhhhhh~!";
next;
- set $@annonactive,0;
+ $@annonactive = 0;
disablenpc "Haggard Man";
mes "[" +strcharinfo(0)+ "]";
mes "Okay, it's time";
@@ -812,7 +812,7 @@ ayo_dun02,91,264,3 script Haggard Man 4_M_THAIAYO,{
mes "hide from Shuda.";
mes "^666666*Cries*^000000";
close2;
- set $@annonactive,0;
+ $@annonactive = 0;
disablenpc "Haggard Man";
end;
}
@@ -821,17 +821,17 @@ ayo_dun02,91,264,3 script Haggard Man 4_M_THAIAYO,{
mes "Huh? Who are you?";
mes "This isn't a safe place for a tourists! You should leave right away!";
close2;
- set $@annonactive,0;
+ $@annonactive = 0;
disablenpc "Haggard Man";
end;
}
OnInit:
- set $@annonactive,0;
+ $@annonactive = 0;
disablenpc "Haggard Man";
end;
}
-
+
ayothaya,253,99,3 script Fisherman 4_M_THAIONGBAK,{
if (thai_find == 1) {
mes "[Dannai]";
@@ -863,7 +863,7 @@ ayothaya,253,99,3 script Fisherman 4_M_THAIONGBAK,{
next;
delitem 528,1; //Monster's_Feed
Zeny -= 50;
- set .@randfish,rand(1,100);
+ .@randfish = rand(1,100);
if (.@randfish > 0 && .@randfish < 40) {
mes "^3355FFWhile cooking the Phen, you";
mes "find that it's swallowed a Stone.^000000";
@@ -910,7 +910,7 @@ ayothaya,253,99,3 script Fisherman 4_M_THAIONGBAK,{
mes "^3355FFYou take the";
mes "engagement ring.^000000";
close2;
- set thai_find,2;
+ thai_find = 2;
changequest 12029,12030;
getitem 7288,1; //Thai_Ring
end;
@@ -969,7 +969,7 @@ OnTouch:
if (rand(1,3) < 2) {
emotion e_gasp,1;
mes "^3355FFYou find footprints heading to the ^5C3317North^3355FF. It looks like somebody was in quite a hurry, just like the villager said!^000000";
- set thai_find,5;
+ thai_find = 5;
changequest 12032,12033;
close;
}
@@ -984,7 +984,7 @@ OnTouch:
emotion e_dots,1;
mes "^3355FFYou find another set of footprints. It seems that somebody was running away from something. These prints are heading to the ^5C3317East^3355FF. You'd better follow them to see what";
mes "you can find.^000000";
- set thai_find,6;
+ thai_find = 6;
close;
}
}
@@ -998,7 +998,7 @@ OnTouch:
emotion e_no,1;
mes "^3355FFThe footprints end around this area. Whoever was running must";
mes "have been exhausted and stumbled on something. Perhaps the owner of the footprints is nearby...^000000";
- set thai_find,7;
+ thai_find = 7;
close;
}
}
@@ -1012,7 +1012,7 @@ OnTouch:
emotion e_ic,1;
mes "^3355FFAs you follow the footprints,";
mes "you arrive at the '^5C3317Entrance of the Shrine^3355FF.' Whoever this person was, he just ran into the second level.^000000";
- set thai_find,8;
+ thai_find = 8;
close;
}
}
@@ -1029,7 +1029,7 @@ OnTouch:
mes "anyone would come here. The";
mes "footprints continue towards";
mes "the ^5C3317North^3355FF.^000000";
- set thai_find,9;
+ thai_find = 9;
close;
}
}
@@ -1052,10 +1052,10 @@ OnTouch:
case 1:
mes "["+strcharinfo(0)+"]";
mes "Well, it's probably nothing. But which way should I go now?";
- set thai_find,10;
+ thai_find = 10;
close;
case 2:
- set .@randayo,rand(1,10);
+ .@randayo = rand(1,10);
if (.@randayo < 2) {
mes "["+strcharinfo(0)+"]";
mes "Why, this is a pack of White Potions. Whoever owned these must have dropped these by accident. Hmm, I could use these for later...";
@@ -1067,7 +1067,7 @@ OnTouch:
mes "toward the ^5C3317East^000000.";
mes "I better look";
mes "into this.";
- set thai_find,10;
+ thai_find = 10;
getitem 504,10; //White_Potion
close;
} else if (.@randayo > 2 && .@randayo < 5) {
@@ -1081,7 +1081,7 @@ OnTouch:
mes "toward the ^5C3317East^000000.";
mes "I better look";
mes "into this.";
- set thai_find,10;
+ thai_find = 10;
getitem 503,10; //Yellow potion
close;
} else {
@@ -1100,7 +1100,7 @@ OnTouch:
mes "^3355FFYou find another trail";
mes "of footprints that heads";
mes "towards the ^5C3317East^3355FF.^000000";
- set thai_find,10;
+ thai_find = 10;
close;
}
}
@@ -1120,7 +1120,7 @@ OnTouch:
mes "deep into the dungeon.";
mes "Just looking for this";
mes "guy is exhausting...^000000";
- set thai_find,11;
+ thai_find = 11;
close;
}
}
@@ -1134,7 +1134,7 @@ OnTouch:
emotion e_gasp,1;
mes "^3355FFYou find traces of blood. Whoever was running in this direction may have been wounded. The trail of blood leads to the ^5C3317North^3355FF.^000000";
changequest 12032,12033;
- set thai_find,12;
+ thai_find = 12;
close;
}
}
@@ -1170,11 +1170,11 @@ ayothaya,193,171,3 script Old Man#02 4_M_THAIOLD,{
next;
mes "[Tham]";
mes "Oh well, don't worry. All of our villagers aren't like that. Anyway, I hope you enjoy your travels in Ayotaya.";
- set thai_find,4;
+ thai_find = 4;
changequest 12031,12032;
close;
} else {
- set .@randayo,rand(1,7);
+ .@randayo = rand(1,7);
if (.@randayo < 5) {
mes "[Tham]";
mes "Oh hello~";
@@ -1302,7 +1302,7 @@ ayothaya,83,132,0 script Dusit#thai 4_M_THAIONGBAK,{
next;
mes "[Dusit]";
mes "Ah well, you'll see what I'm talking about. I hope he'll help you learn more about that evil creature.";
- set ayodunquest,1;
+ ayodunquest = 1;
setquest 12035;
close;
}
@@ -1451,7 +1451,7 @@ ayo_in01,181,193,4 script Shaman#thai 4_F_THAISHAMAN,{
mes "Please come back";
mes "when you prepare all";
mes "the materials.";
- set ayodunquest,2;
+ ayodunquest = 2;
changequest 12035,12036;
close;
}
@@ -1490,7 +1490,7 @@ ayo_in01,181,193,4 script Shaman#thai 4_F_THAISHAMAN,{
delitem 7217,1; //Spool
delitem 7190,1; //Solid_Peeling
delitem 523,1; //Holy_Water
- set ayodunquest,3;
+ ayodunquest = 3;
changequest 12036,12037;
getitem 7285,1; //Thread_Skein
next;
@@ -1601,7 +1601,7 @@ ayo_in01,181,193,4 script Shaman#thai 4_F_THAISHAMAN,{
mes "^3366991 Yggdrasil Leaf^000000,";
mes "^3366992 Needle Packet^000000 and";
mes "^3366992 Spool^000000.";
- set ayodunquest,10;
+ ayodunquest = 10;
changequest 12037,12038;
next;
mes "[Boonthom]";
@@ -1636,7 +1636,7 @@ ayo_in01,181,193,4 script Shaman#thai 4_F_THAISHAMAN,{
delitem 7217,2; //Spool
delitem 610,1; //Leaf_Of_Yggdrasil
delitem 523,2; //Holy_Water
- set ayodunquest,11;
+ ayodunquest = 11;
getitem 7287,1; //Thread_Skein_
changequest 12038,12039;
next;
@@ -1736,7 +1736,7 @@ ayo_in01,181,193,4 script Shaman#thai 4_F_THAISHAMAN,{
next;
mes "[Boonthom]";
mes "If you wish to explore the building again, but you don't have any holy thread, feel free to ask me at anytime.";
- set ayodunquest,13;
+ ayodunquest = 13;
completequest 12039;
close;
} else if (ayodunquest > 12) {
@@ -1971,7 +1971,7 @@ ayo_dun01,259,46,0 duplicate(AyoHint) #hint02_3 -1,2,0
// Puzzle pieces
ayo_dun01,198,164,0 script #hun_thai_1 HIDDEN_NPC,{
if (ayodunquest == 3) {
- set ayodunquest,4;
+ ayodunquest = 4;
mes "^3355FFYou find a piece of a stone slate with letters etched on it. It seems to be the 1st part of the slate.^000000";
next;
mes "^3355FFIt reads '^0000FFDo not enter the 2nd underground level^3355FF.' You are unable to read the rest of the message.^000000";
@@ -1983,7 +1983,7 @@ ayo_dun01,198,164,0 script #hun_thai_1 HIDDEN_NPC,{
ayo_dun01,87,16,0 script #hun_thai_2 HIDDEN_NPC,{
if (ayodunquest == 4) {
- set ayodunquest,5;
+ ayodunquest = 5;
mes "^3355FFYou find a piece of a stone slate with letters etched on it. It seems to be the 2nd part of the slate.^000000";
next;
mes "^3355FFIt reads '^0000FF...is danger... You wil...^3355FF.' You are unable to read the rest of the message.^000000";
@@ -1995,7 +1995,7 @@ ayo_dun01,87,16,0 script #hun_thai_2 HIDDEN_NPC,{
ayo_dun01,268,214,0 script #hun_thai_3 HIDDEN_NPC,{
if (ayodunquest == 5) {
- set ayodunquest,6;
+ ayodunquest = 6;
mes "^3355FFYou find a piece of a stone slate with letters etched on it. It seems to be the 3rd part of the slate.^000000";
next;
mes "^3355FFIt reads '^0000FF...encounter... tiger...^3355FF.' You are unable to read the rest of the message.^000000";
@@ -2007,7 +2007,7 @@ ayo_dun01,268,214,0 script #hun_thai_3 HIDDEN_NPC,{
ayo_dun01,147,274,0 script #hun_thai_4 HIDDEN_NPC,{
if (ayodunquest == 6) {
- set ayodunquest,7;
+ ayodunquest = 7;
mes "^3355FFYou find a piece of a stone slate with letters etched on it. It seems to be the 4th part of the slate.^000000";
next;
mes "^3355FFIt reads '^0000FFYou must kill... In order to do... MUST... How to go... the 2nd underground level...^3355FF' You are unable to read the rest of the message.^000000";
@@ -2019,7 +2019,7 @@ ayo_dun01,147,274,0 script #hun_thai_4 HIDDEN_NPC,{
ayo_dun01,99,118,0 script #hun_thai_5 HIDDEN_NPC,{
if (ayodunquest == 7) {
- set ayodunquest,8;
+ ayodunquest = 8;
mes "^3355FFYou find a piece of a stone slate with letters etched on it. It seems to be the 5th part of the slate.^000000";
next;
mes "^3355FFIt reads '^0000FFYou need more... Holy power... in order to...^3355FF' You are unable to read the rest of the message.^000000";
@@ -2031,7 +2031,7 @@ ayo_dun01,99,118,0 script #hun_thai_5 HIDDEN_NPC,{
ayo_dun01,16,188,0 script #hun_thai_6 HIDDEN_NPC,{
if (ayodunquest == 8) {
- set ayodunquest,9;
+ ayodunquest = 9;
setquest 12036;
mes "^3355FFYou find a piece of a stone slate with letters etched on it. It seems to be the last part of the slate.^000000";
next;
@@ -2080,7 +2080,7 @@ ayo_dun02,268,108,0 script #reward_tiger HIDDEN_NPC,{
next;
mes "^3355FFYou pick";
mes "up the box.^000000";
- set ayodunquest,12;
+ ayodunquest = 12;
completequest 12039;
getitem 603,1; //Old_Blue_Box
close;
@@ -2127,7 +2127,7 @@ ayothaya,196,265,3 script Einon#ayo 4_M_THAIOLD,{
mes "visit ^3131FFMali the Spicy^000000.";
next;
emotion e_no1;
- set tomyumgoong,1;
+ tomyumgoong = 1;
setquest 8123;
mes "[Einon]";
mes "She is the best cook when it";
@@ -2218,7 +2218,7 @@ ayo_in01,145,163,3 script Cook#ayo 4_F_THAIGIRL,{
mes "If you mention";
mes "my name, that guy";
mes "might give you a discount.";
- set tomyumgoong,2;
+ tomyumgoong = 2;
changequest 8123,8124;
next;
mes "[Mali the Spicy]";
@@ -2276,7 +2276,7 @@ ayo_in01,145,163,3 script Cook#ayo 4_F_THAIGIRL,{
mes "me some ^CE0000Lemons^000000.";
next;
if (select("Where can I find Lemons?:I hate sour food. I'd better quit!") == 1) {
- set tomyumgoong,4;
+ tomyumgoong = 4;
changequest 8124,8125;
mes "[Mali the Spicy]";
mes "A few days ago, I saw a good";
@@ -2357,7 +2357,7 @@ ayo_in01,145,163,3 script Cook#ayo 4_F_THAIGIRL,{
next;
if (select("Okay, I'll be right back.:Ah, I'm tired now. Let me take a rest first...") == 1) {
delitem 568,10; //Lemon
- set tomyumgoong,6;
+ tomyumgoong = 6;
changequest 8125,8126;
mes "[Mali the Spicy]";
mes "See you in a bit~";
@@ -2455,7 +2455,7 @@ ayo_in01,145,163,3 script Cook#ayo 4_F_THAIGIRL,{
mes " ......";
mes " .........";
next;
- set tomyumgoong,8;
+ tomyumgoong = 8;
completequest 8126;
getitem 566,10; //Tomyumkung
emotion e_no1;
@@ -2547,7 +2547,7 @@ ayothaya,153,86,5 script Thongpool#ayo 4_M_THAIONGBAK,{
if (Zeny > 10999) {
if (MaxWeight - Weight > 3999) {
Zeny -= 11000;
- set tomyumgoong,3;
+ tomyumgoong = 3;
getitem 567,20; //Prawn
emotion e_no1;
mes "[Thongpool]";
@@ -2745,8 +2745,8 @@ OnTouch:
mes "As you kids say,";
mes "^990000Let's get eXtreme!^000000";
next;
- set @user_score,0;
- set @pc_score,0;
+ @user_score = 0;
+ @pc_score = 0;
mes "[Mr. Jun]";
mes "Rock!";
mes "Paper!";
@@ -2757,7 +2757,7 @@ OnTouch:
break;
}
else {
- set .@jun_mark,rand(1,3);
+ .@jun_mark = rand(1,3);
switch(select("Scissors:Rock:Paper")) {
case 1:
if (.@jun_mark == 1) {
@@ -2774,7 +2774,7 @@ OnTouch:
else if (.@jun_mark == 2) {
emotion e_rock;
emotion e_scissors,1;
- set @pc_score,@pc_score + 1;
+ ++@pc_score;
mes "[Mr. Jun]";
mes "Yes...!";
mes "Oh my God, yes!";
@@ -2783,8 +2783,8 @@ OnTouch:
else {
emotion e_paper;
emotion e_scissors,1;
- set @pc_score,@pc_score + 1;
- set @user_score,@user_score + 1;
+ ++@pc_score;
+ ++@user_score;
mes "[Mr. Jun]";
mes "What...?";
mes "I don't believe it!";
@@ -2796,8 +2796,8 @@ OnTouch:
if (.@jun_mark == 1) {
emotion e_scissors;
emotion e_rock,1;
- set @pc_score,@pc_score + 1;
- set @user_score,@user_score + 1;
+ ++@pc_score;
+ ++@user_score;
mes "[Mr. Jun]";
mes "No...!";
mes "Sacrilege!";
@@ -2817,7 +2817,7 @@ OnTouch:
else {
emotion e_paper;
emotion e_rock,1;
- set @pc_score,@pc_score + 1;
+ ++@pc_score;
mes "[Mr. Jun]";
mes "Bwahahaha!";
mes "You lose, kid!";
@@ -2828,7 +2828,7 @@ OnTouch:
if (.@jun_mark == 1) {
emotion e_scissors;
emotion e_paper,1;
- set @pc_score,@pc_score + 1;
+ ++@pc_score;
mes "[Mr. Jun]";
mes "Heh heh~";
mes "Young fool!";
@@ -2837,8 +2837,8 @@ OnTouch:
else if (.@jun_mark == 2) {
emotion e_rock;
emotion e_paper,1;
- set @user_score,@user_score + 1;
- set @pc_score,@pc_score + 1;
+ ++@user_score;
+ ++@pc_score;
mes "[Mr. Jun]";
mes "Noooo...!";
mes "This cannot be!";
@@ -2875,7 +2875,7 @@ OnTouch:
mes "Grab as many as you want!";
mes "^3355FFYou have plucked";
mes "10 Lemons from the tree.^000000";
- set tomyumgoong,5;
+ tomyumgoong = 5;
getitem 568,10; //Lemon
next;
emotion e_dots;
@@ -2942,7 +2942,7 @@ ayothaya,213,94,7 script Merchant#ayo 4_M_THAIAYO,{
if (Zeny > 1999) {
if (MaxWeight - Weight > 1199) {
Zeny -= 2000;
- set tomyumgoong,7;
+ tomyumgoong = 7;
getitem 7286,30; //Chilli
mes "[Merchant Thongdum]";
mes "Thank you.";