浏览代码

Another one set of fixes for the scripts syntax

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9166 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lupus 18 年之前
父节点
当前提交
959443e036

+ 1 - 0
npc/Changelog.txt

@@ -34,6 +34,7 @@ KarLaeda
 Date		Added
 Date		Added
 ======
 ======
 11/07
 11/07
+	* Another one set of fixes for the scripts syntax. [KarLaeda]
 	* Added Quiz (Revolution) Part 1. Converted by CAHTXHuK [Lupus]
 	* Added Quiz (Revolution) Part 1. Converted by CAHTXHuK [Lupus]
 	  He's another candidate to the script devs. Work in progress. Help us to find bugs
 	  He's another candidate to the script devs. Work in progress. Help us to find bugs
 		
 		

+ 1 - 1
npc/custom/WoE_Setter.txt

@@ -146,7 +146,7 @@ L_BadNumber:
 	mes "Sorry that was an invalid number, please try again";
 	mes "Sorry that was an invalid number, please try again";
 	close;
 	close;
 }
 }
-- script Agit_Event2 -1,{
+-	script	Agit_Event2	-1,{
 	end;
 	end;
 OnInit:
 OnInit:
 disablenpc "Agit_Event";
 disablenpc "Agit_Event";

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/kafras.txt

@@ -189,7 +189,7 @@ glast_01.gat,62,198,6	script	Kafra Express::D_GHChivalry	791,{
 }
 }
 
 
 //LightHalzen Rekkenber (Sewer Entrance)
 //LightHalzen Rekkenber (Sewer Entrance)
-lighthalzen.gat,311,293,17	script	Kafra Express::D_Lhz	860,{
+lighthalzen.gat,311,293,1	script	Kafra Express::D_Lhz	860,{
 	callfunc "F_KafraExpress","Kafra Express","kafra_08",1,"lighthalzen.gat",301,286;
 	callfunc "F_KafraExpress","Kafra Express","kafra_08",1,"lighthalzen.gat",301,286;
 }
 }
 
 

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_bank.txt

@@ -14,7 +14,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_bank	{
+-	script	keInit_bank	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadBank";
 	donpcevent "keConfig::OnLoadBank";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_broadcast.txt

@@ -17,7 +17,7 @@
 //= Module are used.
 //= Module are used.
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_broadcast	{
+-	script	keInit_broadcast	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadBroadcast";
 	donpcevent "keConfig::OnLoadBroadcast";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_dye.txt

@@ -13,7 +13,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================
 //============================================================
 
 
--	script	keInit_dye	{
+-	script	keInit_dye	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadDye";
 	donpcevent "keConfig::OnLoadDye";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_jobchange.txt

@@ -16,7 +16,7 @@
 //= the server wide variables kej_class1 and kej_class2
 //= the server wide variables kej_class1 and kej_class2
 //============================================================
 //============================================================
 
 
--	script	keInit_jobchange	{
+-	script	keInit_jobchange	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadJobChange";
 	donpcevent "keConfig::OnLoadJobChange";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_jobswap.txt

@@ -19,7 +19,7 @@
 //= kej_prev_dye (cloth dye)
 //= kej_prev_dye (cloth dye)
 //============================================================
 //============================================================
 
 
--	script	keInit_jobSwap	{
+-	script	keInit_jobSwap	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadJobSwap";
 	donpcevent "keConfig::OnLoadJobSwap";
 	end;
 	end;

+ 2 - 2
npc/custom/eAAC_Scripts/kafraExpress/ke_refine.txt

@@ -14,7 +14,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================
 //============================================================
 
 
--	script	keInit_refine	{
+-	script	keInit_refine	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadRefine";
 	donpcevent "keConfig::OnLoadRefine";
 	end;
 	end;
@@ -33,7 +33,7 @@ function SF_sellOres;
 			"- Refine Equipment",
 			"- Refine Equipment",
 			"- Repair Equipment",
 			"- Repair Equipment",
 			"- Buy Ores",
 			"- Buy Ores",
-			"- Purify Ores",
+			"- Purify Ores"
 		);
 		);
 		switch(@kmenu) {
 		switch(@kmenu) {
 		case 2: //Refine
 		case 2: //Refine

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_rent.txt

@@ -13,7 +13,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_rent	{
+-	script	keInit_rent	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadRent";
 	donpcevent "keConfig::OnLoadRent";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_shop.txt

@@ -13,7 +13,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================
 //============================================================
 
 
--	script	keInit_shop	{
+-	script	keInit_shop	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadShop";
 	donpcevent "keConfig::OnLoadShop";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_statmarket.txt

@@ -13,7 +13,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================
 //============================================================
 
 
--	script	keInit_statmarket	{
+-	script	keInit_statmarket	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadStatMarket";
 	donpcevent "keConfig::OnLoadStatMarket";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_stats.txt

@@ -13,7 +13,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================
 //============================================================
 
 
--	script	keInit_stats	{
+-	script	keInit_stats	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadStats";
 	donpcevent "keConfig::OnLoadStats";
 	end;
 	end;

+ 2 - 2
npc/custom/eAAC_Scripts/kafraExpress/ke_uncard.txt

@@ -13,7 +13,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_uncard	{
+-	script	keInit_uncard	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadUncard";
 	donpcevent "keConfig::OnLoadUncard";
 	end;
 	end;
@@ -109,7 +109,7 @@ function SF_uncard {
 		set @failsave, select(
 		set @failsave, select(
 			"- Cancel",
 			"- Cancel",
 			"- Remove cards ("+@price+"z, item gets priority)",
 			"- Remove cards ("+@price+"z, item gets priority)",
-			"- Remove cards ("+@price+"z, cards get priority)",
+			"- Remove cards ("+@price+"z, cards get priority)"
 		);
 		);
 	} else {
 	} else {
 		set @failsave, select(
 		set @failsave, select(

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_warp_dungeon.txt

@@ -43,7 +43,7 @@
 
 
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_warpDungeon	{
+-	script	keInit_warpDungeon	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadWarpDungeon";
 	donpcevent "keConfig::OnLoadWarpDungeon";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_warp_pvp.txt

@@ -13,7 +13,7 @@
 //= See config.txt for configuration.
 //= See config.txt for configuration.
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_warpPvp	{
+-	script	keInit_warpPvp	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadWarpPvp";
 	donpcevent "keConfig::OnLoadWarpPvp";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_warp_town.txt

@@ -35,7 +35,7 @@
 //= 0x00100000 Yuno
 //= 0x00100000 Yuno
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_warpTown	{
+-	script	keInit_warpTown	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadWarpTown";
 	donpcevent "keConfig::OnLoadWarpTown";
 	end;
 	end;

+ 1 - 1
npc/custom/eAAC_Scripts/kafraExpress/ke_warp_woe.txt

@@ -14,7 +14,7 @@
 //= Remove the comment on lines 52,53 and 63 to enable direct G. Dungeon warping
 //= Remove the comment on lines 52,53 and 63 to enable direct G. Dungeon warping
 //============================================================ 
 //============================================================ 
 
 
--	script	keInit_warpWoe	{
+-	script	keInit_warpWoe	-1,{
 OnInit:	//Load Config
 OnInit:	//Load Config
 	donpcevent "keConfig::OnLoadWarpWoe";
 	donpcevent "keConfig::OnLoadWarpWoe";
 	end;
 	end;

+ 6 - 6
npc/custom/mvm.txt

@@ -16,8 +16,9 @@
 //= Added Duel Room
 //= Added Duel Room
 //= ---------------------------------------------------------
 //= ---------------------------------------------------------
 //= Script is messy! Be careful!
 //= Script is messy! Be careful!
-//= 1.1.3 Removed Duplicate Names [Silent]
 //= 1.1.2 Changed all gmcommand to atcommand as Poki#3 suggested. [Vicious]
 //= 1.1.2 Changed all gmcommand to atcommand as Poki#3 suggested. [Vicious]
+//= 1.1.3 Removed Duplicate Names [Silent]
+//= 1.1.4 Fixed SummonPad syntax. [KarLaeda]
 //============================================================ 
 //============================================================ 
 
 
 // Entrance //
 // Entrance //
@@ -68,7 +69,7 @@ goto L_Menu;
 }
 }
 
 
 // Monster Summon Function //
 // Monster Summon Function //
-function	script	monstersummon	-1,{
+function	script	monstersummon	{
 // 1. ---Change to Add Monsters--- //
 // 1. ---Change to Add Monsters--- //
 if (#monster == 10) summon strcharinfo(0) + "'s Poring",1002, "OnPoringKilled";
 if (#monster == 10) summon strcharinfo(0) + "'s Poring",1002, "OnPoringKilled";
 if (#monster == 20) summon strcharinfo(0) + "'s Fabre",1007, "OnFaberKilled";
 if (#monster == 20) summon strcharinfo(0) + "'s Fabre",1007, "OnFaberKilled";
@@ -709,7 +710,7 @@ close;
 	callfunc "duelkill";
 	callfunc "duelkill";
 	}
 	}
 
 
-function	script	duelkill	-1,{
+function	script	duelkill	{
 if (strcharinfo(0) == $@duelist1$ || strcharinfo(0) == $@duelist2$) goto L_Heal;
 if (strcharinfo(0) == $@duelist1$ || strcharinfo(0) == $@duelist2$) goto L_Heal;
 end;
 end;
 	L_Heal:
 	L_Heal:
@@ -720,7 +721,7 @@ end;
 	end;
 	end;
 }
 }
 	
 	
-function	script	illegalkill	-1,{
+function	script	illegalkill	{
 announce "Illegal Kill by " + strcharinfo(0) + " Detected",1;
 announce "Illegal Kill by " + strcharinfo(0) + " Detected",1;
 percentheal -100,-100;
 percentheal -100,-100;
 end;
 end;
@@ -748,13 +749,12 @@ end;
 }
 }
 
 
 // Warps players //
 // Warps players //
--	script	SummonPad	111,2,2,{
+gon_test.gat,57,86,5	script	Summon Pad 1::SummonPad	111,2,2,{
 end;
 end;
 OnTouch:
 OnTouch:
 set @marena,1;
 set @marena,1;
 warp "gon_test.gat",57,99;
 warp "gon_test.gat",57,99;
 }
 }
-gon_test.gat,57,86,5	duplicate(SummonPad)	Summon Pad 1	111,2,2
 gon_test.gat,43,87,5	duplicate(SummonPad)	Summon Pad 2	111,2,2
 gon_test.gat,43,87,5	duplicate(SummonPad)	Summon Pad 2	111,2,2
 gon_test.gat,72,87,5	duplicate(SummonPad)	Summon Pad 3	111,2,2
 gon_test.gat,72,87,5	duplicate(SummonPad)	Summon Pad 3	111,2,2
 
 

+ 1 - 1
npc/custom/tougijou.txt

@@ -1,4 +1,4 @@
-/===============================================================================
+//===============================================================================
 // Tougijou (Arena) EVENT
 // Tougijou (Arena) EVENT
 //===============================================================================
 //===============================================================================
 gonryun.gat,180,117,0	script	Son Mudo	85,{
 gonryun.gat,180,117,0	script	Son Mudo	85,{

+ 1 - 1
npc/warps/dungeons/kiel_dun.txt

@@ -68,7 +68,7 @@ L_End:
   close;
   close;
 }
 }
 
 
-kh_dun01.gat,36,195,4	duplicate(khelevator)	Switch#khe2	111,
+kh_dun01.gat,36,195,4	duplicate(khelevator)	Switch#khe2	111
 
 
 //= Custom Kiel Dungeon Warps ================================
 //= Custom Kiel Dungeon Warps ================================
 //kh_dun01.gat,3,234,0	warp	warp01	1,1,kh_dun02.gat,42,197
 //kh_dun01.gat,3,234,0	warp	warp01	1,1,kh_dun02.gat,42,197

+ 11 - 11
npc/warps/dungeons/thana_custom.txt

@@ -90,17 +90,17 @@ tha_t11.gat,93,36,0	warp	tha_t10	1,1,tha_t10.gat,91,130
 tha_t12.gat,129,51,0	warp	tha_t11	1,1,tha_t11.gat,13,38
 tha_t12.gat,129,51,0	warp	tha_t11	1,1,tha_t11.gat,13,38
 
 
 //Thana_step
 //Thana_step
-thana_step.gat,12,73,0 warp thana_step1 1,1,tha_t12.gat,128,58
-thana_step.gat,16,16,0 warp thana_step2 1,1,thana_step.gat,32,224
-thana_step.gat,30,224,0 warp thana_step3 1,1,thana_step.gat,19,16
-thana_step.gat,32,166,0 warp thana_step4 1,1,thana_step.gat,184,74
-thana_step.gat,180,74,0 warp thana_step5 1,1,thana_step.gat,36,166
-thana_step.gat,182,16,0 warp thana_step6 1,1,thana_step.gat,184,224
-thana_step.gat,180,224,0 warp thana_step7 1,1,thana_step.gat,185,16
-thana_step.gat,182,166,0 warp thana_step8 1,1,thana_step.gat,73,287
-thana_step.gat,69,287,0 warp thana_step9 1,1,thana_step.gat,186,166
-thana_step.gat,70,371,0 warp thana_step10 1,1,thana_step.gat,170,287
-thana_step.gat,174,287,0 warp thana_step11 1,1,thana_step.gat,74,371 
+thana_step.gat,12,73,0	warp	thana_step1	1,1,tha_t12.gat,128,58
+thana_step.gat,16,16,0	warp	thana_step2	1,1,thana_step.gat,32,224
+thana_step.gat,30,224,0	warp	thana_step3	1,1,thana_step.gat,19,16
+thana_step.gat,32,166,0	warp	thana_step4	1,1,thana_step.gat,184,74
+thana_step.gat,180,74,0	warp	thana_step5	1,1,thana_step.gat,36,166
+thana_step.gat,182,16,0	warp	thana_step6	1,1,thana_step.gat,184,224
+thana_step.gat,180,224,0	warp	thana_step7	1,1,thana_step.gat,185,16
+thana_step.gat,182,166,0	warp	thana_step8	1,1,thana_step.gat,73,287
+thana_step.gat,69,287,0	warp	thana_step9	1,1,thana_step.gat,186,166
+thana_step.gat,70,371,0	warp	thana_step10	1,1,thana_step.gat,170,287
+thana_step.gat,174,287,0	warp	thana_step11	1,1,thana_step.gat,74,371
 
 
 //Thana_boss
 //Thana_boss
 thana_step.gat,169,371,0	warp	thana_boss	1,1,thana_boss.gat,85,76
 thana_step.gat,169,371,0	warp	thana_boss	1,1,thana_boss.gat,85,76

+ 8 - 8
npc/warps/dungeons/thana_dun.txt

@@ -100,10 +100,10 @@ tha_t09.gat,92,146,0	script	WarpThana9b	45,1,1,{
   end;
   end;
 
 
 }
 }
-thana_step.gat,180,223	warp	WarpThana9c	1,1,tha_t09.gat,89,146
+thana_step.gat,180,223,0	warp	WarpThana9c	1,1,tha_t09.gat,89,146
 
 
 // Thanatos Tower Level 10 (tha_t10.gat)
 // Thanatos Tower Level 10 (tha_t10.gat)
-thana_step.gat,182,165	warp	WarpThana10a	1,1,tha_t10.gat,167,138
+thana_step.gat,182,165,0	warp	WarpThana10a	1,1,tha_t10.gat,167,138
 tha_t10.gat,170,138,0	script	WarpThana10b	45,1,1,{
 tha_t10.gat,170,138,0	script	WarpThana10b	45,1,1,{
 
 
   if (ThanaSteps & 4) warp "thana_step.gat",17,73;
   if (ThanaSteps & 4) warp "thana_step.gat",17,73;
@@ -111,10 +111,10 @@ tha_t10.gat,170,138,0	script	WarpThana10b	45,1,1,{
   end;
   end;
 
 
 }
 }
-thana_step.gat,14,73	warp	WarpThana10c	1,1,tha_t10.gat,167,138
+thana_step.gat,14,73,0	warp	WarpThana10c	1,1,tha_t10.gat,167,138
 
 
 // Thanatos Tower Level 11 (tha_t11.gat)
 // Thanatos Tower Level 11 (tha_t11.gat)
-thana_step.gat,16,15	warp	WarpThana11a	1,1,tha_t11.gat,89,36
+thana_step.gat,16,15,0	warp	WarpThana11a	1,1,tha_t11.gat,89,36
 tha_t11.gat,92,36,0	script	WarpThana11b	45,1,1,{
 tha_t11.gat,92,36,0	script	WarpThana11b	45,1,1,{
 
 
   if (ThanaSteps & 64) warp "thana_step.gat",183,73;
   if (ThanaSteps & 64) warp "thana_step.gat",183,73;
@@ -122,9 +122,9 @@ tha_t11.gat,92,36,0	script	WarpThana11b	45,1,1,{
   end;
   end;
 
 
 }
 }
-thana_step.gat,180,73	warp	WarpThana11c	1,1,tha_t11.gat,89,36
+thana_step.gat,180,73,0	warp	WarpThana11c	1,1,tha_t11.gat,89,36
 
 
 // Thanatos Tower Level 12 (tha_t12.gat)
 // Thanatos Tower Level 12 (tha_t12.gat)
-thana_step.gat,182,15	warp	WarpThana12a	1,1,tha_t12.gat,129,51
-thana_step.gat,70,288	warp	WarpThana12b	1,1,tha_t12.gat,129,51
-thana_step.gat,173,288	warp	WarpThana12c	1,1,thana_boss.gat,135,128
+thana_step.gat,182,15,0	warp	WarpThana12a	1,1,tha_t12.gat,129,51
+thana_step.gat,70,288,0	warp	WarpThana12b	1,1,tha_t12.gat,129,51
+thana_step.gat,173,288,0	warp	WarpThana12c	1,1,thana_boss.gat,135,128

+ 1 - 1
npc/warps/other/arena.txt

@@ -1,4 +1,4 @@
-//============================================================
+//============================================================
 //===== Athena Script ========================================
 //===== Athena Script ========================================
 //= Arena Warps
 //= Arena Warps
 //===== By: ==================================================
 //===== By: ==================================================

+ 1 - 1
npc/warps/other/jobquests.txt

@@ -60,7 +60,7 @@ moc_fild16.gat,205,296,0	warp	16_to_guild	2,2,in_moc_16.gat,18,11
 //==============================================================================
 //==============================================================================
 // Hunter
 // Hunter
 //==============================================================================
 //==============================================================================
-in_hunter.gat,100,15,0	warp 	jhun01	0,0,pay_fild10.gat,143,250
+in_hunter.gat,100,15,0	warp	jhun01	0,0,pay_fild10.gat,143,250