From 17a5ff052ebc90f7a7df0fb60f9364ef52a0209d Mon Sep 17 00:00:00 2001 From: og2 Date: Mon, 23 Jan 2012 18:26:16 +0000 Subject: * Fixed variables in order to work with the invasion (bugreport:5231) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15512 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/airports/airships.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'npc') diff --git a/npc/airports/airships.txt b/npc/airports/airships.txt index 0de47427e..f64ed1457 100644 --- a/npc/airports/airships.txt +++ b/npc/airports/airships.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= rAthena Dev Team //===== Current Version: ===================================== -//= 1.2 +//= 1.2a //===== Compatible With: ===================================== //= rAthena SVN 3422+(Requires jA Script System) //===== Description: ========================================= @@ -32,6 +32,7 @@ //= 1.1a Small fix to comparison check. [Paradox924X] //= 1.1b Small fix to zeny check. [Kisuka] //= 1.2 Updated some NPCs based on official files. [L0ne_W0lf] +//= 1.2a Fixed "mobinv" and "mobrand" variables to work with invation. [Slim] //============================================================ //============================================================ @@ -451,8 +452,9 @@ while(1) mapannounce "airplane_01","The Airship is leaving the ground. Our next destination is Izlude.",bc_map,0x00FF00; end; OnTimer15000: - set .mobinv, .mobinv+1; - if(.mobinv >= 9 && rand(1,3) == 3) { + set $@mobinv,$@mobinv+1; + set $@mobrand,rand(1,3); + if($@mobinv >= 9 && $@mobrand == 3) { stopnpctimer; enablenpc "Airship#airplane02"; donpcevent "Airship#airplane02::OnInvasion"; @@ -528,7 +530,7 @@ OnTimer195000: } OnReturn: killmonsterall "airplane_01"; - set .mobinv, 0; + set $@mobinv,0; mapannounce "airplane_01","Monster threat nullfied. The Airship is now returning to normal operation.",bc_map,0x00FF00; startnpctimer; end; -- cgit v1.2.3-60-g2f50