Browse Source

Applied patch to getitem2/delitem2 to handle charid embedding correctly (bugreport:2735).
Added missing codepage option for ipban module in login_athena.conf.
Converted dbghelpplug project in vs9 directory to vs9 format.
Updated effects list doc with new data from 2009/01/21a sakexe.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13523 54d463be-8e91-2dee-dedb-b68131a5f0ec

ultramage 16 years ago
parent
commit
54d610302d
4 changed files with 47 additions and 26 deletions
  1. 1 0
      conf/login_athena.conf
  2. 26 5
      doc/effect_list.txt
  3. 14 14
      src/map/script.c
  4. 6 7
      vcproj-9/dbghelpplug.vcproj

+ 1 - 0
conf/login_athena.conf

@@ -100,6 +100,7 @@ ipban.enable: yes
 //ipban.sql.db_username: ragnarok
 //ipban.sql.db_username: ragnarok
 //ipban.sql.db_password: ragnarok
 //ipban.sql.db_password: ragnarok
 //ipban.sql.db_database: ragnarok
 //ipban.sql.db_database: ragnarok
+//ipban.sql.codepage: 
 //ipban.sql.ipban_table: ipbanlist
 //ipban.sql.ipban_table: ipbanlist
 // Dynamic password failure ipban system
 // Dynamic password failure ipban system
 ipban.dynamic_pass_failure_ban: yes
 ipban.dynamic_pass_failure_ban: yes

+ 26 - 5
doc/effect_list.txt

@@ -3,7 +3,7 @@
 //===== By ================================================
 //===== By ================================================
 //= Valaris, Spira, Au{R}oN, Tharis, HiddenDragon
 //= Valaris, Spira, Au{R}oN, Tharis, HiddenDragon
 //===== Version ===========================================
 //===== Version ===========================================
-//= 2.1
+//= 2.2
 //=========================================================
 //=========================================================
 //= 1.0 - Formatted to the standard
 //= 1.0 - Formatted to the standard
 //= 1.1 - New Effects, up to 2007/05/07 Sakexe. [Au{R}oN]
 //= 1.1 - New Effects, up to 2007/05/07 Sakexe. [Au{R}oN]
@@ -17,6 +17,7 @@
 //= 1.9 - New Effects, up to 2008/05/28 Sakexe. [Au{R}oN]
 //= 1.9 - New Effects, up to 2008/05/28 Sakexe. [Au{R}oN]
 //= 2.0 - New Effects, up to 2008/07/15 Sakexe. [Au{R}oN]
 //= 2.0 - New Effects, up to 2008/07/15 Sakexe. [Au{R}oN]
 //= 2.1 - New Effects, up to 2008/08/06a Sakexe. [Au{R}oN]
 //= 2.1 - New Effects, up to 2008/08/06a Sakexe. [Au{R}oN]
+//= 2.2 - New Effects, up to 2009/01/21a Sakexe. [Au{R}oN]
 //===== Description =======================================
 //===== Description =======================================
 //= A list of client-side effects sorted by their ID
 //= A list of client-side effects sorted by their ID
 //=========================================================
 //=========================================================
@@ -730,9 +731,9 @@ number	description
 698.	(Nothing)
 698.	(Nothing)
 699.	Fall of powder from the sky and raise of some leaf
 699.	Fall of powder from the sky and raise of some leaf
 700.	Big Colored Green Sphere.
 700.	Big Colored Green Sphere.
-701.	Little Colored Violet Sphere
-702.	Light Infltrarion from and Fall of powder from the sky
-703.	(Nothing)
+701.	Huge Blue Sphere
+702.	Little Colored Violet Sphere
+703.	Light Infiltration with fall of pownder
 704.	(Nothing)
 704.	(Nothing)
 705.	(Nothing)
 705.	(Nothing)
 706.	(Nothing)
 706.	(Nothing)
