IKillYou
11-22-2015, 01:42 PM
Hello! I need anti RS script and i got trouble to make it perfect. First of all IDK how to do like this:
If you are near stairs of id 469, 13341 and 13342 OR Any player is near to you (2 sqm away) change spell shooter from yyyy to safe one xxxx.
Module.New("Anty-RS", function(module)
local p = Self.Position()
for y = -5, 5 do
for x = -7, 7 do
for name, player in Creature.iPlayers(2) do
if ((Map.GetTopUseItem(p.x+x,p.y+y,p.z).id == 469 and Self.DistanceFromPosition(p.x+x,p.y+y,p.z) <= 2) or (Map.GetTopUseItem(p.x+x,p.y+y,p.z).id == 13341 and Self.DistanceFromPosition(p.x+x,p.y+y,p.z) <= 2) or (Map.GetTopUseItem(p.x+x,p.y+y,p.z).id == 13342 and Self.DistanceFromPosition(p.x+x,p.y+y,p.z) <= 2) or #name > 1) then
loadSettings("xxxx", 'Spell Shooter')
else
loadSettings("yyyy", 'Spell Shooter')
end
end
end
end
end)
Anyone? ^^
If you are near stairs of id 469, 13341 and 13342 OR Any player is near to you (2 sqm away) change spell shooter from yyyy to safe one xxxx.
Module.New("Anty-RS", function(module)
local p = Self.Position()
for y = -5, 5 do
for x = -7, 7 do
for name, player in Creature.iPlayers(2) do
if ((Map.GetTopUseItem(p.x+x,p.y+y,p.z).id == 469 and Self.DistanceFromPosition(p.x+x,p.y+y,p.z) <= 2) or (Map.GetTopUseItem(p.x+x,p.y+y,p.z).id == 13341 and Self.DistanceFromPosition(p.x+x,p.y+y,p.z) <= 2) or (Map.GetTopUseItem(p.x+x,p.y+y,p.z).id == 13342 and Self.DistanceFromPosition(p.x+x,p.y+y,p.z) <= 2) or #name > 1) then
loadSettings("xxxx", 'Spell Shooter')
else
loadSettings("yyyy", 'Spell Shooter')
end
end
end
end
end)
Anyone? ^^