XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 10

Thread: How do I set 'exani hur "down" and exani hur "up" in [Walker]

  1. #1
    Valadia's Avatar
    Join Date
    Jan 2013
    Location
    The Netherlands
    Posts
    59
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    How do I set 'exani hur "down" and exani hur "up" in [Walker]

    I am botting in a custom hunt spot on [Gunzodus.net].
    But to make it working good, I need to set exani hur up/down.
    Now my question is: How do I set these? .
    I tried to figure it out, but I'm just no computer genius.
    If anybody could help me, it would be great.

    Thanks,

    Valadia

  2. #2
    Senior Member
    Join Date
    Sep 2012
    Posts
    1,070
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Code:
    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
    function onWalkerSelectLabel(labelName)
    if (labelName == "Levitate up") and (Self.Position().x == ???) and (Self.Position().y == ???) and (Self.Position().z == 7) then --change to pos where character will stand to say the spell
    	delayWalker(1000)
    	setWalkerEnabled(false)
    	Self.Say(exani hur up)
    	wait(500)
     if  (Self.Position().z == 6) then -- change to Z where you arrive after levitate, so it checks that u are up
    	setWalkerEnabled(true)
    	end
    elseif (labelName == "Levitate down") and (Self.Position().x == ???) and (Self.Position().y == ???) and (Self.Position().z == 7) then --change to pos where character will stand to say the spell
    	delayWalker(1000)
    	setWalkerEnabled(false)
    	Self.Say(exani hur down)
    	wait(500)
     if  (Self.Position().z == 7) then -- change to Z where you arrive after levitate, so it checks that u are down
    	setWalkerEnabled(true)
    	end
    end
    end
    Add a node where to stand to levitate, right after it make label eg. "Levitate up" or "Levitate up1" etc.
    Then just edit this script.
    You can add more elseif if you want, with many more labels/levitations.
    Hope you know how this works, otherwise just try and ask

    Also you might use stand instead of node, with stand (north, south, west, east) you can decide where the character is facing.
    Last edited by dinmamma; 04-25-2013 at 11:32 PM.

  3. #3
    Senior Member kopper's Avatar
    Join Date
    Sep 2011
    Location
    NE, USA
    Posts
    412
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    lua code:
    Self.Cast("Exani Hur Up")


    and

    lua code:
    Self.Cast("Exani Hur Down")


    Add those as one liners

  4. #4
    Senior Member
    Join Date
    Sep 2012
    Posts
    1,070
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kopper View Post
    lua code:
    Self.Cast("Exani Hur Up")


    and

    lua code:
    Self.Cast("Exani Hur Down")


    Add those as one liners
    This is an easy solution, but if someone would push you, you are screwed spamming these spells xD

  5. #5
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Here's a more complete set of instructions.

    1. Right click yourself.
    2. Select 'Walker'.
    3. On the right (where containers are displayed), a Walker panel will be opened.
    4. Right click in the Walker panel.
    5. Click Script (a popup will appear).
    6. In the popup, write your Lua script.



    For the Lua script you can write:
    lua code:

    Self.Say('exani hur up')

    lua code:

    Self.Say('exani hur down')





    @Above
    Quote Originally Posted by dinmamma View Post
    This is an easy solution, but if someone would push you, you are screwed spamming these spells xD
    This is very unlikely. But to ensure it works you could use a position check like so:
    lua code:

    if (Self.DistanceFromPosition(12345, 12345, 7) == 0) then Self.Say('exani hur up') else alert() end

  6. #6
    Senior Member
    Join Date
    Sep 2012
    Posts
    1,070
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Spectrus View Post
    Here's a more complete set of instructions.

    1. Right click yourself.
    2. Select 'Walker'.
    3. On the right (where containers are displayed), a Walker panel will be opened.
    4. Right click in the Walker panel.
    5. Click Script (a popup will appear).
    6. In the popup, write your Lua script.



    For the Lua script you can write:
    lua code:

    Self.Say('exani hur up')

    lua code:

    Self.Say('exani hur down')





    @Above


    This is very unlikely. But to ensure it works you could use a position check like so:
    lua code:

    if (Self.DistanceFromPosition(12345, 12345, 7) == 0) then Self.Say('exani hur up') else alert() end
    That would be the smarter idea

  7. #7
    Valadia's Avatar
    Join Date
    Jan 2013
    Location
    The Netherlands
    Posts
    59
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Everybody, THANKS FOR THE HELP!

  8. #8
    Lilithwins's Avatar
    Join Date
    Apr 2012
    Location
    bihac
    Posts
    240
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    guys when i write Self.say("exani hur up"), in script(walker), it give me red letters error, how can i make this script works once for all....
    Making full afk script, for free Pm me

  9. #9
    Super Moderator Infernal Bolt's Avatar
    Join Date
    Dec 2011
    Location
    Skellefteċ, Sweden
    Posts
    2,880
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Lilithwins View Post
    guys when i write Self.say("exani hur up"), in script(walker), it give me red letters error, how can i make this script works once for all....
    you need to write Say, not say

  10. #10
    Lilithwins's Avatar
    Join Date
    Apr 2012
    Location
    bihac
    Posts
    240
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    thanks
    Making full afk script, for free Pm me

Posting Permissions

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