Jump to content

Recommended Posts

Posted

Hi there,

I play in many pvp servers.

I search a script that could invite newbie people to my clan academy.

I think script should work this way:

 

get near player list (range maybe ? idk)

check if they lvl

if it is below 40 then invite to academy

if its not check other players

 

but its only my mind if u could do it by your own way :}

thx and sry for my broken eng :D

 

 

this may help a lil bit:

Friends = {"NickOfBot1","NickOfBot2","NickOfBot3"}; -- enter names of your boots to exclude from list

--dont change nothing under this line

--------------------------------------------------------------------------------

function round(num, idp)

  local mult = 10^(idp or 0)

  return math.floor(num * mult + 0.5) / mult

end

--------------------------------------------------------------------------------

function CheckIfInsideList(Smsg,Rmsglist)

for x,y in pairs(Rmsglist) do

if (y == Smsg) then

return true;

end;

end;

return false;

end;

--------------------------------------------------------------------------------

Sleep(1000);

ShowToClient(" " , "====================================");

ShowToClient(" " , " NICK        CLASS        DISTANCE ");

i = 1;

PlayerList = GetPlayerList();

for user in PlayerList.list do

if (CheckIfInsideList(user:GetName(),Friends) == false) then

ShowToClient(" "..i , user:GetName() .. " - " .. L2Class2String(user:GetClass()) .. " - Dst: " ..round(tostring(GetMe():GetRangeTo(user))));

i = i+1;

end;

end;

ShowToClient(" " , "====================================");

Sleep(5000);

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock