summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-09 12:52:43 -0300
committershennetsind <ind@henn.et>2013-05-09 12:52:43 -0300
commitfeba80eb95cdab74ea5bfeef8c9843de55100d98 (patch)
tree4c85f99c34a69dd6d2dabd1d0f57f953babe589d /src/map
parent00d78a1b14f524fa7a4aea9322d9f4b5df65a4d1 (diff)
downloadhercules-feba80eb95cdab74ea5bfeef8c9843de55100d98.tar.gz
hercules-feba80eb95cdab74ea5bfeef8c9843de55100d98.tar.bz2
hercules-feba80eb95cdab74ea5bfeef8c9843de55100d98.tar.xz
hercules-feba80eb95cdab74ea5bfeef8c9843de55100d98.zip
Fixed Item #12786
Special Thanks to Yommy <3~ Thanks! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map.h1
-rw-r--r--src/map/pc.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/map/map.h b/src/map/map.h
index ae60b810c..c7f9949eb 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -360,6 +360,7 @@ enum _sp {
SP_BASECLASS=120, //Hmm.. why 100+19? I just use the next one... [Skotlex]
SP_KILLERRID=121,
SP_KILLEDRID=122,
+ SP_SLOTCHANGE=123,
// Mercenaries
SP_MERCFLEE=165, SP_MERCKILLS=189, SP_MERCFAITH=190,
diff --git a/src/map/pc.c b/src/map/pc.c
index aaf89e09a..9dfaa18f1 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6938,6 +6938,7 @@ 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_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;
@@ -7179,6 +7180,9 @@ int pc_setparam(struct map_session_data *sd,int type,int val)
case SP_KILLEDRID:
sd->killedrid = val;
return 1;
+ case SP_SLOTCHANGE:
+ sd->status.slotchange = val;
+ return 1;
default:
ShowError("pc_setparam: Attempted to set unknown parameter '%d'.\n", type);
return 0;