So I've been trying to use one of the scripts from repository but I fail every time and I really don't know what am I doing wrong.
Generally I'm looking for a teleporter activated with an item being in inventory (like the one with Fighter's Challenge and Sword of Nex).
I've found several suitable scripts in repository (viewtopic.php?p=31831#p31831), but for example when I'm using first one I get error: 'then' expected near '=' X after the line: if item.name = "blueberry_pie" then. With the script from next post I got: attempt to call method 'getItem' (a nil value) X after line: local itemObj = champion:getItem(i).
The second question is about stacks of items in container in alcove.
For example if I got:
Code: Select all
local merethifsack = spawn("sack")
merethifsack:addItem(spawn("sling"))
merethifsack:addItem(spawn("rock"))
merethifsack:addItem(spawn("rock"))
merethifsack:addItem(spawn("rock"))
merethifsackAlcove:addItem(merethifsack)