Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Help with hotkey!

  1. #1
    Normal User Sahar's Avatar
    Join Date
    Sep 2012
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    7

    Help with hotkey!

    Hello people, I m looking for an hotkey that will do the following:

    If MSG on server log = "you deal x HP on a dragon" and if I am targeting a monster and if I can cast spell then cast Exori frigo.

    I tried but I don't understand how to do it.

    Thanks In advance !!!

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Something like this
    PHP Code:
    local SPELL "exori frigo"
    local CREATURES = {"monster1","monster2"}

    local MESSAGES getnewmessages("Server Log")
    local MESSAGES_QUANTITY MESSAGES.count 1
    if (target.id 0) and (target.dist <= 3) and (table.find(CREATURES,target.name)) then
        
    for INDEX 0MESSAGES_QUANTITY do
            if (
    MESSAGES[MESSAGES_QUANTITY INDEX].text:find("A dragon loses (.+) hitpoints due to your attack.")) then
                
    if cancast(SPELLthen
                    cast
    (SPELLwait(cooldown(SPELL))
                    break
                
    end
            end
        end
    end 
    Last edited by soder; 11-05-2012 at 02:55 PM.

  3. #3
    Normal User Sahar's Avatar
    Join Date
    Sep 2012
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    7
    It keep spamming the spell because it doesn't check if target > 0, but plz can u edit for me? It will work i think

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Updated. -short-

  5. #5
    Normal User Sahar's Avatar
    Join Date
    Sep 2012
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    7
    Nothing changed :O

  6. #6
    Normal User Sahar's Avatar
    Join Date
    Sep 2012
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    7
    Ok it works now thanks soder :P

    btw I know i annoy you but please can you also add a distance check + monsters check (I want it to shoot exori frigo only on few monsters, not on all my targeting list), and distance <= 2

    REP +

  7. #7
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    I updated my first post(if target.id > 0)

  8. #8
    Normal User Sahar's Avatar
    Join Date
    Sep 2012
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    7
    Quote Originally Posted by soder View Post
    I updated my first post(if target.id > 0)
    Yes I just saw and look at PM or here what I wrote above your post :P

  9. #9
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Added name check and target dist.

  10. #10
    Normal User Sahar's Avatar
    Join Date
    Sep 2012
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    7
    soder I don't know why but this hotkey isn't working I thought it worked cus I had exori ico on targeting... when I disable targeting it does nothing. Can you check it?

Posting Permissions

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