View Full Version : Possible to do Shoot SD if more than x monsters?
DarkRoses
07-07-2013, 08:47 PM
Is it possible to put it in the lua scripts, lets say:
you put a
local ShootSDonXamount = true/false
and you can put that somewhere in the script to make it shoot SDs if there is more than X amount of monsters on screen.
Is this possible without a library?
nato12
07-07-2013, 09:16 PM
u can do something like that, but i guess that every atk setting should be done by the lua file.
maybe u can create more targetings or something like that for make it work good. lets say, u bot at workers golems, u can create when 1 and 2 kill with spells only, and if 3 then shoot sd's.
DarkRoses
07-07-2013, 09:17 PM
I was thinking like this, when there's 1-2 use Max/Gran strike and when there's 3 use SDs;p
nato12
07-08-2013, 05:35 PM
well i use the next lua for hunt with spells:
--[[Mages Multiple Strike Spells]]--
local targets = {"Water Elemental", "Medusa", "Serpent Spawn", "Giant Spider", "Crystal Spider", "Ice Golem"}
-- Just change below to suit your needs.
local spells = {}
spells[1] = { spell = "exori max vis" } --Max spell
spells[2] = { spell = "exori gran" } --Gran spell
spells[3] = { spell = "exori vis" } --Nooby spell (This will be the only spell cast after Target <= 35% HP)
Module.New("Multiple Strike Spells", function(module)
for _, data in ipairs(spells) do
local c = Creature.GetByID(Self.TargetID())
if table.contains(targets, c:Name()) then
if c:DistanceFromSelf() <= 3 then
if Self.TargetID() ~= 0 then
if c:HealthPercent() >= 35 then
for x=1, #spells do
if Self.CanCastSpell(data.spell) then
Self.Say(data.spell)
wait(500, 1500)
end
end
elseif c:HealthPercent() <= 35 then
if Self.CanCastSpell(data.spell[3]) then
Self.Say(data.spell[3])
wait(500, 1500)
end
end
end
end
end
end
module:Delay(1000)
end)
just create the target with "none" spells if u want to follow or keep distance is your choice.
i rlly recommend the create 2 targetings for each creature, lets say : 100 to 35% none spells, and 35-0 use exori vis or so .
shinchan
07-08-2013, 08:45 PM
you can adjust that in targetting, very easily. Add new creature, write down creature name, change where it says "none" to rune, select the rune id, change the count to x (x being the amount of creatures on screen to start shooting sds).
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.