Delete Item on Player Death?
Is there a way to remove a certain item on player death? I want to check and see if players have a specific item and then delete it when they die.
Code:
sub EVENT_DEATH { Is there a way to use DeleteItemInInventory without knowing the exact slot the item will be in? I can use qglobals, but I like the idea of players having to have an item. Thanks as usual! |
Event_death_complete
|
Thanks ghanja! That was it mate.
Any way to use NukeItem (or something else) to just delete 1 quantity of a stack by chance? |
Try this:
Code:
sub EVENT_DEATH_COMPLETE { |
Thanks Kingly - Doesn't seem to work, but I appreciate you taking time to try. Gives me some ideas on how it might work.
|
Get rid of the last ) in the
Code:
if ($client->GetItemAt( |
Ah yeah, I was in a rush and accidentally put an extra ) at the end. I don't test stuff before I post it, it's usually just to give you something to use as an example. Hope I helped though.
|
Boom! Thanks again mates. Both of ya. I would've never gotten that. Really appreciated.
|
All times are GMT -4. The time now is 09:39 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.