Signup Now
Results 1 to 5 of 5
  1. #1
    Free User
    Join Date
    Mar 2014
    Location
    Brazil
    Posts
    2
    Reputation
    10
    Rep Power
    0

    Exclamation Any peaple here help me with action "EXETA RES"

    i have a problem with this action



    init start
    local msgs = getmessages_ib("Server Log")
    local qtd = msgs.count-1
    init end
    auto(800, 1000)

    if msgs[qtd].text:find("mana due to an attack by a hellspawn.") then
    cast("exeta res")
    wait(1000)
    end


    in consile i get this problem...
    " ["if msgs[qtd].text:find("mana due to an at..."]:exeta res:7 attempt to index a nil value"


    pelase anyone help me
    sorry for my bad english.

  2. #2
    Free User Dragon Lord's Avatar
    Join Date
    Jun 2014
    Posts
    123
    Reputation
    10
    Rep Power
    20
    Didn't test, but should work, reply with feedback.

    Will cast exeta res (if possible), if any player loses mana due to an attack by hellspawn.


    auto(100,200)
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    if m.content:match("mana due to an attack by a hellspawn") then
    if spellinfo('exeta res').cancast then
    cast('exeta res')
    waitping()
    end
    end
    end
    end

  3. #3
    Free User kiqzeraw's Avatar
    Join Date
    May 2014
    Posts
    166
    Reputation
    20
    Rep Power
    21
    Quote Originally Posted by Dragon Lord View Post
    Didn't test, but should work, reply with feedback.

    Will cast exeta res (if possible), if any player loses mana due to an attack by hellspawn.


    auto(100,200)
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    if m.content:match("mana due to an attack by a hellspawn") then
    if spellinfo('exeta res').cancast then
    cast('exeta res')
    waitping()
    end
    end
    end
    end
    This only will work when the monster is close to EK, right? Or the char gonna chase the monster?

  4. #4
    Free User Dragon Lord's Avatar
    Join Date
    Jun 2014
    Posts
    123
    Reputation
    10
    Rep Power
    20
    Quote Originally Posted by kiqzeraw View Post
    This only will work when the monster is close to EK, right? Or the char gonna chase the monster?
    It will cast exeta rest (if possible, based on current mp, vocation, soul, etc) if any player takes damage from a hellspawn, incluiding if the monster is not close to ek, and it also won't chase the creature.

    A real good exeta res persistent as you saying is more complicated but possible to be done, of course, I just fixed the action he asked for.
    Last edited by Dragon Lord; 08-07-2014 at 08:59 PM.

  5. #5
    Free User
    Join Date
    Mar 2014
    Location
    Brazil
    Posts
    2
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by kiqzeraw View Post
    This only will work when the monster is close to EK, right? Or the char gonna chase the monster?
    I need him to go to the monster and use exeta res

 

 

Tags for this Thread

Posting Permissions

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