Results 1 to 7 of 7

Thread: Exura gran mas res action

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5

    Exura gran mas res action

    Is this possible to make an action that will cause exura gran mas res if any of the mentioned players (maybe including me too) have lower hp than 60%?

    Had answer on this thread but this didn't work
    http://www.tibiaibot.com/forum/showt...mas-res-action

    but i posted on wrong section

    Can anyone help me? :s

  2. #2
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5
    bump

  3. #3
    Normal User SySiO's Avatar
    Join Date
    Dec 2012
    Posts
    355
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    25
    Rep Power
    5
    Ok, just read it's not working xD
    Last edited by SySiO; 06-18-2013 at 07:14 AM.

  4. #4
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5
    bump

  5. #5
    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
    Code:
    local players = {"Bubble", "Eternal Oblivion"}
    local monsters = {"rat","rotworm"}
    
    if (paround(3, false, unpack(players)) >= 1 and unpack(players).hppc <= 60) or (maround(3, false, unpack(monsters)) >= 1 and monsters).hppc <= 60) then
        cast("exura gran mas res")
    end

  6. #6
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Code:
    --[[ INIT START ]]--
    	local CONFIG = {
    		CREATURES = {"Bubble", "Seromontis"},
    		SPELL = "exura gran mas res",
    		HPPC_TO_CAST = 60,
    	}
    --[[ INIT END ]]--
    
    for CREATURE in Creature.GetAll("ps") do
    	if hppc < CONFIG.HPPC_TO_CAST or (table.find(CONFIG.CREATURES, CREATURE:Name()) and CREATURE:HealthPercent() < CONFIG.HPPC_TO_CAST) then
    		if cancast(CONFIG.SPELL) then
    			cast(CONFIG.SPELL)
    			wait(100, 200)
    		end
    	end
    end

  7. #7
    Normal User
    Join Date
    Aug 2012
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    29
    Rep Power
    5
    @Eldar you action didn't work... anyway mas res for monster doesn't work anymore ;p, but thanks anyway

    @Raph thank you so much

    Thought I can give you a rep but
    You must spread some Reputation around before giving it to Raph_ again.

    Appreciated a lot
    Last edited by kralik88; 06-20-2013 at 02:30 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
  •