Signup Now
Results 1 to 2 of 2
  1. #1
    Free User sines's Avatar
    Join Date
    Nov 2014
    Posts
    32
    Reputation
    10
    Rep Power
    0

    Send position NAVI

    Hello!
    Is it possible to send my position to my other charachter with navi and then make a reachlocation()?

    init start
    function navmessages(msg)
    print(msg)
    end
    init end
    auto(4000)
    navsay('position:' .. $posx .. ' ' .. $posy .. ' ' .. $posz)
    How to reach that location? Thanks!

  2. #2
    Free User Donatello's Avatar
    Join Date
    Dec 2013
    Location
    Tuscany, Italy
    Posts
    398
    Reputation
    51
    Rep Power
    21
    Here's an example:
    local charName = "Bubble"

    foreach navchar c do
    if string.lower(c.realname) == string.lower(charName) then
    reachlocation(c.posx, c.posy, c.posz) waitping()
    end
    end


    i.e.: You don't need to send your position, you can grab any character's position connected to your navi's room, learn more about it here: https://tibiawindbot.com/docs.html#iterators-navchar

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •