jollebollen
02-16-2016, 11:20 PM
Hello everybody!
If you help me with this I will happily pay you 5 EUR!
I'd like some help for my safe exori vis script, first of all I want it to check floors +1/-1 if it's possible. If someone is above me or below me it won't shoot (to avoid getting skulled/rs). Also to be able to hunt with shared exp in party, basically ignore party members from the safety formula.. Right now, if someone is close to me the script won't shoot the exori vis, and I would like it to shoot exori vis still if someone who is in my party is close to me.
So here is the script, if someone knows how to edit it I would be very happy indeed.
Thank you in advance!
local Spells = {
{words = 'exori vis', hppc = 0, range = 3, mana = 20, list = {'demon skeleton'}
}
local PvPRadiusSafety = 3
function SafeRadius(radius)
for n, c in Creature.iPlayers() do
if c:DistanceFromSelf() < radius then
return true
end
end
end
BattleMessageProxy.OnReceive('shooter', function(proxy, message)
local givendmg = string.match(message, "(.+) due to your attack.")
if (givendmg) then
local id = Self.TargetID()
if (id ~= 0) then
local mp = Self.Mana()
local c = Creature.New(id)
for i = 1, #Spells do
if table.contains(Spells[i].list, c:Name():lower()) then
if Self.CanCastSpell(Spells[i].words) and mp > Spells[i].mana and c:HealthPercent() >= Spells[i].hppc then
local isUnsafe = SafeRadius(PvPRadiusSafety)
if not (isUnsafe) and c:DistanceFromSelf() <= Spells[i].range then
if c:isTarget() then
Self.Cast(Spells[i].words, Spells[i].mana)
end
end
break
end
end
end
end
end
end)
If you help me with this I will happily pay you 5 EUR!
I'd like some help for my safe exori vis script, first of all I want it to check floors +1/-1 if it's possible. If someone is above me or below me it won't shoot (to avoid getting skulled/rs). Also to be able to hunt with shared exp in party, basically ignore party members from the safety formula.. Right now, if someone is close to me the script won't shoot the exori vis, and I would like it to shoot exori vis still if someone who is in my party is close to me.
So here is the script, if someone knows how to edit it I would be very happy indeed.
Thank you in advance!
local Spells = {
{words = 'exori vis', hppc = 0, range = 3, mana = 20, list = {'demon skeleton'}
}
local PvPRadiusSafety = 3
function SafeRadius(radius)
for n, c in Creature.iPlayers() do
if c:DistanceFromSelf() < radius then
return true
end
end
end
BattleMessageProxy.OnReceive('shooter', function(proxy, message)
local givendmg = string.match(message, "(.+) due to your attack.")
if (givendmg) then
local id = Self.TargetID()
if (id ~= 0) then
local mp = Self.Mana()
local c = Creature.New(id)
for i = 1, #Spells do
if table.contains(Spells[i].list, c:Name():lower()) then
if Self.CanCastSpell(Spells[i].words) and mp > Spells[i].mana and c:HealthPercent() >= Spells[i].hppc then
local isUnsafe = SafeRadius(PvPRadiusSafety)
if not (isUnsafe) and c:DistanceFromSelf() <= Spells[i].range then
if c:isTarget() then
Self.Cast(Spells[i].words, Spells[i].mana)
end
end
break
end
end
end
end
end
end)