Blockland Forums > Modification Help

Add to the player's inventory?

Pages: << < (3/3)

Chrono:


--- Quote from: Destiny/Zack0Wack0 on February 22, 2012, 11:24:47 PM ---Or use nameToID and not have to do that? Logic.

--- End quote ---
Right, so instead of having an error come up to tell you the item doesn't exist, just do something to not have informative console lines.

Either one wont get you your result if the item doesn't exist.
The funniest part is the "not have to do that" part. Why would you want to call nameToID on something that doesn't exist on purpose?

Kaphonaits:


--- Quote from: Greek2me on February 22, 2012, 07:44:22 PM ---You did it like this? %client.forceEquip(3,nameToID(hammerItem));

--- End quote ---
I wasn't aware nameToID had to be used, or getID for that matter. It works now. Thanks.

Locked.

Pages: << < (3/3)

Go to full version