瀏覽代碼

Cleared a bit 'clear garbage' function. Update novice grounds with correct kafra tickets

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9115 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lupus 18 年之前
父節點
當前提交
e00e768228
共有 3 個文件被更改,包括 40 次插入58 次删除
  1. 3 0
      npc/Changelog.txt
  2. 37 34
      npc/jobs/novice/novice.txt
  3. 0 24
      npc/other/Global_Functions.txt

+ 3 - 0
npc/Changelog.txt

@@ -33,6 +33,9 @@ KarLaeda
 
 Date		Added
 ======
+11/01
+	* Training grounds: Now Kafra Tickets are given at correct NPC/Actions [Lupus]
+		Only at Kafra Employee 118,108  & Hanson 100,29
 10/31
 	* Official X.4 spawn mob types [Playtester]
 	- numbers are official on 90% of the maps

+ 37 - 34
npc/jobs/novice/novice.txt

@@ -1,9 +1,9 @@
 //===== eAthena Script ======================================= 
-//= Ep 9+ Novice Training Grounds
+//= Ep 10+ Novice Training Grounds
 //===== By: ================================================== 
 //= Dr.Evil & MasterOfMuppets
 //===== Current Version: ===================================== 
-//= 1.6
+//= 1.7
 //===== Compatible With: ===================================== 
 //= eAthena SVN 3422+(Requires jA Script System)
 //===== Description: ========================================= 
@@ -18,6 +18,7 @@
 //= 1.4 Added Kafra Free Cart Tickets, as in official one [Lupus]
 //= 1.5 Fixed warps, removed map duplicates, typos [Lupus]
 //= 1.6 Changed clone maps new_1-? -> new_zone0? [Lupus]
+//= 1.7 Now Kafra Tickets are given at correct NPC/Actions [Lupus]
 //============================================================ 
 
 //====================================================================
@@ -143,7 +144,7 @@ new_zone01.gat,53,114,4	script	Shion	727,{
 		mes "Grounds, you'll earn all sorts of";
 		mes "things that will help you play the";
 		mes "game. You'll even have the chance";
-		mes "to get zeny and other rewards.";
+		mes "to get Zeny and other rewards.";
 		next;
 		mes "[Shion]";
 		mes "You can even gain";
@@ -1103,7 +1104,6 @@ L_loop:
 			if (!(NEW_JOBLVUP)) {
 				set NEW_JOBLVUP,1;
 				set JobExp,JobExp+151;
-				getitem 7059,5;
 			}
 			mes "Remember though, that in the case of Equipment, each item takes up one Inventory Slot. The maximum number of items that can be placed in Kafra Storage is 30,000.";
 			break;
@@ -1118,10 +1118,6 @@ L_loop:
 			mes "[Kafra Employee]";
 			mes "We thank our valued customers for their great support and continue to provide them with the best";
 			mes "of service.";
-			if (!(NEW_WARPTICKET)) {
-				set NEW_WARPTICKET,1;
-				getitem 7060,5;
-			}
 			break;
 		case 4:	mes "[Kafra Employee]";
 			mes "The Kafra Corporation";
@@ -1138,10 +1134,6 @@ L_loop:
 			mes "The Cart Rental service";
 			mes "charge will differ from";
 			mes "town to town.";
-			if (!(NEW_CARTTICKET)) {
-				set NEW_CARTTICKET,1;
-				getitem 7061,5;
-			}
 			break;
 		case 5:	mes "[Kafra Employee]";
 			mes "I hope you are satisfied with my";
@@ -1161,10 +1153,9 @@ L_prewarp:
 		getitem 2112,1;
 		getitem 601,10;
 		getitem 602,2;
-		if(!NEW_JOBLVUP) getitem 7059,5;
-		if(!NEW_WARPTICKET) getitem 7060,5;
-		//don't give Cart Tickets
 	}
+	getitem 7059,5;	//Free Storage Ticket
+	getitem 7060,5;	//Free Warp Ticket
 	set NEW_MES_FLAG0,0;
 	set NEW_MES_FLAG1,0;
 	set NEW_MES_FLAG2,0;
@@ -1174,9 +1165,6 @@ L_prewarp:
 	set NEW_LVUP0,0;
 	set NEW_LVUP1,0;
 	set NEW_JOBLVUP,0;
-	set NEW_CARTTICKET,0;
-	set NEW_WARPTICKET,0;
-	set NEW_ADVSUIT,0;
 	return;
 }
 
@@ -1694,7 +1682,7 @@ L_loop1:
 			mes "you can find a full explanation";
 			mes "about trade and exchange with";
 			mes "pictures.";
-			mes "In order to trade items or zeny";
+			mes "In order to trade items or Zeny";
 			mes "with other people, you must learn";
 			mes "at least level 1 basic skill.";
 			next;
@@ -1726,9 +1714,9 @@ L_loop1:
 			mes "For item trade, you should click an";
 			mes "item and drag it to the left side";
 			mes "of the window.";
-			mes "For zeny trade, you can enter the";
-			mes "amount of zeny you want to trade.";
-			mes "After placing items or zeny into";
+			mes "For Zeny trade, you can enter the";
+			mes "amount of Zeny you want to trade.";
+			mes "After placing items or Zeny into";
 			mes "the trade windows";
 			mes "you should press the 'OK' button on";
 			mes "the bottom of the windows.";