@@ -741,4 +742,24 @@ number	description
 709.	A Firework that split in 4 mini fireworks
 709.	A Firework that split in 4 mini fireworks
 710.	A Sphere like Effect 701 but Green, and a bit more larger
 710.	A Sphere like Effect 701 but Green, and a bit more larger
 711.	A big violet wall
 711.	A big violet wall
-712.	No More Effects From 2008/08/06a Sakexe.
+712.	A Little Flame Sphere
+713.	A lot of Very Small and Yellow Sphere
+714.	(Nothing)
+715.	Something Like a Little Blue Basilica (Probably something related Arch Bishop)
+716.	The same of 715 (Probably something related Arch Bishop)
+717.	Something like Angelus (Probably something related Arch Bishop)
+718.	Another Fire Pillar Effect (Probably something related Warlock)
+719.	Light Infiltration from the Sky (Probably something related Warlock)
+720.	Some sound and effect of Soul Destroyer but Yellow (Probably something related Warlock)
+721.	Big Lightning from the SKy (Probably something related Warlock)
+722.	Bug Fire Explosion (Probably something related Warlock)
+723.	Noise Sound (Probably something related Warlock)
+724.	Client Crash :P
+725.	Status Recovery Sound and Wind movement on the ground (Probably something related Arch Bishop)
+726.	Big Blue Vapor Area (Probably something related Warlock)
+727.	A Comet from the SKy (Probably something related Warlock)
+728.	A Little Flare that Remain on the Player for some second (Probably something related Warlock)
+729.	Effect like Close Confine (Probably something related Warlock)
+730.	Little Explosion (Probably something related Warlock)
+731.	An effect like Mob's Skill Scream (Probably something related a 3th classes)
+732+.	No More Effects From 2009/01/21a Sakexe.

+ 14 - 14
src/map/script.c

@@ -2110,7 +2110,7 @@ struct script_code* parse_script(const char *src,const char *file,int line,int o
 			default:
 			default:
 				ShowMessage("unknown");
 				ShowMessage("unknown");
 			}
 			}
-			ShowMessage("\n");
+			ShowMessage(CL_CLL "\n");
 		}
 		}
 	}
 	}
 #endif
 #endif
@@ -5208,10 +5208,10 @@ BUILDIN_FUNC(getitem2)
 	iden=script_getnum(st,4);
 	iden=script_getnum(st,4);
 	ref=script_getnum(st,5);
 	ref=script_getnum(st,5);
 	attr=script_getnum(st,6);
 	attr=script_getnum(st,6);
-	c1=script_getnum(st,7);
-	c2=script_getnum(st,8);
-	c3=script_getnum(st,9);
-	c4=script_getnum(st,10);
+	c1=(short)script_getnum(st,7);
+	c2=(short)script_getnum(st,8);
+	c3=(short)script_getnum(st,9);
+	c4=(short)script_getnum(st,10);
 
 
 	if(nameid<0) { // ƒ‰ƒ“ƒ_ƒ€
 	if(nameid<0) { // ƒ‰ƒ“ƒ_ƒ€
 		nameid=itemdb_searchrandomid(-nameid);
 		nameid=itemdb_searchrandomid(-nameid);
@@ -5242,10 +5242,10 @@ BUILDIN_FUNC(getitem2)
 			item_tmp.identify=0;
 			item_tmp.identify=0;
 		item_tmp.refine=ref;
 		item_tmp.refine=ref;
 		item_tmp.attribute=attr;
 		item_tmp.attribute=attr;
-		item_tmp.card[0]=c1;
-		item_tmp.card[1]=c2;
-		item_tmp.card[2]=c3;
-		item_tmp.card[3]=c4;
+		item_tmp.card[0]=(short)c1;
+		item_tmp.card[1]=(short)c2;
+		item_tmp.card[2]=(short)c3;
+		item_tmp.card[3]=(short)c4;
 
 
 		//Check if it's stackable.
 		//Check if it's stackable.
 		if (!itemdb_isstackable(nameid))
 		if (!itemdb_isstackable(nameid))
@@ -5666,10 +5666,10 @@ BUILDIN_FUNC(delitem2)
 	iden=script_getnum(st,4);
 	iden=script_getnum(st,4);
 	ref=script_getnum(st,5);
 	ref=script_getnum(st,5);
 	attr=script_getnum(st,6);
 	attr=script_getnum(st,6);
-	c1=script_getnum(st,7);
-	c2=script_getnum(st,8);
-	c3=script_getnum(st,9);
-	c4=script_getnum(st,10);
+	c1=(short)script_getnum(st,7);
+	c2=(short)script_getnum(st,8);
+	c3=(short)script_getnum(st,9);
+	c4=(short)script_getnum(st,10);
 
 
 	if( amount <= 0 )
 	if( amount <= 0 )
 		return 0;// nothing to do
 		return 0;// nothing to do
@@ -5709,7 +5709,7 @@ BUILDIN_FUNC(delitem2)
 		}
 		}
 	}
 	}
 
 
