From bc65860d166f644ca3796467713c2792d0f60889 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Thu, 28 Feb 2008 20:04:16 +0000 Subject: * Changed how waiting rooms work in the job quests. - Implemented a checkweight in the alchemist job quest. - Various other small updates to the 2-1 and 2-2 quests. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12262 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/jobs/2-1/assassin.txt | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'npc/jobs/2-1/assassin.txt') diff --git a/npc/jobs/2-1/assassin.txt b/npc/jobs/2-1/assassin.txt index b4700bb23..d7a37f7dc 100644 --- a/npc/jobs/2-1/assassin.txt +++ b/npc/jobs/2-1/assassin.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= kobra_k88 //===== Current Version: ===================================== -//= 2.9b +//= 3.0 //===== Compatible With: ===================================== //= eAthena SVN //===== Description: ========================================= @@ -40,6 +40,7 @@ //= 2.9 Fixed an indent and added a 'break;' in hopes of 'fixing' an error [L0ne_W0lf] //= 2.9a Corrected a Typo error ";;". [Samuray22] //= 2.9b Moved a wrong 'break'. [Zephyrus_cr] +//= 3.0 Now uses enable and disable waitingroomevent. [L0ne_W0lf] //============================================================ in_moc_16,19,33,1 script Guildsman#asn 55,{ @@ -1083,19 +1084,20 @@ in_moc_16,21,165,2 script Standby Room#ASNTEST 725,{ OnInit: disablenpc "Standby Room#ASNTEST"; waitingroom "Standby Room",10,"Standby Room#ASNTEST::OnStartArena",1; + enablewaitingroomevent; end; OnStartArena: - set $@SinUsers, getareausers("in_moc_16", 60, 136, 93, 177); - set $@SinUsers, $@SinUsers + getareausers("in_moc_16", 64, 46, 111, 105); - if ($@SinUsers > 0) end; // stops the rest of the script from running if there is somebody taking the test - - if ((getwaitingroomstate(33)) == 0) end; // stops the rest of the script from running if there is no one in the waiting room killmonsterall "in_moc_16"; warpwaitingpc "in_moc_16", 66, 151; donpcevent "Beholder#ASNTEST::OnEnable"; donpcevent "Keeper of the Door#ASN::OnDisable"; set getvariableofnpc(.DisableTraps,"Beholder#ASNTEST"),0; + disablewaitingroomevent; + end; + +OnStart: + enablewaitingroomevent; end; } @@ -1246,14 +1248,16 @@ OnMyMobDead: set .DisableTraps,1; stopnpctimer; } - else + else { mapannounce "in_moc_16","Okay, you're doing good! Hang in there, you're almost there!",bc_map; + } end; OnMyMobDead2: mapannounce "in_moc_16",strcharinfo(0) + "! You made a mistake! I'm bringing you back!",bc_map; set ASSIN_Q,2; warp "in_moc_16",19,161; + donpcevent "Standby Room#ASNTEST::OnStart"; donpcevent "Beholder#ASNTEST::OnDisable"; end; @@ -1314,6 +1318,7 @@ OnTimer185000: OnTimer187000: areawarp "in_moc_16",60,136,93,177,"in_moc_16",19,161; donpcevent "Beholder#ASNTEST::OnDisable"; + donpcevent "Standby Room#ASNTEST::OnStart"; end; } @@ -1324,6 +1329,7 @@ OnTouch: set ASSIN_Q,2; warp "in_moc_16",19,161; donpcevent "Beholder#ASNTEST::OnDisable"; + donpcevent "Standby Room#ASNTEST::OnStart"; } end; } -- cgit v1.2.3-70-g09d2