Procházet zdrojové kódy

updated free kafra pass

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10553 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lupus před 18 roky
rodič
revize
c07f6f3e28
2 změnil soubory, kde provedl 11 přidání a 17 odebrání
  1. 1 0
      npc/Changelog.txt
  2. 10 17
      npc/jobs/1-1/merchant.txt

+ 1 - 0
npc/Changelog.txt

@@ -2,6 +2,7 @@ Date		Added
 ======
 2007/05/17
 	* Removed .GAT -s from some recent scripts. Please, don't add them in the scripts [Lupus]
+	- Fixed Merchan Job Quest Kafra (used old ID for Free Ticket)
 2007/05/16
 	* Rev. 10548 Kiel Hyre Quest fix. Fixed the missing spaces in some of the enablenpc commands. [L0ne_W0lf]
 	* Renamed Grandpa Pharmacist to Old Pharmacist, updated dialogs [DZeroX]

+ 10 - 17
npc/jobs/1-1/merchant.txt

@@ -3,7 +3,7 @@
 //===== By: ================================================== 
 //= kobra_k88
 //===== Current Version: ===================================== 
-//= 1.6
+//= 1.7
 //===== Compatible With: ===================================== 
 //= eAthena 1.0 +
 //===== Description: ========================================= 
@@ -17,6 +17,7 @@
 //= 1.5.1 Removed Duplicates [Silent]
 //= 1.5.2 Now saves/restores all quest skills [Lupus]
 //= 1.6 Merged back JFunc, CHANGED NUMBERS TO CONSTANTS [Lupus]
+//= 1.7 Updated to use Free Ticket for Kafra [Lupus]
 //============================================================ 
 
 
@@ -730,9 +731,14 @@ L_Other:
 	menu "Warp.",M_Warp, "Cancel.",M_End;
 
 	M_Warp:
-		if(Zeny < 600) goto sL_NdZeny;
-		set Zeny, Zeny - 600;
-		set RESRVPTS, RESRVPTS + 37;
+		// we'll use Free Ticket for Kafra Transportation if available
+		if(countitem(7060)){
+			delitem 7060,1;
+		} else {
+			if(Zeny < 600) goto sL_NdZeny;
+			set Zeny, Zeny - 600;
+			set RESRVPTS, RESRVPTS + 37;
+		}
 		warp "izlude",91,105;
 		cutin "kafra_03",255;
 		end;
@@ -743,19 +749,6 @@ L_Other:
 			cutin "kafra_03",255;
 			close;
 
-	M_Pass:
-		if(countitem(1084)<1) goto sL_NdPass;//Items: Kafra_Pass,
-		mes "[Kafra]";
-		mes "You are now using a Kafra Pass.";
-		delitem 1084,1;//Items: Kafra_Pass,
-		cutin "kafra_03",255;
-		close;
-
-		sL_NdPass:
-			mes "[Kafra]";
-			mes "I'm sorry but you have no pass....";
-			cutin "kafra_03",255;
-			close;
 	M_End:
 		mes "[Kafra]";
 		mes "Thank you for using Kafra Corp. Services.  We will be with you wherever you go.";