XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: [Need help] Escape spawn when attacked

  1. #1

    Join Date
    Oct 2020
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Need help] Escape spawn when attacked

    So I found one lua script that work only in half I mean text appear with person who attack me and targeting stop but the problem is walker is still going through all the waypoints instead of staying in designated point(in my case its label named "Go")

    Here's the script:

    BattleMessageProxy.OnReceive('Leave_If_Player_Atta ck', function(proxy, message)
    damage, creature = string.match(message, 'You lose (%d+) %a+ due to an attack by (.+).')
    if Creature.New(creature):isPlayer() then
    print("[BOT] Player attacked you, leaving to safe spot.")
    Targeting.Stop()
    Looter.Stop()
    Walker.Goto('Go') <---- I tried with (Go) ("Go") and none of them work
    wait(2000, 3000)
    end
    end)

    All I want to go to label named "Go" and stay in there doing nothing please someone help

  2. #2

    Join Date
    Jun 2014
    Posts
    51
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    instead of
    Code:
    Walker.Goto('Go')
    paste
    Code:
    setWalkerEnabled(false)
    gotoLabel("Go")
    setWalkerEnabled(true)

Posting Permissions

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