summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-28 13:08:53 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-02-28 13:08:53 +0000
commit20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e (patch)
tree18e0ab985131e01fbbc9b6b30f23e7707088082b /src/map/pc.c
parente865d9496fe8b896082d5f62e73300b1262ddf02 (diff)
downloadhercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.tar.gz
hercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.tar.bz2
hercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.tar.xz
hercules-20fe02757e2dbc5c9ff8787faf2fbb97e3d5280e.zip
* Added autoequip flag check (added script command 'autoequip' to manipulate in script.c) for pc_takeitem in pc.c If it impacts on perfomance, please remove it.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5401 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 5d7d2ffbd..c0d8d0aa1 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2654,6 +2654,9 @@ int pc_takeitem(struct map_session_data *sd,struct flooritem_data *fitem)
clif_takeitem(&sd->bl,&fitem->bl);
map_clearflooritem(fitem->bl.id);
+ if(itemdb_autoequip(fitem->item_data.nameid) != 0){
+ pc_equipitem(sd, fitem->item_data.nameid, fitem->item_data.equip);
+ }
return 0;
}