jollebollen
04-16-2016, 05:03 AM
XenoBot shooter shoots exori MIN if someone is next to you just want you to know another sqm or two must be added to make it pvp safe :) thanks!
callumbagshaw
06-09-2016, 09:40 AM
Hey dude, just pulled this from an old safe exori script. Might be outdated by now but it should help you.
local PvPSafe = true
local Attacks = {}
--[[
Options:
words - words of spell to cast
creatures - table of creatures to consider, if you disclude this it will consider all
count - amount of creatures in order to cast
range - distance from self to consider creatures
padding - for pvpsafe, if enabled each spell must have a padding setting, distance from self players must be in order to cast
needTarget - for spells that require a target, no need for a count or padding if this is enabled
]]--
Attacks[1] = { words = 'exori gran', creatures = {'Grim Reaper','Gravedigger','Kolos','Waspoid'}, count = 3, range = 1, padding = 3 }
Module.New('auto_attack', function()
for _, data in ipairs(Attacks) do
if (not PvPSafe) or (Self.isAreaPvPSafe(data.padding, true)) then
if data.needTarget then
local target = Creature.New(Self.TargetID())
if (data.creatures and table.find(data.creatures, target:Name(), false)) or (not data.creatures) then
if target:DistanceFromSelf() <= data.range and Self.CanCastSpell(data.words) then
Self.Say(data.words)
end
end
else
local count, mob = 0, Self.GetTargets(data.range)
if data.creatures then
for i = 1, #mob do
if mob[i]:isOnScreen() and table.find(data.creatures, mob[i]:Name(), false) then
count = count + 1
end
end
else
count = #mob
end
if count >= data.count and Self.CanCastSpell(data.words) then
Self.Say(data.words)
end
end
end
end
end)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.