summaryrefslogtreecommitdiff
path: root/npc/events/lunar_2008.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-26 02:06:46 +0100
committerHaru <haru@dotalux.com>2014-11-02 01:36:50 +0100
commitbf4b0a281207e46a9b21a9c9f779aeafaa739b62 (patch)
tree0230ee95510255548ebb7f4080460b466c9e2ca6 /npc/events/lunar_2008.txt
parent6b20c5b6988c889df35b890d93c338f8b87fa430 (diff)
downloadhercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.gz
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.bz2
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.tar.xz
hercules-bf4b0a281207e46a9b21a9c9f779aeafaa739b62.zip
Replaced 'set' with direct assignment where applicable (common folder)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/events/lunar_2008.txt')
-rw-r--r--npc/events/lunar_2008.txt16
1 files changed, 8 insertions, 8 deletions
diff --git a/npc/events/lunar_2008.txt b/npc/events/lunar_2008.txt
index 6c81d0d38..0b51f468b 100644
--- a/npc/events/lunar_2008.txt
+++ b/npc/events/lunar_2008.txt
@@ -50,7 +50,7 @@ payon_in01,193,30,4 script Rice Mill Grandma#rat 1_F_ORIENT_04,{
mes "think you can help me?";
next;
if (select("Of course.:I don't even know you.") == 1) {
- set lunar_rat,1;
+ lunar_rat = 1;
mes "[" + strcharinfo(0)+"]";
mes "Of course.";
mes "What can I do?";
@@ -93,7 +93,7 @@ payon_in01,193,30,4 script Rice Mill Grandma#rat 1_F_ORIENT_04,{
mes "Please wait here a moment,";
mes "and I'll make you some pastry~";
delitem 7770,1; //Sweet_rice
- set lunar_rat,3;
+ lunar_rat = 3;
close;
}
else if (lunar_rat == 4) {
@@ -104,7 +104,7 @@ payon_in01,193,30,4 script Rice Mill Grandma#rat 1_F_ORIENT_04,{
mes "Please wait here a moment,";
mes "and I'll make you some pastry~";
delitem 7770,1; //Sweet_rice
- set lunar_rat,5;
+ lunar_rat = 5;
close;
}
mes "Oh, where are all the";
@@ -127,15 +127,15 @@ payon_in01,193,30,4 script Rice Mill Grandma#rat 1_F_ORIENT_04,{
mes "Would you mind being";
mes "a dear, and delivering";
mes "that to my son for me?";
- set lunar_rat,2;
+ lunar_rat = 2;
close;
}
else if (lunar_rat == 3 || lunar_rat == 5) {
- set .@reward,rand(1,100);
+ .@reward = rand(1,100);
if (.@reward <= 5) {
if (lunar_rat == 3) {
getitem 9038,1; // New_Year_Doll_Egg
- set lunar_rat,4;
+ lunar_rat = 4;
}
else if (lunar_rat == 5) {
getitem 668,1; // Red_Envelope
@@ -152,8 +152,8 @@ payon_in01,193,30,4 script Rice Mill Grandma#rat 1_F_ORIENT_04,{
// After getting the egg there is a chance to get an envelope with each turn in
if (rand(1,20) <= 5 && lunar_rat == 4) getitem 668,1; // Red_Envelope
// Set the quest accordingly for repeat turn-ins.
- if (lunar_rat == 3) set lunar_rat,2;
- else if (lunar_rat == 5) set lunar_rat,4;
+ if (lunar_rat == 3) lunar_rat = 2;
+ else if (lunar_rat == 5) lunar_rat = 4;
mes "It's not nearly enough";
mes "to repay you for what you've";
mes "done for me, but I'd like";