Jump to content

Recommended Posts

Posted

Login Scanner


Just another OnPCLoginEvent script simple scan.

Expected to prevent intruder and  stat hack.

Shared as it belong to community, not mine. ;)

3 way scan: checking GM name, check max base stat, check total stat point.

modified original script by Brian - check statpoint


  • Submitter
  • Submitted
    04/24/17
  • Category
  • Content Author

 

  • 1 year later...
Posted (edited)

sir @Valor

[Error]:  Loading NPC file: npc/custom/ains/overstatban.txt
script error on npc/custom/ains/overstatban.txt line 20
    need '('
    15 : {
    16 :
    17 : OnPCLoginEvent:
    18 : set .@name$,strcharinfo(0);
    19 : set .@ipbannumber$,getcharip(strcharinfo(0));
*   20 : if ( getgmlevel() > 99 || getgroupid '>' 99 ) {        // GM level/group config
    21 :        //==== Authorized GM Checker =============================================
    22 :                if ( .@name$ == "GMawa" || .@name$ == "GMaa") end;
    23 :                announce "Shield: "+.@name$+" from "+.@ipbannumber$+" was banned for login unauthorized GM account.",bc_all;
    24 :                //atcommand "@block "+.@name$;
    25 :                debugmes .@name$+" was banned for login unauthorized GM account.";

i have this error on your code

Edited by AinsLord
Posted
30 minutes ago, AinsLord said:

sir @Valor


[Error]:  Loading NPC file: npc/custom/ains/overstatban.txt
script error on npc/custom/ains/overstatban.txt line 20
    need '('
    15 : {
    16 :
    17 : OnPCLoginEvent:
    18 : set .@name$,strcharinfo(0);
    19 : set .@ipbannumber$,getcharip(strcharinfo(0));
*   20 : if ( getgmlevel() > 99 || getgroupid '>' 99 ) {        // GM level/group config
    21 :        //==== Authorized GM Checker =============================================
    22 :                if ( .@name$ == "GMawa" || .@name$ == "GMaa") end;
    23 :                announce "Shield: "+.@name$+" from "+.@ipbannumber$+" was banned for login unauthorized GM account.",bc_all;
    24 :                //atcommand "@block "+.@name$;
    25 :                debugmes .@name$+" was banned for login unauthorized GM account.";

i have this error on your code

remove the quotes in > or line 20.

if ( getgmlevel() > 99 || getgroupid > 99 ) {

 

Posted (edited)
50 minutes ago, AinsLord said:

sir @Valor


[Error]:  Loading NPC file: npc/custom/ains/overstatban.txt
script error on npc/custom/ains/overstatban.txt line 20
    need '('
    15 : {
    16 :
    17 : OnPCLoginEvent:
    18 : set .@name$,strcharinfo(0);
    19 : set .@ipbannumber$,getcharip(strcharinfo(0));
*   20 : if ( getgmlevel() > 99 || getgroupid '>' 99 ) {        // GM level/group config
    21 :        //==== Authorized GM Checker =============================================
    22 :                if ( .@name$ == "GMawa" || .@name$ == "GMaa") end;
    23 :                announce "Shield: "+.@name$+" from "+.@ipbannumber$+" was banned for login unauthorized GM account.",bc_all;
    24 :                //atcommand "@block "+.@name$;
    25 :                debugmes .@name$+" was banned for login unauthorized GM account.";

i have this error on your code

Try this instead.

if ( getgmlevel() > 99 || getgroupid() > 99 ) {

 

Edited by GodKnows Jhomz
  • Like 1
  • 2 years later...

Join the conversation

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...