hello i need safe spell caster (anty rs) script for ignore party players plx help me
hello i need safe spell caster (anty rs) script for ignore party players plx help me
There's a built in function for this
-- [MENTION=53840]name[/MENTION] paroundfloorignore
-- [MENTION=28084]desc[/MENTION] Returns the amount of players on the floor difference and range except those found list.
-- [MENTION=69448]para[/MENTION]m range The distance range.
-- [MENTION=69448]para[/MENTION]m floor The floor difference.
-- [MENTION=69448]para[/MENTION]m creature¹, creature², creature*, ... The creatures list to consider.
-- @returns integer
function paroundfloorignore(dist,floor,...)
local temp
local creaturestocheck = {...}
local count = 0
dist = dist or 10
if dist == 0 then
dist = 10
end
if type(floor) == 'string' then
temp = -(tonumber(floor))
if not temp then
table.insert(creaturestocheck, floor)
floor = 7
end
elseif floor > 1000 then
table.insert(creaturestocheck, floor)
floor = 7
end
table.lower(creaturestocheck)
if temp then
if temp > 0 then
foreach creature c 'p' do
local diff = c.posz-$posz
if c ~= $self and diff <= temp and diff >= 0 and math.highest(math.abs(c.posx-$posx), math.abs(c.posy-$posy)) <= dist and (#creaturestocheck == 0 or (not table.find(creaturestocheck,c.name:lower()) and not table.find(creaturestocheck,c.id) and not table.find(creaturestocheck,c))) then
count = count+1
end
end
else
foreach creature c 'p' do
local diff = c.posz-$posz
if c ~= $self and diff >= temp and diff <= 0 and math.highest(math.abs(c.posx-$posx), math.abs(c.posy-$posy)) <= dist and (#creaturestocheck == 0 or (not table.find(creaturestocheck,c.name:lower()) and not table.find(creaturestocheck,c.id) and not table.find(creaturestocheck,c))) then
count = count+1
end
end
end
else
foreach creature c 'p' do
local diff = c.posz-$posz
if c ~= $self and math.abs(diff) <= math.abs(floor) and math.highest(math.abs(c.posx-$posx), math.abs(c.posy-$posy)) <= dist and (#creaturestocheck == 0 or (not table.find(creaturestocheck,c.name:lower()) and not table.find(creaturestocheck,c.id) and not table.find(creaturestocheck,c))) then
count = count+1
end
end
end
return count
end
So all u need is ;
paroundfloorignore()