Forráskód Böngészése

- re-added the duplicit nj/gs name messages in msg_athena
- renamed atcommand_sub to is_atcommand_sub (charcommand too)
- reformatted conf-tmpl's comments a bit
- and a fix to the stable changelog to make my last commit more descriptive

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

ultramage 18 éve
szülő
commit
9f164c312b

+ 5 - 0
Changelog-Trunk.txt

@@ -3,6 +3,11 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2007/01/07
+	* Small reformatting of conf-tmpl
+	* Renamed atcommand_sub to is_atcommand_sub (charcommand too)
+	* Re-added the duplicit nj/gs name messages in msg_athena [ultramage]
+	  (the code was using those and they look better in that position)
 2007/01/06
 	* Now winsock 2 is required.
 	* Cleaned up do_close and socket_init a bit.

+ 0 - 1
conf-tmpl/battle/player.conf

@@ -123,7 +123,6 @@ show_hp_sp_drain: no
 // Display the gained hp/sp values from killing mobs? (Ie: Sky Deleter Card)
 show_hp_sp_gain: yes
 
-
 // If set, when A accepts B as a friend, B will also be added to A's friend 
 // list, otherwise, only A appears in B's friend list.
 // NOTE: this setting only enables friend auto-adding; auto-deletion does not work yet

+ 3 - 3
conf-tmpl/charcommand_athena.conf

@@ -3,8 +3,8 @@
 
 // Set here the symbol that you want to use for your commands
 // Only 1 character is get (default is '#'). You can set any character,
-// except control-character (0x00-0x1f), '%' (party chat speaking) and '/' (standard ragnarok GM commands)
-// and '@' (Standard GM Commands)
+// except control-character (0x00-0x1f), '%' (party chat speaking),
+// '/' (standard ragnarok GM commands) and '@' (Standard GM Commands)
 // With default character, all commands begin by a '#', example: #save SomePlayer
 command_symbol: #
 
@@ -41,7 +41,7 @@ option: 60
 //Save another character
 save: 60
 
-//Performs a stat and skill reset on someone else.
+//Performs a stat and skill reset on someone else
 reset: 60
 
 //Give another character spiritball effect

+ 1 - 1
conf-tmpl/mapflag/noicewall.txt

@@ -1,5 +1,5 @@
 //===== eAthena Script =======================================
-//= 1.6 Map flags that disable icewall skill
+//= Map flags that disable icewall skill
 //===== By: ==================================================
 //= eAthena Dev Team
 //=============================================================

+ 2 - 0
conf-tmpl/msg_athena.conf

@@ -549,6 +549,8 @@
 616: Taekwon
 617: Star Gladiator
 618: Soul Linker
+619: Gunslinger
+620: Ninja
 //...
 650: Unknown Job
 

+ 1 - 0
src/char/char.c

@@ -4447,3 +4447,4 @@ int do_init(int argc, char **argv) {
 	return 0;
 }
 #endif //TXT_SQL_CONVERT
+

+ 1 - 1
src/char_sql/inter.c

@@ -767,7 +767,7 @@ int inter_parse_frommap(int fd)
 	int len=0;
 	RFIFOHEAD(fd);
 	cmd=RFIFOW(fd,0);
-	// interŽIŠÇŠ�‚©‚𒲂ׂ
+	// interŽIŠÇŠ�‚©‚𒲂ׂé
 	if(cmd < 0x3000 || cmd >= 0x3000 + (sizeof(inter_recv_packet_length)/
 		sizeof(inter_recv_packet_length[0]) ) )
 		return 0;

+ 2 - 2
src/map/atcommand.c

@@ -778,7 +778,7 @@ int get_atcommand_level(const AtCommandType type) {
 }
 
 AtCommandType
-atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl) {
+is_atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl) {
 	AtCommandInfo info;
 	AtCommandType type;
 
@@ -852,7 +852,7 @@ is_atcommand(const int fd, struct map_session_data* sd, const char* message) {
 	if (!*str)
 		return AtCommand_None;
 
-	return atcommand_sub(fd,sd,str,pc_isGM(sd));
+	return is_atcommand_sub(fd,sd,str,pc_isGM(sd));
 }
 
 /*==========================================

+ 1 - 1
src/map/atcommand.h

@@ -301,7 +301,7 @@ typedef struct AtCommandInfo {
 AtCommandType
 is_atcommand(const int fd, struct map_session_data* sd, const char* message);
 AtCommandType
-atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl);
+is_atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl);
 
 AtCommandType atcommand(
 	struct map_session_data *sd,

+ 2 - 2
src/map/charcommand.c

@@ -123,7 +123,7 @@ int get_charcommand_level(const CharCommandType type) {
 }
 
 CharCommandType 
-charcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl) {
+is_charcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl) {
 	CharCommandInfo info;
 	CharCommandType type;
 
@@ -194,7 +194,7 @@ is_charcommand(const int fd, struct map_session_data* sd, const char* message) {
 	if (!*str)
 		return CharCommand_None;
 
-	return charcommand_sub(fd,sd,str,pc_isGM(sd));
+	return is_charcommand_sub(fd,sd,str,pc_isGM(sd));
 }
 
 /*==========================================

+ 2 - 2
src/map/charcommand.h

@@ -62,13 +62,13 @@ typedef struct CharCommandInfo {
 CharCommandType
 is_charcommand(const int fd, struct map_session_data* sd, const char* message);
 CharCommandType 
-charcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl);
+is_charcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl);
 
 CharCommandType charcommand(
 	struct map_session_data* sd, const int level, const char* message, CharCommandInfo* info);
 int get_charcommand_level(const CharCommandType type);
 
 int charcommand_config_read(const char *cfgName);
-extern char charcommand_symbol;	
+extern char charcommand_symbol;
 #endif
 

+ 1 - 1
src/map/clif.c

@@ -4162,8 +4162,8 @@ int clif_clearchar_skillunit(struct skill_unit *unit,int fd)
 
 /*==========================================
  * Unknown... trap related?
- *------------------------------------------
  * Only affects units with class [139,153] client-side
+ *------------------------------------------
  */
 int clif_01ac(struct block_list *bl)
 {

+ 6 - 6
src/map/itemdb.c

@@ -954,10 +954,10 @@ static int itemdb_read_sqldb(void)
 						script_free_code(id->script);
 					if (sql_row[19] != NULL) {
 						if (sql_row[19][0] == '{')
-							id->script = parse_script((unsigned char *) sql_row[19],item_db_name[i], ln, 0);
+							id->script = parse_script(sql_row[19],item_db_name[i], ln, 0);
 						else {
 							sprintf(script, "{%s}", sql_row[19]);
-							id->script = parse_script((unsigned char *) script, item_db_name[i], ln, 0);
+							id->script = parse_script(script, item_db_name[i], ln, 0);
 						}
 					} else id->script = NULL;
 	
@@ -965,10 +965,10 @@ static int itemdb_read_sqldb(void)
 						script_free_code(id->equip_script);
 					if (sql_row[20] != NULL) {
 						if (sql_row[20][0] == '{')
-							id->equip_script = parse_script((unsigned char *) sql_row[20], item_db_name[i], ln, 0);
+							id->equip_script = parse_script(sql_row[20], item_db_name[i], ln, 0);
 						else {
 							sprintf(script, "{%s}", sql_row[20]);
-							id->equip_script = parse_script((unsigned char *) script, item_db_name[i], ln, 0);
+							id->equip_script = parse_script(script, item_db_name[i], ln, 0);
 						}
 					} else id->equip_script = NULL;
 	
@@ -976,10 +976,10 @@ static int itemdb_read_sqldb(void)
 						script_free_code(id->unequip_script);
 					if (sql_row[21] != NULL) {
 						if (sql_row[21][0] == '{')
-							id->unequip_script = parse_script((unsigned char *) sql_row[21],item_db_name[i], ln, 0);
+							id->unequip_script = parse_script(sql_row[21],item_db_name[i], ln, 0);
 						else {
 							sprintf(script, "{%s}", sql_row[21]);
-							id->unequip_script = parse_script((unsigned char *) script, item_db_name[i], ln, 0);
+							id->unequip_script = parse_script(script, item_db_name[i], ln, 0);
 						}
 					} else id->unequip_script = NULL;
 				

+ 1 - 1
src/map/map.c

@@ -3278,7 +3278,7 @@ int parse_console(char *buf) {
 	ShowInfo("Type of command: %s || Command: %s || Map: %s Coords: %d %d\n",type,command,map,x,y);
 
 	if ( strcmpi("admin",type) == 0 && n == 5 ) {
-		if( atcommand_sub(sd.fd,&sd,command,99) == AtCommand_None )
+		if( is_atcommand_sub(sd.fd,&sd,command,99) == AtCommand_None )
 			printf("Console: not atcommand\n");
 	} else if ( strcmpi("server",type) == 0 && n == 2 ) {
 		if ( strcmpi("shutdown", command) == 0 || strcmpi("exit",command) == 0 || strcmpi("quit",command) == 0 ) {

+ 4 - 4
src/map/script.c

@@ -10344,7 +10344,7 @@ int buildin_atcommand(struct script_state *st)
 			while(*cmd != atcommand_symbol && *cmd != 0)
 				cmd++;
 		}
-		atcommand_sub(sd->fd, sd, cmd, 99);
+		is_atcommand_sub(sd->fd, sd, cmd, 99);
 	} else { //Use a dummy character.
 		struct map_session_data dummy_sd;
 		struct block_list *bl = NULL;
@@ -10360,7 +10360,7 @@ int buildin_atcommand(struct script_state *st)
 			while(*cmd != atcommand_symbol && *cmd != 0)
 				cmd++;
 		}
-		atcommand_sub(0, &dummy_sd, cmd, 99);
+		is_atcommand_sub(0, &dummy_sd, cmd, 99);
 	}
 
 	return 0;
@@ -10382,7 +10382,7 @@ int buildin_charcommand(struct script_state *st)
 			while(*cmd != charcommand_symbol && *cmd != 0)
 				cmd++;
 		}
-		charcommand_sub(sd->fd, sd, cmd,99);
+		is_charcommand_sub(sd->fd, sd, cmd,99);
 	} else { //Use a dummy character.
 		struct map_session_data dummy_sd;
 		struct block_list *bl = NULL;
@@ -10398,7 +10398,7 @@ int buildin_charcommand(struct script_state *st)
 			while(*cmd != charcommand_symbol && *cmd != 0)
 				cmd++;
 		}
-		charcommand_sub(0, &dummy_sd, cmd, 99);
+		is_charcommand_sub(0, &dummy_sd, cmd, 99);
 	}
 
 	return 0;