Independant function calls?
#11
For SpawnItemPickups, add stuff to a cItems by either:

cItems:Add(cItem(ItemType, Count, Damage, EnchantmentString, CustomName, Lore)) or
cItems:Add(ItemType, ItemCount, ItemDamage)

for a created cItems object.

Try this link for sound effects.
Reply
Thanks given by:
#12
I would try that, but I always get errors in the console.
Here's the code I used to replicate it:

Code:
local items = cItems()
items:Add(E_ITEM_DIAMOND_SWORD, 1, 100)

Here's the exact console error I get:

Warn [20:15:45] Stack trace:
Warn [20:15:45] [C](-1): Add
Warn [20:15:45] Plugins/MCSmash/hooks.lua(136): (no name)
Warn [20:15:45] Stack trace end
Warn [20:15:45] Error in plugin MCSmash calling function <callback>()
Warn [20:15:45] LUA: Plugins/MCSmash/hooks.lua:136: error in function 'Add'.
argument #1 is 'class cItems'; 'cItems' expected.



Oh never mind, my bad, I just downloaded the latest binary and it fixed itself. I was using a version over a month old.
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)