فهرست منبع

* Fixed variables in order to work with the invasion (bugreport:5231)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15512 54d463be-8e91-2dee-dedb-b68131a5f0ec
og2 13 سال پیش
والد
کامیت
361a3ea771
1فایلهای تغییر یافته به همراه6 افزوده شده و 4 حذف شده
  1. 6 4
      npc/airports/airships.txt

+ 6 - 4
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;