Log in

View Full Version : Levitate



dean015
01-23-2016, 09:34 PM
hello im trying to make a script for farmine and just need to know how to make a levitate label for travelling to dp

appreciate any help,

thanks

Oscagi
01-24-2016, 12:22 AM
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "HurUp") then
wait(200,500)
Self.Turn("west") -- Direction
wait(200,500)
Self.Say("exani hur up")
end
end


I hope its that what are u looking for.


/Oscagi.

dean015
01-24-2016, 06:20 PM
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "HurUp") then
wait(200,500)
Self.Turn("west") -- Direction
wait(200,500)
Self.Say("exani hur up")
end
end


I hope its that what are u looking for.


/Oscagi.


yeah looks right gona test it later when i get home, thanks m8

Jontor
01-24-2016, 06:25 PM
yeah looks right gona test it later when i get home, thanks m8

You can always use the XB's levitate waypoint ( Walker -> advanced waypoints )

Oscagi
01-24-2016, 06:58 PM
You can always use the XB's levitate waypoint ( Walker -> advanced waypoints )

Yes, but I use a checker of Z after use levitate and I do it in the same label.

Jontor
01-24-2016, 08:54 PM
Yes, but I use a checker of Z after use levitate and I do it in the same label.

Check Self.Levitate() in XB's core lua file, it does exactly the same

dean015
01-24-2016, 11:36 PM
You can always use the XB's levitate waypoint ( Walker -> advanced waypoints )

thanks, didnt know about this advanced waypoints, i never used checkers for going down up ect. aand iv never had a problem with getting stuck, what exactly can cause my char to get stuck? i imagen just someone who opens skull and is standing on the levitate spot ?


cheers

DarkstaR
01-25-2016, 01:00 AM
thanks, didnt know about this advanced waypoints, i never used checkers for going down up ect. aand iv never had a problem with getting stuck, what exactly can cause my char to get stuck? i imagen just someone who opens skull and is standing on the levitate spot ?


cheers

Getting pushed right after you turn, not having mana, being exhausted from using haste or a healing spell, etc.

Oscagi
01-25-2016, 07:44 AM
For dont get bug do this:


BeforeUp
Stand
HurUp

registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "HurUp") then
wait(200,500)
Self.Turn("west")
wait(200,500)
Self.Say("exani hur down")
if Self.Position().z == X then
return
else
gotoLabel("BeforeUp")
end
end
end


Now only will bug if u dont have mana.

/Oscagi.

DarkstaR
01-25-2016, 10:07 PM
For dont get bug do this:

Now only will bug if u dont have mana.

/Oscagi.

Or he could just use the built in waypoint and not have an issue.

shadowart
01-25-2016, 10:16 PM
To deal with getting pushed you still need a position checker that returns to the before label when you fail.

DarkstaR
01-25-2016, 10:38 PM
To deal with getting pushed you still need a position checker that returns to the before label when you fail.

Seems like something that should be implemented natively, and, thus, the person asking should still use the built in one which can be updated with any such fixes.

Also, Self.WalkTo would allow this behavior _without_ a position checker.

dean015
01-26-2016, 12:01 AM
thanks for all the replys iv been using the built in levitate, works fine