Valor Posted April 24, 2017 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 72 Reputation: 29 Joined: 12/21/16 Last Seen: January 5, 2024 Share Posted April 24, 2017 View File 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 Valor Submitted 04/24/17 Category Utilities Content Author Quote Link to comment Share on other sites More sharing options...
AinsLord Posted September 24, 2018 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: April 6 Share Posted September 24, 2018 (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 September 24, 2018 by AinsLord Quote Link to comment Share on other sites More sharing options...
Drog Posted September 24, 2018 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 05/24/18 Last Seen: December 21, 2018 Share Posted September 24, 2018 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 ) { Quote Link to comment Share on other sites More sharing options...
GodKnows Jhomz Posted September 24, 2018 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 333 Reputation: 68 Joined: 09/05/12 Last Seen: June 13, 2023 Share Posted September 24, 2018 (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 September 24, 2018 by GodKnows Jhomz 1 Quote Link to comment Share on other sites More sharing options...
AinsLord Posted September 24, 2018 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: April 6 Share Posted September 24, 2018 thnx for response guys ^_^ Quote Link to comment Share on other sites More sharing options...
acacioleite92 Posted April 13, 2021 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 16 Reputation: 0 Joined: 01/11/21 Last Seen: March 17 Share Posted April 13, 2021 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? Quote Link to comment Share on other sites More sharing options...
AinsLord Posted April 13, 2021 Group: Members Topic Count: 261 Topics Per Day: 0.08 Content Count: 758 Reputation: 20 Joined: 11/21/15 Last Seen: April 6 Share Posted April 13, 2021 you may want to check your terminal maybe there is some debug issue Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.