Jump to content
  • 0

unlegit stats detector


cloud167

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  05/13/12
  • Last Seen:  

A script that will detect a player if one of his stats exceeds 255, it will announce the player's name, it will tell the player that he have stats that go over the limit of 255 and will be DC-ed in 5 seconds. thank you in advance :D

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try add this code for your script to check

for( set .@i,13; .@i <= 18; set .@i,.@i + 1 )
if( readparam(.@i) > 255 ){
 announce strcharinfo(0)+" have Exceeded Max Stats Limits.",0;
 message strcharinfo(0),"Disconnecting within 5 Seconds.";
 sleep2 5000;
 // resetstatus;
 atcommand "@kick "+strcharinfo(0);
 break;
}
end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  05/13/12
  • Last Seen:  

umm, Sir Emistry, thank you for your quick reply, but can you add that it will look for unlegit characters every 30minutes or 1hour perhaps, I just thought of it because if someone exceeds the 255 stats, that script will only work on login right? so they might return the stats of the character to normal if they'll logout?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

OnPCLoginEvent:
while( 1 ){
   //code..........
   sleep2 ( 30 * 60000 );
}
end;

remove the end after the FOR-LOOP in above script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  05/13/12
  • Last Seen:  

uhhh, so sir, it'll look like this,

- script statlimiter -1,{

for( set .@i,13; .@i <= 18; set .@i,.@i + 1 )

if( readparam(.@i) > 255 ){

announce strcharinfo(0)+" have Exceeded Max Stats Limits.",0;

message strcharinfo(0),"Disconnecting within 5 Seconds.";

sleep2 5000;

// resetstatus;

atcommand "@kick "+strcharinfo(0);

break;OnPCLoginEvent:

while( 1 ){

//code..........

sleep2 ( 30 * 60000 );

}

end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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...