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);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...