Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    May 2015
    Posts
    9
    Reputation
    10
    Rep Power
    0

    spell caster party

    hello i need safe spell caster (anty rs) script for ignore party players plx help me

  2. #2
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    890
    Reputation
    61
    Rep Power
    22
    Quote Originally Posted by Trampus View Post
    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()

    ---

    Quote or Tag me if you want me to reply quicker


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •