11-17-2015, 06:14 AM
Here I have a bit of code:
The idea is that when the player does /sellall, then it removes stone and returns the removed amount of stone as removedamount.
There aren`t any examples on cInventory, although by looking at the API of cItem I figured this out.
function HandleSellall(Player) removedamout = cInventory(RemoveItem(cItem(E_BLOCK_STONE))) end true
The idea is that when the player does /sellall, then it removes stone and returns the removed amount of stone as removedamount.
There aren`t any examples on cInventory, although by looking at the API of cItem I figured this out.