EL Dragon Posted July 9, 2014 Group: Members Topic Count: 86 Topics Per Day: 0.02 Content Count: 591 Reputation: 146 Joined: 06/19/12 Last Seen: December 10, 2016 Share Posted July 9, 2014 this is the script - script gm_is_online -1,{ OnPCLoginEvent: if (getgmlevel()>=99) goto L_admin; if (getgmlevel()>=90) goto L_co_admin; if( getgmlevel()>=10) goto L_head; if (getgmlevel()>=4) goto L_event; if (getgmlevel()>=3) goto L_support; if (getgmlevel()>=2) goto L_helper; readparam(bStr); readparam(bAgi); readparam(bVit); readparam(bInt); readparam(bDex); readparam(bLuk); if ((class >= 4054 && class <= 4079) || (class >= 4023 && class <= 4045) || (class >= 4096 && class <= 4108)){ //3rd Job Class if (readparam(bStr) > 300 || readparam(bAgi) > 300 || readparam(bVit) > 300 || readparam(bInt) > 300 || readparam(Dex) > 300 || readparam(bLuk) > 300){ mes "[^FF0000Anti Cheat System^000000]"; mes "We have detected you having stats over the limit. You will be disconnected shortly. If this is an error please contact the Game Master immediately."; atcommand "@option 2 0 0"; atcommand "@battleignore"; setoption 0x2,1; sc_start sc_berserk, 1000000000, 1; sleep2 5000; //5 Seconds delay atcommand "@kick "+strcharinfo(0)+""; end; } } else { //Other than 3rd Job Class if (readparam(bStr) > 300 || readparam(bAgi) > 300 || readparam(bVit) > 300 || readparam(bInt) > 300 || readparam(Dex) > 300 || readparam(bLuk) > 300){ mes "[^FF0000Anti Cheat System^000000]"; mes "We have detected you having stats over the limit. You will be disconnected shortly. If this is an error please contact the Game Master immediately."; atcommand "@option 2 0 0"; atcommand "@battleignore"; setoption 0x2,1; sc_start sc_berserk, 1000000000, 1; sleep2 5000; //5 Seconds delay atcommand "@kick "+strcharinfo(0)+""; end; L_admin: atcommand "@speed 1"; announce "[ Admin ] "+strcharinfo(0)+" ist online",bc_all,0x00ff66; specialeffect2 377; specialeffect2 381; close; L_co_admin: atcommand "@speed 1"; announce "[ Co Admin ] "+strcharinfo(0)+" ist online",bc_all,0x00ff66; specialeffect2 377; specialeffect2 381; close; L_head: atcommand "@speed 1"; announce "[ Head GM ] "+strcharinfo(0)+" ist online",bc_all,0x00ff66; specialeffect2 377; specialeffect2 381; close; L_event: atcommand "@speed 1"; announce "[ Event GM ] "+strcharinfo(0)+" online",bc_all,0x00ff66; specialeffect2 377; specialeffect2 381; close; L_support: atcommand "@speed 1"; announce "[ Support GM ] "+strcharinfo(0)+" online",bc_all,0x00ff66; specialeffect2 377; specialeffect2 381; close; L_helper: atcommand "@speed 1"; announce "[ Helper ] "+strcharinfo(0)+" online",bc_all,0x00ff66; specialeffect2 377; specialeffect2 381; close; end; } } } the porblem is at each lvl gm comes the helper announce Quote Link to comment Share on other sites More sharing options...
Pneuma Posted July 9, 2014 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 846 Reputation: 138 Joined: 02/26/14 Last Seen: March 7, 2018 Share Posted July 9, 2014 the if (getgmlevel) do not go i have gm lvl 99 and the script classifies me as Helper so get on login announce "[ Helper ] "+strcharinfo(0)+" online",bc_all,0x00ff66; You need to make the level checks "==" not >=" because that checks everything higher and equal to that level Quote Link to comment Share on other sites More sharing options...
Capuche Posted July 9, 2014 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted July 9, 2014 ?? I don't understand your issue Quote Link to comment Share on other sites More sharing options...
EL Dragon Posted July 9, 2014 Group: Members Topic Count: 86 Topics Per Day: 0.02 Content Count: 591 Reputation: 146 Joined: 06/19/12 Last Seen: December 10, 2016 Author Share Posted July 9, 2014 the if (getgmlevel) do not go i have gm lvl 99 and the script classifies me as Helper so get on login announce "[ Helper ] "+strcharinfo(0)+" online",bc_all,0x00ff66; Quote Link to comment Share on other sites More sharing options...
EL Dragon Posted July 9, 2014 Group: Members Topic Count: 86 Topics Per Day: 0.02 Content Count: 591 Reputation: 146 Joined: 06/19/12 Last Seen: December 10, 2016 Author Share Posted July 9, 2014 oh fail xD ty for help Pneuma Quote Link to comment Share on other sites More sharing options...
Question
EL Dragon
this is the script
the porblem is at each lvl gm comes the helper announce
Link to comment
Share on other sites
4 answers to this question
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.