delitem all amount of 1 type?

Helena

New member
Messages
238
Points
0
Emulator
rAthena
Hi Hercules!

Question, i have made a event but would like for players not to be let in with certain items.

How do i delete all the said items? for example, a player is carrying 50 blue potions but i want to delete those as well as anything under that amount (i.e they've used 2, it should still delete the remaining 48). delitem only works per specific amount, Ive input 50 but it gives a map-server error if i have less than that in my inventory.

How will i achieve this?

Thanks!
default_smile.png


 
delitem(Blue_Potion, countitem(Blue_Potion));

 
Back
Top