EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   PEQ: Expendable item not deleting? (https://www.eqemulator.org/forums/showthread.php?t=43223)

Bytebait 03-02-2021 06:48 PM

PEQ: Expendable item not deleting?
 
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.
Code:

$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

Quote:

Originally Posted by Nukerella (Post 266280)
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

Quote:

Originally Posted by Nukerella (Post 266283)
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).

Code:

$client->removeitem($itemid,1);


All times are GMT -4. The time now is 06:11 PM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.