event onTakeItem (client-side)
This event can be canceled
Even if this event is triggered it doesn't mean, that hero will get item to his inventory. It only means, that the notification will be sent to the server. Server is the last to decide if this item will belong to hero or not. Canceling this event will prevent client from notifying server about this occurrence.
This event is triggered when hero takes an item from the ground to his inventory.
string instance, int amount
stringinstance: an instance name of the dropped item.
intamount: an amount of the dropped item.