• 0
Sign in to follow this  
Montella

Detect dropped item from monster

Question

Hello guys,

is there any way how to detect drooped items from monster? For example i can use fucntion

OnNPCKillEvent:

to detect that player killed some monster, but i cannot acces to items data what he dropped. Any advice?

 

Thank you!

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 1
  • Upvote 1
  • Like 1

Share this post


Link to post
Share on other sites
  • 0

none, currently you cant retrieve the info of item dropped when you killed a monster using the OnNPCKillEvent...

 

you could edit the source to have it store the item info when the monster drop, then retrieve it when it execute the OnNPCKillEvent.

Share this post


Link to post
Share on other sites
  • 0

Do you mean edit source and store every killed mob to database + items or store it to some global variable? I was looking for those informations in logs, found something at picklog but it store only items picked from ground (or autolooted to your inv). Is any way how to add to log or I really need to edit source.

Thanks for any advice 🙂

Share this post


Link to post
Share on other sites
  • 0
On 11/10/2018 at 8:15 PM, Montella said:

found something at picklog but it store only items picked from ground (or autolooted to your inv). Is any way how to add to log or I really need to edit source.

if i recall correctly, monster drop are recorded in picklog as well with the monster ID and item ID with the action of drop (D).

 

 

@n0tttt

nice try, didnt realize there exists a script command for getareadropitem. but the script wont work for autoloot.

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this