-	ShowError("script:delitem: failed to delete %d items (AID=%d item_id=%d).\n", amount, sd->status.account_id, nameid);
+	ShowError("script:delitem2: failed to delete %d items (AID=%d item_id=%d).\n", amount, sd->status.account_id, nameid);
 	st->state = END;
 	st->state = END;
 	return 1;
 	return 1;
 }
 }

+ 6 - 7
vcproj-9/dbghelpplug.vcproj

@@ -1,11 +1,12 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
 <VisualStudioProject
 	ProjectType="Visual C++"
 	ProjectType="Visual C++"
-	Version="8.00"
+	Version="9.00"
 	Name="dbghelpplug"
 	Name="dbghelpplug"
 	ProjectGUID="{334742E0-7790-4857-A794-A54625D93487}"
 	ProjectGUID="{334742E0-7790-4857-A794-A54625D93487}"
 	RootNamespace="dbghelpplug"
 	RootNamespace="dbghelpplug"
 	Keyword="Win32Proj"
 	Keyword="Win32Proj"
+	TargetFrameworkVersion="131072"
 	>
 	>
 	<Platforms>
 	<Platforms>
 		<Platform
 		<Platform
@@ -73,6 +74,8 @@
 				GenerateDebugInformation="true"
 				GenerateDebugInformation="true"
 				ProgramDatabaseFile="$(OutDir)\plugins\$(ProjectName).pdb"
 				ProgramDatabaseFile="$(OutDir)\plugins\$(ProjectName).pdb"
 				SubSystem="2"
 				SubSystem="2"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
 				TargetMachine="1"
 				TargetMachine="1"
 			/>
 			/>
 			<Tool
 			<Tool
@@ -93,9 +96,6 @@
 			<Tool
 			<Tool
 				Name="VCAppVerifierTool"
 				Name="VCAppVerifierTool"
 			/>
 			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
 			<Tool
 			<Tool
 				Name="VCPostBuildEventTool"
 				Name="VCPostBuildEventTool"
 			/>
 			/>
@@ -161,6 +161,8 @@
 				SubSystem="2"
 				SubSystem="2"
 				OptimizeReferences="2"
 				OptimizeReferences="2"
 				EnableCOMDATFolding="2"
 				EnableCOMDATFolding="2"
+				RandomizedBaseAddress="1"
+				DataExecutionPrevention="0"
 				TargetMachine="1"
 				TargetMachine="1"
 			/>
 			/>
 			<Tool
 			<Tool
@@ -181,9 +183,6 @@
 			<Tool
 			<Tool
 				Name="VCAppVerifierTool"
 				Name="VCAppVerifierTool"
 			/>
 			/>
-			<Tool
-				Name="VCWebDeploymentTool"
-			/>
 			<Tool
 			<Tool
 				Name="VCPostBuildEventTool"
 				Name="VCPostBuildEventTool"
 			/>
 			/>