summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-07 21:57:49 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-10 23:06:08 +0300
commit2f488d98cacccc17d1702230488e15f7f9bc25e7 (patch)
tree0acf0239078b8bf1ce35dc4929ce8435f37be546 /src/map/pc.c
parentc0367b69fd226be21643cd4b620fff2aadb0e742 (diff)
downloadhercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.tar.gz
hercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.tar.bz2
hercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.tar.xz
hercules-2f488d98cacccc17d1702230488e15f7f9bc25e7.zip
Move equip item script function call into function script_run_item_equip_script.
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1589ae910..d6b377b9b 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -9637,7 +9637,8 @@ int pc_equipitem(struct map_session_data *sd,int n,int req_pos)
//OnEquip script [Skotlex]
if (id->equip_script)
- script->run(id->equip_script,0,sd->bl.id,npc->fake_nd->bl.id);
+ script->run_item_equip_script(sd, id, npc->fake_nd->bl.id);
+
if(itemdb_isspecial(sd->status.inventory[n].card[0]))
; //No cards
else {
@@ -9646,8 +9647,8 @@ int pc_equipitem(struct map_session_data *sd,int n,int req_pos)
if (!sd->status.inventory[n].card[i])
continue;
if ( ( data = itemdb->exists(sd->status.inventory[n].card[i]) ) != NULL ) {
- if( data->equip_script )
- script->run(data->equip_script,0,sd->bl.id,npc->fake_nd->bl.id);
+ if (data->equip_script)
+ script->run_item_equip_script(sd, data, npc->fake_nd->bl.id);
}
}
}