@@ -3130,10 +3118,25 @@ L_loop2:
 		case 5:	mes "1 Battle Axe";
 			getitem 1351,1;
 		}
-		mes "7 Phracons";
+		if( @JOB_NUMBER_CHK == 5 ){
+			mes "^0000304 Free Tickets for Kafra Storage";
+			mes "4 Free Tickets for Kafra Transportation";
+			mes "4 Free Tickets for the Cart Service";
+			getitem 7059,4;
+			getitem 7060,4;
+			getitem 7061,4;
+		}else{
+			mes "^0000305 Free Tickets for Kafra Storage";
+			mes "5 Free Tickets for Kafra Transportation";
+			getitem 7059,5;
+			getitem 7060,5;
+		}
+		mes "^0000997 Phracons";
 		mes "10 Novices Red Potions^000000";
+		mes "^000030100 Zeny^000000";
 		getitem 1010,7;
 		getitem 569,10;
+		set Zeny,Zeny+100;
 		next;
 		mes "[Hanson]";
 		mes "All the supplies have been given to";
@@ -3290,14 +3293,17 @@ L_loop2:
 	mes "supplies, I will send you to";
 	mes "the associated town.";
 	next;
-	if(!NEW_ADVSUIT){
-		mes "^882420Item Offer List";
-		mes "^0000301 Adventurer's Suit";
-		mes "^00009910 Novices Red Potions^000000";
-		set NEW_ADVSUIT,1;
-		getitem 2305,1;
-		getitem 569,10;
-	}
+	mes "^882420Item Offer List";
+	mes "^0000301 Adventurer's Suit";
+	mes "^00009910 Novices Red Potions";
+	mes "^0000305 Free Tickets for Kafra Storage";
+	mes "^0000995 Free Tickets for Kafra Transportation";
+	mes "^000030100 Zeny^000000";
+	getitem 7059,5;
+	getitem 7060,5;
+	getitem 2305,1;
+	getitem 569,10;
+	set Zeny,Zeny+100;
 	next;
 	mes "[Hanson]";
 	mes "All the supplies have been given to";
@@ -3396,9 +3402,6 @@ L_cleararg:
 	set NEW_LVUP1,0;
 	set NEW_JOBLVUP,0;
 	set NEW_GETITEM,0;
-	set NEW_CARTTICKET,0;
-	set NEW_WARPTICKET,0;
-	set NEW_ADVSUIT,0;
 	set NOV_3_SWORDMAN,0;
 	set NOV_3_ARCHER,0;
 	set NOV_3_THIEF,0;

+ 0 - 24
npc/other/Global_Functions.txt

@@ -79,28 +79,8 @@ function	script	F_ClearJobVar	{
 function	script	F_ClearGarbage	{
 	// Clear outdated global VARS
 	//DTS Vote System
-	if(dtseligible == 2) set MISC_QUEST,MISC_QUEST|128;
-	if(dtseligible == 3) set dtseligible,0;
-	if($talk) set $talk,0;
 	if($dtsglobalelig) set $dtsglobalelig,0;
 	if($dts&(1<<6)) set $dts,$dts&~(1<<6);
-	//Misc Quests
-	if(MARIANNE) {set MISC_QUEST,MISC_QUEST | 1; set MARIANNE,0;}
-	set MEAT,0; set MORRISON,0;
-	set BUNYBND,0; set TEMPESTRA,0; 
-	set sewer_prt,0; set iz_move_alberta,0;
-	if(MORGEN >= 2) {set MISC_QUEST,MISC_QUEST | 4; set MORGEN,0;}
-	//Valhalla Remember Quest Skills. Unused
-	set QSK1,0; set QSK2,0; set QSK3,0; set QSK4,0;
-	//Niflheim
-	if(nif_q_done) {set nif_q_done,0; set MISC_QUEST,MISC_QUEST | 64;}
-	if(niflheimlost2) set MISC_QUEST,MISC_QUEST | 256;
-	set niflheimlost2,0; set niflheimlost,0; set lostgirl,0;
-	set nif_t,0; set nif_random,0; set nif_random1,0;
-	if(MISC_QUEST&32){set nif_quest1,0; set nif_quest2,0; set nif_quest3,0; set nif_quest4,0; set nif_quest5,0;}
-	//1st Class Quest Skills
-	set ARWCRFT,0; set HOLYLIGHT,0; set ARWREP,0; set ENRGYCOAT,0; set CRAZYROAR,0; set CHANGECART,0; set CARTREVO,0;
-	set SANDATTACK,0; set STONEFLING,0; set BACKSLIDE,0; set BAGNFNTY,0;
 	//Cube Room
 	if(hzdun) {
 		set MISC_QUEST,MISC_QUEST|512;
@@ -108,10 +88,6 @@ function	script	F_ClearGarbage	{
 		set num6,0;	set num7,0;	set num8,0;	set num9,0;
 		set hzdun,0; set cubekey,0; set piciburn,0;
 	}
-	set axe,0;	set ykey,0;	set box,0;	
-	set knife,0;	set redkey,0;	set srod1,0;	set srod2,0;
-	set fkey,0;	set gkey,0;	set polygon,0;	set machine,0;
-	set bkey,0;	set ellipse,0;	set quadrangle,0;	set rod,0;
 	return;
 }