Ok, I've added a bot inventory.
Each bot has 21 slots in their inventory just like a Client.
Once an item is added to their inventory, their stats are updated immediatly. (The client will have to zone in order to see the stats changes on his bot with #showstats but it's just a visual issue.)
Now, let's take an example:
- You loot on a mob a helm. The stats on the helm are +10ac +5str ...
- You give the item to the bot and the stats will be actual_ac=actual_ac+10, actual_str=str+5, etc...
For the moment, there is no check on the slot that can wear the item but I'm planning to add it.
|