Blockland Forums > Modification Help
Interchanging items in the Tools GUI
<< < (3/3)
Bauklotz:

--- Quote from: Bauklotz on February 05, 2011, 04:04:47 AM ---
--- Code: ---function player::setInventorySlot(%this, %i, %db) {
   %this.tool[%slot] = (%db = %db.getID());
   commandToClient(%this.client, 'msgItemPickup', "", %slot, %db, false);
}

--- End code ---

%obj.setInventorySlot(0, gKnifeBrokenItem);

--- End quote ---
Nexus:
the msgitempickup doesnt just play the sound, it tells the client what the new item is, and which slot it is in.
Navigation
Message Index
Previous page

Go to full version