Signup Now
Results 1 to 9 of 9
  1. #1
    Free User xwclx's Avatar
    Join Date
    Jul 2015
    Location
    Radiants
    Posts
    101
    Reputation
    9
    Rep Power
    0

    Serverlog persistent

    PHP Code:
    auto(200
    foreach 
    newmessage m do 
       if 
    m.channel == 'Server Log' and m.content:lower():find('...Druid... loses 100 hitpoints due to an attack by a worker golem.'then 
          cast
    ('exeta res'
          
    waitping(2,3
       
    end 
    end 

    I need to change the 100 per any number
    Last edited by xwclx; 03-01-2016 at 08:23 PM.

  2. #2
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,769
    Reputation
    151
    Rep Power
    31
    try this

    auto(200)
    local druidSio = 'Drudist'
    foreach newmessage m do
    if m.channel == 'Server Log' and m.content:lower():find(druidSio) and m.content:lower():find('loses') and m.content:lower():find('worker golem') then
    cast('exeta res')
    waitping(2,3)
    end
    end

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

  3. #3
    Free User xwclx's Avatar
    Join Date
    Jul 2015
    Location
    Radiants
    Posts
    101
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by ozzix View Post
    try this

    auto(200)
    local druidSio = 'Drudist'
    foreach newmessage m do
    if m.channel == 'Server Log' and m.content:lower():find(druidSio) and m.content:lower():find('loses') and m.content:lower():find('worker golem') then
    cast('exeta res')
    waitping(2,3)
    end
    end
    dont work ;/

  4. #4
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,769
    Reputation
    151
    Rep Power
    31
    whats the exact msg you want it to trigger on?

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

  5. #5
    Free User xwclx's Avatar
    Join Date
    Jul 2015
    Location
    Radiants
    Posts
    101
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by ozzix View Post
    whats the exact msg you want it to trigger on?
    im in navi.
    i need to do exeta res when monster change target.
    and EK and ED are so close.
    I need to use exeta res when monster change target or when it hit my ED

  6. #6
    Free User xwclx's Avatar
    Join Date
    Jul 2015
    Location
    Radiants
    Posts
    101
    Reputation
    9
    Rep Power
    0
    someone can help me?

  7. #7
    Free User ozzix's Avatar
    Join Date
    Jan 2014
    Location
    Sweden
    Posts
    4,769
    Reputation
    151
    Rep Power
    31
    Quote Originally Posted by xwclx View Post
    im in navi.
    i need to do exeta res when monster change target.
    and EK and ED are so close.
    I need to use exeta res when monster change target or when it hit my ED
    well you're trying to have it trigger on a server log msg, so what is the EXACT msg you want it to trigger on? (excluding the number since that will change with each attack)

    Level Latest Scripts
    250+
    Oramond Sewers [MAGE |RP X1 | RP X2 |RP X3|EK X2 | EK X1]
    200+
    Banuta X2 [MAGE | RP]
    280+
    Roshamuul Mountain [RP]
    280+
    Ferumbras Lair [RP]
    250+
    Roshamuul North Silencers [RP]

  8. #8
    Free User xwclx's Avatar
    Join Date
    Jul 2015
    Location
    Radiants
    Posts
    101
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by ozzix View Post
    well you're trying to have it trigger on a server log msg, so what is the EXACT msg you want it to trigger on? (excluding the number since that will change with each attack)
    '(NAME) loses (xxx) hitpoints due to an attack by a war golem.'

  9. #9
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    I didn't test it but it should just work.

    init start       
    local monstersConsider = {'Worker Golem'}

    table.lower(monstersConsider)
    init end

    auto(200)
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    local _, _, _, name = m.content:match('^(.+) loses (%d+) (%l+) due to an attack by ?a?n? (.-)%.$')

    if name and table.find(monstersConsider, name:lower()) and maroundspell('exeta res', 'any', unpack(monstersConsider)) then
    castspell('exeta res')
    end
    end
    end
    Last edited by mistgun; 03-06-2016 at 03:20 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
  •