Advertisement
johnlol

GMLoginAnnounce

Aug 2nd, 2023
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 2.25 KB | Gaming | 0 0
  1. /*
  2. -   script  gmloginannounce -1,{
  3.  
  4. OnPcLoginEvent:
  5.  
  6. if(getgmlevel() >=99) {
  7. announce "Administrator "+strcharinfo(0)+" has signed in.",bc_all,0x00ff66;
  8. }
  9. if(getgmlevel() < 99 && getgmlevel() >= 60){
  10. announce "GM "+strcharinfo(0)+" has signed in.",bc_all,0x00FF66;
  11. }
  12. end;
  13. }
  14. */
  15. /*
  16. //Created by Aeromas
  17. //Ver 1.0
  18. //Compatible with:
  19. //eAthena
  20. //GM Login && Admin login announcement, when new player joins, they're announced PLAYER has joined your RO, and then they get 2 level ups, you can modify it with getitem, or set Zeny, X;
  21. -   script  ann_login   -1,{
  22.  
  23. OnPCLogoutEvent:
  24.     callsub L_ann, 0xff0000, "out";
  25. OnPCLoginEvent:
  26.     callsub L_ann, 0x00ff00, "in";
  27. L_ann:
  28.     if( getgmlevel() >= 99 )
  29.         announce "Administrator "+ strcharinfo(0) +" log "+ getarg(1) +".",bc_all, getarg(0);
  30.     else if( getgmlevel() < 99 && getgmlevel() >= 10 )
  31.         announce "GM "+ strcharinfo(0) +" log "+ getarg(1) +".",bc_all, getarg(0);
  32.  
  33.     else if( #New_Player != 1 && BaseLevel == 1 && JobLevel == 1 ) {
  34.         announce "Please welcome "+ strcharinfo(0) +"  to our server!",bc_all,0x00ff66;
  35.         announce " And for joining our server, we're going to level you up 2 times!",bc_self,0x00ff66;
  36.         atcommand "!baselevel 2";
  37.         set #New_Player, 1;
  38.     }
  39.     end;
  40. }
  41. */
  42.  
  43. -   script  ann_login   -1,{
  44.  
  45. OnPCLogoutEvent:
  46.     callsub L_ann, 0xff0000, "out";
  47. OnPCLoginEvent:
  48.     if( getgmlevel() > 10 ) {
  49.         while ( .@i < .size_gm && getcharid(3) != .gm_acc[.@i] ) .@i++;
  50.         if( .@i == .size_gm ) {
  51.             .gm_acc[.@i] = getcharid(3);
  52.             .size_gm++;
  53.         }
  54.     }
  55.     callsub L_ann, 0x00ff00, "in";
  56. L_ann:
  57.     if( getgmlevel() >= 99 )
  58.         announce "Administrator "+ strcharinfo(0) +" log "+ getarg(1) +".",bc_all, getarg(0);
  59.     else if( getgmlevel() < 99 && getgmlevel() >= 10 )
  60.         announce "GM "+ strcharinfo(0) +" log "+ getarg(1) +".",bc_all, getarg(0);
  61.  
  62.     else if(!#firstCharJLv && BaseLevel == 1 && JobLevel == 1){
  63.         announce "Please welcome "+ strcharinfo(0) +"  to our server!",bc_all,0x00ff66;
  64.         announce "And for joining our server, we're going to Job Level you up 10 times!",bc_self,0x00ff66;
  65.         JobLevel = 10;
  66.         #firstCharJLv = 1;
  67.     }
  68.     else {
  69.         for( .@i = 0; .@i < .size_gm; .@i++ )
  70.             if( isloggedin( .gm_acc[.@i] ) )
  71.                 message rid2name( .gm_acc[.@i] ), "Player "+ strcharinfo(0) +" log "+ getarg(1) +".";
  72.     }
  73.     end;
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement