Results 1 to 3 of 3

Thread: Request - Reveal Invisible

  1. #1
    Normal User
    Join Date
    Jul 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Request - Reveal Invisible

    Can somebody help me fix a hotkey? When the monsters appears the spell starts spamming, but it continuous after the monster is dead, so it's wastes a bunch of manas...

    local msgs = getmessages("Server Log")
    local qtd = msgs.count-1

    for i=0,qtd do
    if (msgs[qtd].text:find("due to an attack by a draken spellweaver.")) and (paround() == 0) and (maround(1,"Draken Spellweaver") == 0) then
    usehotkey("F10") -- hotkey use exori
    end
    end

    If it's possible please? (:

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    You should use getnewmessages() instead of getmessages().

    Lua Code:
    local msgs = getnewmessages("Server Log") 
    local qtd = msgs.count-1 
     
    for i=0,qtd do 
    if (msgs[qtd].text:find("due to an attack by a draken spellweaver.")) and (paround() == 0) and (maround(1,"Draken Spellweaver") == 0) then 
    usehotkey("F10") -- hotkey use exori
    end 
    end
    Last edited by Eldar; 12-11-2013 at 07:09 PM.

  3. #3
    iBot User
    Join Date
    Dec 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    4
    local serverlog_lines = getnewmessages("Server Log")
    local serverlog_q = serverlog_lines.count - 1

    for i = 0, serverlog_q do
    if (serverlog_lines[serverlog_q - i].text:find("You lose")) and (serverlog_lines[serverlog_q - i].text:find("due to an attack by a draken spellweaver.")) and maround(5,false,"draken spellweaver") == 0 then
    wait(200, 500)
    usehotkey("F10")
    end
    end

Posting Permissions

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