summaryrefslogtreecommitdiff
path: root/src/map/charcommand.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-29 15:23:08 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-29 15:23:08 +0000
commit1a194c732064c612f23e55c6c0033ffea0303050 (patch)
tree6badd615f887a0a019f182e886804e3d0fd51060 /src/map/charcommand.c
parent371ce27789b684a49675c463ae31328985dbd0a0 (diff)
downloadhercules-1a194c732064c612f23e55c6c0033ffea0303050.tar.gz
hercules-1a194c732064c612f23e55c6c0033ffea0303050.tar.bz2
hercules-1a194c732064c612f23e55c6c0033ffea0303050.tar.xz
hercules-1a194c732064c612f23e55c6c0033ffea0303050.zip
* Updated damage calculation for Magnum Break
* Fixed #item not working properly git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1331 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r--src/map/charcommand.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index 15c94e51a..ed18f27a4 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -32,7 +32,7 @@
static char command_symbol = '#';
-extern char msg_table[1000][256]; // Server messages (0-499 reserved for GM commands, 500-999 reserved for others)
+extern char *msg_table[1000]; // Server messages (0-499 reserved for GM commands, 500-999 reserved for others)
#define CCMD_FUNC(x) int charcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message)
@@ -1067,8 +1067,8 @@ int charcommand_item(
for (i = 0; i < number; i += get_count) {
// if pet egg
if (pet_id >= 0) {
- sd->catch_target_class = pet_db[pet_id].class_;
- intif_create_pet(sd->status.account_id, sd->status.char_id,
+ pl_sd->catch_target_class = pet_db[pet_id].class_;
+ intif_create_pet(pl_sd->status.account_id, pl_sd->status.char_id,
(short)pet_db[pet_id].class_, (short)mob_db[pet_db[pet_id].class_].lv,
(short)pet_db[pet_id].EggID, 0, (short)pet_db[pet_id].intimate,
100, 0, 1, pet_db[pet_id].jname);
@@ -1077,8 +1077,8 @@ int charcommand_item(
memset(&item_tmp, 0, sizeof(item_tmp));
item_tmp.nameid = item_id;
item_tmp.identify = 1;
- if ((flag = pc_additem((struct map_session_data*)sd, &item_tmp, get_count)))
- clif_additem((struct map_session_data*)sd, 0, 0, flag);
+ if ((flag = pc_additem(pl_sd, &item_tmp, get_count)))
+ clif_additem(pl_sd, 0, 0, flag);
}
}
clif_displaymessage(fd, msg_table[18]); // Item created.