why are you using syntaxlualib? syntax is the one who handles the native xenobotlibrary so you don't need it.
lua code:
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Check") then
if Self.ItemCount(3155) <= 1500 then
gotoLabel("GoRunes")
else
gotoLabel("Start")
end
elseif (labelName == "BuyRunes") then
Walker.Stop()
Self.SayToNpc({"hi", "trade"}, 100)
Self.ShopBuyItemsUpTo('sudden death rune', 1100)
Walker.Start()
elseif (labelName == "door") then
setWalkerEnabled(false)
Self.OpenDoor(x, y, z) -- change x, y, z to the coordinates of the door
wait(500, 1000)
setWalkerEnabled(true)
end
end