Another script that related on cartcountitem() of course is cartdelitem. Just like conventional delitem() that will deletes amount of certain item in player’s inventory, cartcountitem will deletes certain item in cart inventory. Of course, we must decide how many item will be deleted in cart inventory.
This custom script provides 2 parameters to deletes item in cart. First parameters for cartdelitem is item id. The unique number that exists on db/item_db.txt or db/item_db2.txt. The second that needed is the amount of item that will be deleted.
For an example, I want to delete 10 Red Potions in my merchant’s cart. I must know what’s item id for Red Potion, it is 501. Then write a script for cartdelitem.
It is just part of script body, need full a custom script of NPC to make it perfect!
Well, these some screenshots of cartdelitem that I made. Interested with this custom script which can deletes item in cart inventory? Enjoy, download it, this is free code!
Download cartdelitem script – Delete certain item in cart inventory – Free code!
*Above are Mediafire links*