Advertisement
Capuche

Ann_highest_lvl

May 8th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. //===== rAthena Script =======================================
  2. //= Highest level
  3. //===== By: ==================================================
  4. //= Capuche
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena SVN
  9. //===== Description: =========================================
  10. //= Announce the player with the highest level in the server
  11. //============================================================
  12.  
  13. - script oneideaforthename? -1,{
  14. OnPCLoginEvent:
  15. OnPCBaseLvUpEvent:
  16. if( getgmlevel() > 2 ) end;
  17. if( getstrlen( $highest_level$ ) )
  18. explode( .@h$, $highest_level$, "|" );
  19. if( BaseLevel > atoi( .@h$ ) ) {
  20. .@h$ = BaseLevel;
  21. .@h$[1] = strcharinfo(0);
  22. announce "[ "+ strcharinfo(0) +" ] ("+ BaseLevel +") has the highest level in the serveur !", 0;
  23. }
  24. else if( .@h$[1] == strcharinfo(0) && BaseLevel < atoi(.@h$) ) {
  25. .@h$ = 0;
  26. .@h$[1] = "";
  27. }
  28. $highest_level$ = implode( .@h$, "|" );
  29. end;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement