esigolo
07-22-2019, 12:39 AM
Hi guys, Iam new to make script, i play just OTserver, i trying to make a Label with waypoint checker, because i need pass by a door, and some times i got stuck.
Iam making basic script, like this..
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "CheckDoor4") then
Walker.ConditionalGoto((Self.Position().x == 33205 and Self.Position().y == 32461 and Self.Position().z == 8) or
(Self.Position().x == 33205 and Self.Position().y == 32462 and Self.Position().z == 8) or
(Self.Position().x == 33205 and Self.Position().y == 32463 and Self.Position().z == 8) or
(Self.Position().x == 33206 and Self.Position().y == 32461 and Self.Position().z == 8) or
(Self.Position().x == 33206 and Self.Position().y == 32462 and Self.Position().z == 8)or
(Self.Position().x == 33206 and Self.Position().y == 32463 and Self.Position().z == 8) or
(Self.Position().x == 33207 and Self.Position().y == 32461 and Self.Position().z == 8) or
(Self.Position().x == 33207 and Self.Position().y == 32462 and Self.Position().z == 8)or
(Self.Position().x == 33207 and Self.Position().y == 32463 and Self.Position().z == 8), "GoDoor4", "BeforeDoor4")
end
end
have a way more easly to do it?
Thanks[
Iam making basic script, like this..
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "CheckDoor4") then
Walker.ConditionalGoto((Self.Position().x == 33205 and Self.Position().y == 32461 and Self.Position().z == 8) or
(Self.Position().x == 33205 and Self.Position().y == 32462 and Self.Position().z == 8) or
(Self.Position().x == 33205 and Self.Position().y == 32463 and Self.Position().z == 8) or
(Self.Position().x == 33206 and Self.Position().y == 32461 and Self.Position().z == 8) or
(Self.Position().x == 33206 and Self.Position().y == 32462 and Self.Position().z == 8)or
(Self.Position().x == 33206 and Self.Position().y == 32463 and Self.Position().z == 8) or
(Self.Position().x == 33207 and Self.Position().y == 32461 and Self.Position().z == 8) or
(Self.Position().x == 33207 and Self.Position().y == 32462 and Self.Position().z == 8)or
(Self.Position().x == 33207 and Self.Position().y == 32463 and Self.Position().z == 8), "GoDoor4", "BeforeDoor4")
end
end
have a way more easly to do it?
Thanks[