![]() |
|
|
#26 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
i don't want to DELETE the item...
let the monster drop the picked up items on dying do u found a way to enumerate the inventory? btw - why do u set the AddGetItemDesire via timer? set it on create with 15 (have to be more than the waypoint desire) and the monster will pick up the item and continue with moving to next waypoint (hmm, u like to double or triple post?) |
|
|
|
|
#27 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
enumerate the inventory?
No, there is no function in the AI that I have seen from my investigations which will get items in inventory into an array which you could loop through. That is pretty much the only way it would be achievable I am thinking. Can you elaborate on your statement "set it on create with 15" (And yes, Im to lazy to hit the edit button on my first post :P) |
|
|
|
|
#28 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
Quote:
|
|
|
|
|
|
#29 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
The SEE_ITEM handler is only envoked when a mob sees the actual items drop within its sight. The see_item handler should have actually been called "SEE_ITEM_DROP" because its the dropping action that gets the handler to envoke. The handler is not envoked if an item is sitting on the ground and the NPC passes by.
All items that the mobs pickup are dropped when they are killed. If you have cached set to auto delete unowned items on start, then those collected items will be deleted on the next cached restart. |
|
|
|
|
#30 |
|
Архивный участник
Join Date: Apr 2006
Posts: 70
|
Nice aspect of this, it's a when mob was killed, he drops all what he's pickup! :P
|
|
|
|
|
#31 |
|
Архивный участник
Join Date: Apr 2006
Posts: 42
|
i dont have any use for this at the moment but thanks for the share =)
|
|
|
|
|