From c95b0cddf7b946631a1cbdad607558b51a25261a Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 9 May 2013 12:59:09 -0300 Subject: Added Item #12790 Special Thanks to Yommy~! Thanks <3 Signed-off-by: shennetsind --- src/map/map.h | 1 + src/map/pc.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/map.h b/src/map/map.h index c7f9949eb..a8ce19713 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -361,6 +361,7 @@ enum _sp { SP_KILLERRID=121, SP_KILLEDRID=122, SP_SLOTCHANGE=123, + SP_CHARRENAME=124, // Mercenaries SP_MERCFLEE=165, SP_MERCKILLS=189, SP_MERCFAITH=190, diff --git a/src/map/pc.c b/src/map/pc.c index 9dfaa18f1..191a9a6d7 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -6938,7 +6938,8 @@ int pc_readparam(struct map_session_data* sd,int type) case SP_FAME: val = sd->status.fame; break; case SP_KILLERRID: val = sd->killerrid; break; case SP_KILLEDRID: val = sd->killedrid; break; - case SP_SLOTCHANGE: val = sd->status.slotchange; + case SP_SLOTCHANGE: val = sd->status.slotchange; break; + case SP_CHARRENAME: val = sd->status.rename; break; case SP_CRITICAL: val = sd->battle_status.cri/10; break; case SP_ASPD: val = (2000-sd->battle_status.amotion)/10; break; case SP_BASE_ATK: val = sd->battle_status.batk; break; @@ -7183,6 +7184,9 @@ int pc_setparam(struct map_session_data *sd,int type,int val) case SP_SLOTCHANGE: sd->status.slotchange = val; return 1; + case SP_CHARRENAME: + sd->status.rename = val; + return 1; default: ShowError("pc_setparam: Attempted to set unknown parameter '%d'.\n", type); return 0; -- cgit v1.2.3-70-g09d2