PDA

View Full Version : ERROR: " GoTo(a nil value) "



Whiplash
01-06-2016, 11:18 AM
Hi im trying to make a script for banuta that has an option to hunt the second floor but having issues with it... Hope someone can help me as i can't see the problem...

Here is the xeno error message:


19:10 XenoScript Error:
Script: Banuta.lua
Line #: 90
Chunk: ...sers?ANONYM?1?DOCUME?1?XenoBot?Scripts??_GUNZO? 4.LUA
Error: attempt to call field 'GoTo' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.




local GoSecondFloor = true

elseif (labelName == "CheckFloor2") then
print("check to hunt floor 2")

if (GoSecondFloor = true) then
Walker.GoTo("f2")
else
Walker.GoTo("f1")
end




<item text="Node (32780, 32610, 11)" tag="0"/>
<item text="CheckFloor2:" tag="255"/>
<item text="f2:" tag="255"/>
<item text="Node (32811, 32626, 11)" tag="0"/>
~~
~~
<item text="Node (32807, 32621, 11)" tag="0"/>
<item text="f1:" tag="255"/>
<item text="Node (32774, 32598, 11)" tag="0"/>