Fixed a buggy timer
git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@316 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
5312513362
commit
093075d81b
@ -1,5 +1,5 @@
|
|||||||
//=====================================================================
|
//=====================================================================
|
||||||
//MOMOTARO event (translated thanks to Shinomori)
|
//MOMOTARO event
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
amatsu.gat,223,235,4 script Publisher 763,{
|
amatsu.gat,223,235,4 script Publisher 763,{
|
||||||
if (event_momo > 4) goto Lfin;
|
if (event_momo > 4) goto Lfin;
|
||||||
@ -90,10 +90,12 @@ Lget:
|
|||||||
Lfin:
|
Lfin:
|
||||||
mes "[Publisher]";
|
mes "[Publisher]";
|
||||||
mes "We have a nice weather today, don't we...... It is a perfect day to dry the futon.";
|
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;
|
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 "[Satoshi]";
|
||||||
mes "Welcome to the Momotaro Event Hall";
|
mes "Welcome to the Momotaro Event Hall";
|
||||||
next;
|
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.";
|
mes "Well then, Please enter the Waiting Room Chat and wait for your turn. I wish you a good fight.";
|
||||||
close;
|
close;
|
||||||
OnInit:
|
OnInit:
|
||||||
waitingroom "Event Hall Waiting Room",1,"Waiting Room Staff::OnMax";
|
waitingroom "Event Hall Waiting Room",1,"Event Hall Staff::OnMax";
|
||||||
//modification
|
//modification
|
||||||
//do clear everything in case of somebody got stuck in the hall
|
//do clear everything in case of somebody got stuck in the hall
|
||||||
areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
|
areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
|
||||||
@ -174,7 +176,7 @@ OnMax:
|
|||||||
initnpctimer "roomtimer";
|
initnpctimer "roomtimer";
|
||||||
//end modification
|
//end modification
|
||||||
warpwaitingpc "ama_test.gat",50,83;
|
warpwaitingpc "ama_test.gat",50,83;
|
||||||
disablenpc "Waiting Room Staff";
|
disablenpc "Event Hall Staff";
|
||||||
disablenpc "Manager";
|
disablenpc "Manager";
|
||||||
enablenpc "Grandfather";
|
enablenpc "Grandfather";
|
||||||
enablenpc "Grandmother";
|
enablenpc "Grandmother";
|
||||||
@ -276,7 +278,7 @@ L1:
|
|||||||
// deltimer "roomt";
|
// deltimer "roomt";
|
||||||
//end modification
|
//end modification
|
||||||
disablenpc "Manager";
|
disablenpc "Manager";
|
||||||
enablenpc "Waiting Room Staff";
|
enablenpc "Event Hall Staff";
|
||||||
warp "amatsu.gat",223,230;
|
warp "amatsu.gat",223,230;
|
||||||
break;
|
break;
|
||||||
L2:
|
L2:
|
||||||
@ -337,8 +339,9 @@ LWarpOut:
|
|||||||
next;
|
next;
|
||||||
warp "amatsu.gat",223,230;
|
warp "amatsu.gat",223,230;
|
||||||
disablenpc "Manager";
|
disablenpc "Manager";
|
||||||
enablenpc "Waiting Room Staff";
|
stopnpctimer "roomtimer";
|
||||||
donpcevent "Waiting Room Staff::OnInit";
|
enablenpc "Event Hall Staff";
|
||||||
|
donpcevent "Event Hall Staff::OnInit";
|
||||||
break;
|
break;
|
||||||
Onstart:
|
Onstart:
|
||||||
mes "[Manager]";
|
mes "[Manager]";
|
||||||
@ -365,7 +368,7 @@ Lfin:
|
|||||||
areaannounce "ama_test.gat",30,78,68,120,"Small Demon: Uhhaaa......",8;
|
areaannounce "ama_test.gat",30,78,68,120,"Small Demon: Uhhaaa......",8;
|
||||||
addtimer 5000, "mobcount2::OnTimer5000";
|
addtimer 5000, "mobcount2::OnTimer5000";
|
||||||
//modification
|
//modification
|
||||||
stopnpctimer "roomtimer";
|
// stopnpctimer "roomtimer";
|
||||||
end;
|
end;
|
||||||
// enablenpc "Manager";
|
// enablenpc "Manager";
|
||||||
// doevent "Manager::Onstart";
|
// doevent "Manager::Onstart";
|
||||||
@ -376,7 +379,7 @@ Lfin:
|
|||||||
ama_test.gat,50,101,0 script mobcount2 -1,{
|
ama_test.gat,50,101,0 script mobcount2 -1,{
|
||||||
if (@mobdie2 == 2) goto Lfin;
|
if (@mobdie2 == 2) goto Lfin;
|
||||||
set @mobdie2,@mobdie2+1;
|
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:
|
Lfin:
|
||||||
set event_momo,4;
|
set event_momo,4;
|
||||||
//modification
|
//modification
|
||||||
@ -416,7 +419,7 @@ OnTimer5000:
|
|||||||
//On360000:
|
//On360000:
|
||||||
// mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
|
// mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
|
||||||
// disablenpc "Manager";
|
// disablenpc "Manager";
|
||||||
// enablenpc "Waiting Room Staff";
|
// enablenpc "Event Hall Staff";
|
||||||
// areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
|
// areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
|
||||||
// break;
|
// break;
|
||||||
//}
|
//}
|
||||||
@ -437,7 +440,8 @@ OnTimer360000:
|
|||||||
mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
|
mapannounce "ama_test.gat","Hohoho - Time limit is exceeded.",8;
|
||||||
areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
|
areawarp "ama_test.gat",30,78,68,120,"amatsu.gat",223,230;
|
||||||
disablenpc "Manager";
|
disablenpc "Manager";
|
||||||
enablenpc "Waiting Room Staff";
|
enablenpc "Event Hall Staff";
|
||||||
donpcevent "Waiting Room Staff::OnInit";
|
donpcevent "Event Hall Staff::OnInit";
|
||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
|
//end modification
|
||||||
|
Loading…
x
Reference in New Issue
Block a user