Inventory
#7
Here I have a bit of code:
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.
Reply
Thanks given by:


Messages In This Thread
Inventory - by Seadragon91 - 07-19-2014, 01:45 AM
RE: Inventory - by xoft - 07-19-2014, 02:30 AM
RE: Inventory - by Seadragon91 - 07-19-2014, 02:38 AM
RE: Inventory - by Seadragon91 - 08-29-2014, 03:53 AM
RE: Inventory - by NiLSPACE - 08-29-2014, 03:55 AM
RE: Inventory - by Seadragon91 - 08-29-2014, 03:59 AM
RE: Inventory - by Bobstergaming - 11-17-2015, 06:14 AM
RE: Inventory - by worktycho - 11-19-2015, 08:51 PM



Users browsing this thread: 4 Guest(s)