Valor Posted April 24, 2017 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
AinsLord Posted September 24, 2018 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
Drog Posted September 24, 2018 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
GodKnows Jhomz Posted September 24, 2018 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
acacioleite92 Posted April 13, 2021 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
AinsLord Posted April 13, 2021 Posted April 13, 2021 you may want to check your terminal maybe there is some debug issue Quote
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.