XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 10

Thread: Bind script to hotkey or keyword?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Join Date
    Jun 2014
    Posts
    33
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Bind script to hotkey or keyword?

    Hey! I've got this script and I would like to preferably bind it to a hotkey but could settle for a keyword if its not possible.
    @DarkstaR @kamilqq

    What should I add to this script in order to bind it?
    For example if i use F1 this script will run once.


    local spells = {"Utori Bomb Vis", "Utori Bomb Flam", "Exevo Vort Lux", "Exori Pyro"}
    local runeid = 3154
    local dist = 7

    while (true) do
    local creature = Creature.GetByID(Self.TargetID())
    local i = 1
    while (creature:isValid() and creature:isAlive() and (creatureistanceFromSelf() <= dist) and creature:isTarget()) do
    Self.Cast(spells[i])
    Self.UseItemWithTarget(runeid)
    i = i + 1
    wait(2010)
    if (i > 4) then i = 1 end
    end
    end
    Last edited by tjucken; 02-12-2016 at 04:59 PM.

Posting Permissions

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