summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorshadowlady <shadowlady@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 15:34:01 +0000
committershadowlady <shadowlady@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-22 15:34:01 +0000
commit4e762a0f65efaa5aa9f6f79d0ac02976b3d8d3e5 (patch)
tree457c0aa1f7f374002a5aceecf5521545b17a5276 /npc
parent789c6ac5cafd50bbe582d9e470291f4d95dd9ecd (diff)
downloadhercules-4e762a0f65efaa5aa9f6f79d0ac02976b3d8d3e5.tar.gz
hercules-4e762a0f65efaa5aa9f6f79d0ac02976b3d8d3e5.tar.bz2
hercules-4e762a0f65efaa5aa9f6f79d0ac02976b3d8d3e5.tar.xz
hercules-4e762a0f65efaa5aa9f6f79d0ac02976b3d8d3e5.zip
Fixed a buggy timer
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@316 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc')
-rw-r--r--npc/other/momotaro.txt28
1 files changed, 16 insertions, 12 deletions
diff --git a/npc/other/momotaro.txt b/npc/other/momotaro.txt
index 745ad5540..0fdfc1d30 100644
--- a/npc/other/momotaro.txt
+++ b/npc/other/momotaro.txt
@@ -1,5 +1,5 @@
//=====================================================================
-//MOMOTARO event (translated thanks to Shinomori)
+//MOMOTARO event
//=====================================================================
amatsu.gat,223,235,4 script Publisher 763,{
if (event_momo > 4) goto Lfin;
@@ -90,10 +90,12 @@ Lget:
Lfin:
mes "[Publisher]";
mes "We have a nice weather today, don't we...... It is a perfect day to dry the futon.";
+ set event_momo,event_momo+1;
+ if (event_momo == 20) set event_momo,0;
close;
}
//=====================================================================
-ama_test.gat,52,44,4 script Waiting Room Staff 109,{
+ama_test.gat,52,44,4 script Event Hall Staff 109,{
mes "[Satoshi]";
mes "Welcome to the Momotaro Event Hall";
next;
@@ -157,7 +159,7 @@ L1:
mes "Well then, Please enter the Waiting Room Chat and wait for your turn. I wish you a good fight.";
close;
OnInit:
- waitingroom "Event Hall Waiting Room",1,"Waiting Room Staff::OnMax";
+ waitingroom "Event Hall Waiting Room",1,"Event Hall Staff::OnMax";
//modification
//do clear everything in case of somebody got stuck in the hall
areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
@@ -174,7 +176,7 @@ OnMax:
initnpctimer "roomtimer";
//end modification
warpwaitingpc "ama_test.gat",50,83;
- disablenpc "Waiting Room Staff";
+ disablenpc "Event Hall Staff";
disablenpc "Manager";
enablenpc "Grandfather";
enablenpc "Grandmother";
@@ -276,7 +278,7 @@ L1:
// deltimer "roomt";
//end modification
disablenpc "Manager";
- enablenpc "Waiting Room Staff";
+ enablenpc "Event Hall Staff";
warp "amatsu.gat",223,230;
break;
L2:
@@ -337,8 +339,9 @@ LWarpOut:
next;
warp "amatsu.gat",223,230;
disablenpc "Manager";
- enablenpc "Waiting Room Staff";
- donpcevent "Waiting Room Staff::OnInit";
+ stopnpctimer "roomtimer";
+ enablenpc "Event Hall Staff";
+ donpcevent "Event Hall Staff::OnInit";
break;
Onstart:
mes "[Manager]";
@@ -365,7 +368,7 @@ Lfin:
areaannounce "ama_test.gat",30,78,68,120,"Small Demon: Uhhaaa......",8;
addtimer 5000, "mobcount2::OnTimer5000";
//modification
- stopnpctimer "roomtimer";
+// stopnpctimer "roomtimer";
end;
// enablenpc "Manager";
// doevent "Manager::Onstart";
@@ -376,7 +379,7 @@ Lfin:
ama_test.gat,50,101,0 script mobcount2 -1,{
if (@mobdie2 == 2) goto Lfin;
set @mobdie2,@mobdie2+1;
- areaannounce "ama_test.gat",30,78,68,120,"Am Mut: Uhaaa...",8;break;
+ areaannounce "ama_test.gat",30,78,68,120,"Demon: Uhaaa...",8;break;
Lfin:
set event_momo,4;
//modification
@@ -416,7 +419,7 @@ OnTimer5000:
//On360000:
// mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
// disablenpc "Manager";
-// enablenpc "Waiting Room Staff";
+// enablenpc "Event Hall Staff";
// areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
// break;
//}
@@ -437,7 +440,8 @@ OnTimer360000:
mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
disablenpc "Manager";
- enablenpc "Waiting Room Staff";
- donpcevent "Waiting Room Staff::OnInit";
+ enablenpc "Event Hall Staff";
+ donpcevent "Event Hall Staff::OnInit";
end;
}
+//end modification