Signup Now
Page 17 of 18 FirstFirst ... 715161718 LastLast
Results 161 to 170 of 180

Thread: Spells Attacker

  1. #161
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    @Leonardo can you add exori gran ico if is only 1 monster with 50+% hp or player on screen?
    and change some with utito bc so much time he use exori gran or exori then he use utito ;/

  2. #162
    Free User
    Join Date
    May 2015
    Posts
    25
    Reputation
    13
    Rep Power
    0
    Code:
    init start
     
    	local Monsters = {"Earth Elemental", "Bog Raider", "Snake", "Wolf", "Bear"}
     
    	local Players = {
    		Consider = true,
    		Distance = 8,
    		FloorDifference = 1,
    		SafeList = {"Bubble", "Eternal Oblivion"},
    	}
     
    	local Spells = {
    		{Name = "exori flam", Hppc = 80},
    
    	}
     
    	local SpecialAreas = {
    --		{min x, max x, min y, max y, z}
    	}
     
    	local UseTargetState = true
    	
    	-- DO NOT CHANGE ANYTHING BELOW THIS LINE
     
    	local i, LastFloor, Exhaust = 1, $posz, $timems
     
    	while Spells[i] ~= nil do
    		Spells[i].Info = spellinfo(Spells[i].Name)
     
    		if Spells[i].Info.words == 0 then
    			table.remove(Spells, i)
    		else
    			Spells[i].Monsters = Spells[i].Monsters or Monsters
    			Spells[i].NeedDirection = table.find({"WaveSmall", "WaveMedium", "WaveVerySmall", "WaveBig", "BeamSmall", "BeamBig", "Front", "Strike"}, Spells[i].Info.castarea) ~= nil
    			Spells[i].AttackSupport = Spells[i].Info.group:match("Support") ~= nil
     
    			table.lower(Spells[i].Monsters)
    			i = i + 1
    		end
    	end
     
    init end
     
    auto(200, 400)
     
    if $posz ~= LastFloor then
    	LastFloor, Exhaust = $posz, $timems + 2000
    	return
    end
     
    if $timems >= Exhaust and ($targeting or not UseTargetState) then
    	for _, Spell in ipairs(Spells) do
    		if cancast(Spell.Info) and not isinsidearea(SpecialAreas) then
    			if Spell.Amount and (not Players.Consider or paroundfloorignore(Players.Distance, Players.FloorDifference, unpack(Players.SafeList)) == 0) then
    				local BestAmount, BestDir = 0, $self.dir
     
    				if Spell.NeedDirection then
    					for Dir, Amount in pairs({n = 0, e = 0, s = 0, w = 0}) do
    						Amount = maroundspell(Spell.Name, Dir, unpack(Spell.Monsters))
    						
    						if Amount > BestAmount or (Amount >= BestAmount and Dir == $self.dir) then
    							BestAmount, BestDir = Amount, Dir
    						end
    					end
    				else
    					BestAmount = not Spell.AttackSupport and maroundspell(Spell.Name, BestDir, unpack(Spell.Monsters)) or maround(1, false, unpack(Spell.Monsters))
    				end
    				
    				if BestAmount >= math.max(Spell.Amount, 1) then
    					while $self.dir ~= BestDir do
    						turn(BestDir) waitping()
    					end
    					cast(Spell.Name) waitping()
    				end
    			elseif Spell.Hppc and $attacked.hppc >= math.max(Spell.Hppc, 1) and table.find(Spell.Monsters, $attacked.name:lower()) and cancast(Spell.Info, $attacked) then
    				cast(Spell.Name) waitping()
    			end
    		end
    	end
    end
    Still not working.Someone is standing actually besides me and my character is still bursting Exori Flam when the Earth Elemental has like 5% HP.
    Last edited by qisse; 05-19-2015 at 12:34 PM.

  3. #163
    Free User neto's Avatar
    Join Date
    Mar 2014
    Posts
    24
    Reputation
    10
    Rep Power
    0
    left: exori mas

  4. #164
    Free User
    Join Date
    Dec 2013
    Posts
    106
    Reputation
    19
    Rep Power
    21
    my character using utito tempo even if only 1 monster that i put in hotkey is on me but 4 other monsters that should not be considered

  5. #165
    Free User
    Join Date
    Jul 2015
    Posts
    18
    Reputation
    10
    Rep Power
    0
    how to consider special area?
    i put that
    local SpecialAreas = {
    { 32178, 32180, 32914, 32196, 10}
    }
    but doesnt work
    Last edited by kroutaa; 08-17-2015 at 10:02 AM.

  6. #166
    Free User
    Join Date
    Sep 2015
    Posts
    17
    Reputation
    11
    Rep Power
    0
    Can I do it against players?

  7. #167
    Free User
    Join Date
    Jan 2016
    Posts
    1
    Reputation
    10
    Rep Power
    0
    @Leonardo, what is the spell priority? I'm guessing first to last since iterator is i+1?

  8. #168
    Free User xwclx's Avatar
    Join Date
    Jul 2015
    Location
    Radiants
    Posts
    101
    Reputation
    9
    Rep Power
    0
    spamrate 0.1ms...

    just show "you are exausted"

  9. #169
    Free User
    Join Date
    May 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    hi i would like to know, is how to edit a script for when player around it just use exori hur and exori ico ?? Thank you in advance.

  10. #170
    Free User
    Join Date
    Dec 2015
    Posts
    3
    Reputation
    9
    Rep Power
    0
    00:56:42 error in HUD script NewHUDScript:
    Cannot wait or wait for issued events in display scripts.
    stack traceback:
    ["cast(Spell.Name) waitping()"]:NewHUDScript:77 in user script

 

 

Posting Permissions

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