Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Teleporting even though its not equal. Confused
#1
I have a button that is supposed to teleport you to a map id then walk you to some cords if the map id does not equal the certain id listed. What it actually does is teleport you even if the map id is correct and does not walk you anywhere. I'm not exactly sure whats going wrong with the code but heres the bit of clicking the button.

Code:
function damp.walk()
    if localmapid ~= 129 then Player:Teleport(8) else Player:MoveTo(-247.19,16.20,39.89, followmovement, randomizePaths) end
end

EDIT: I've tried a lot of different ways to do this, I know i have to get the map id and see if its true or false in the code but i dont know what to use to do that. localmapid just returns the number and im not sure how to use that number to make it true or false
Reply
 


Forum Jump:


Users browsing this thread: 2 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products