Results 1 to 2 of 2

Thread: Action To stop targeting and target again.

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Action To stop targeting and target again.

    I'll explain better, I would like an action that if you have been trageting the same monster for like 30 seconds, the bot press "esc" or just stop targeting and target a new creature again.

    Thancks,

  2. #2
    Normal User
    Join Date
    Jul 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I have found this action, but I don't know how to put to change target, like press the botton esc or something.

    Code:
    local LAST_CREATURE_ID, STARTED_ATTACK = 0, 0

    while (true) do
    if (LAST_CREATURE_ID ~= target.id) then
    LAST_CREATURE_ID, STARTED_ATTACK = target.id, timems
    elseif (timems - STARTED_ATTACK >= 120000) then
    --HERE IS WHERE I CAN PUT TO PRESS "ESC"
    break
    end


    updateworld()
    wait(100)
    end
    Last edited by Mfaju; 07-11-2013 at 03:03 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
  •