Jump to content

Utility: Login Scanner


Valor

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  72
  • Reputation:   28
  • Joined:  12/21/16
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  05/24/18
  • Last Seen:  

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

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   67
  • Joined:  09/05/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

thnx for response guys ^_^

Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  16
  • Reputation:   0
  • Joined:  01/11/21
  • Last Seen:  

On 9/24/2018 at 5:10 PM, AinsLord said:

thnx for response guys ^_^

When I start my server I just hear the error sound but it doesn't appear in red letters where it is.

can anybody help me?

 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

you may want to check your terminal maybe there is some debug issue

 

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