View Full Version : PEQ: Expendable item not deleting?
Bytebait
03-02-2021, 06:48 PM
So I made a type 21:Potion, it uses a Script File ID:, Under spells I set it as an Expendable and kept the Click Effect to -1.
After restarting the server (just in case) and #giveitem to my player, the Script file runs fine but the item doesn't disappear.
I'm not sure if this is something I'm missing on the PeQ side or something I need to add on the Script File side?
Bytebait
03-03-2021, 10:59 AM
It looks like this will work, but will also delete the whole stack and just a single one.
$client->NukeItem($itemid);Looks like it will delete a full stack and not one from the stack.
Nukerella
03-03-2021, 11:34 AM
Give it 1 charge and set it to potion.
Bytebait
03-03-2021, 11:41 AM
Give it 1 charge and set it to potion.
https://i.imgur.com/6GKlyC3.jpg
I do have it that way. Hmmm.
Nukerella
03-03-2021, 11:50 AM
Looks like Sturm put a dummy spell on the items he does.
Try this spell on it 11560 - Open Gift
Bytebait
03-03-2021, 01:30 PM
Looks like Sturm put a dummy spell on the items he does.
Try this spell on it 11560 - Open Gift
I'll give that a go, thanks!
Side note for others (or more honestly for my future self).
$client->removeitem($itemid,1);
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.