diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-15 14:15:16 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-15 14:15:16 +0000 |
commit | 0393c333d4333d59d4cdb5083a0d004b2de92cb6 (patch) | |
tree | 7cd078724bf5407ac7ed16dcda11b67a758d80fc /src/map/pc.c | |
parent | 3bd071ef6561d6c8dc372585fde5e64ee54d5ec5 (diff) | |
download | hercules-0393c333d4333d59d4cdb5083a0d004b2de92cb6.tar.gz hercules-0393c333d4333d59d4cdb5083a0d004b2de92cb6.tar.bz2 hercules-0393c333d4333d59d4cdb5083a0d004b2de92cb6.tar.xz hercules-0393c333d4333d59d4cdb5083a0d004b2de92cb6.zip |
- Fixed and cleaned up script command 'equip'
- Fixed 'autoequip' items.
- Fixed Aspd not being updated in your status window after Agi/Dex increasing statuses take effect.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7179 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 877c97366..75fd227d1 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2533,8 +2533,11 @@ int pc_additem(struct map_session_data *sd,struct item *item_data,int amount) sd->inventory_data[i] = data;
clif_additem(sd,i,amount,0);
}
+
sd->weight += w;
clif_updatestatus(sd,SP_WEIGHT);
+ //Auto-equip
+ if(data->flag.autoequip) pc_equipitem(sd, i, data->equip);
return 0;
}
@@ -2673,9 +2676,6 @@ int pc_takeitem(struct map_session_data *sd,struct flooritem_data *fitem) pc_stop_attack(sd);
clif_takeitem(&sd->bl,&fitem->bl);
- if(itemdb_autoequip(fitem->item_data.nameid) != 0){
- pc_equipitem(sd, fitem->item_data.nameid, fitem->item_data.equip);
- }
map_clearflooritem(fitem->bl.id);
return 1;
}
|