yazankayed Posted March 7, 2013 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 12/19/11 Last Seen: September 11, 2016 Share Posted March 7, 2013 Hi : I want Highest level Annoucment: as: John has the highes level in the server 98 . Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 7, 2013 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 March 7, 2013 - script oneideaforthename? -1,{ OnPCLoginEvent: OnPCBaseLvUpEvent: if( getgmlevel() > 2 ) end; if( getstrlen( $highest_level$ ) ) explode( .@h$, $highest_level$, "|" ); if( BaseLevel > atoi( .@h$ ) ) { .@h$ = BaseLevel; .@h$[1] = strcharinfo(0); announce "[ "+ strcharinfo(0) +" ] ("+ BaseLevel +") has the highest level in the serveur !", 0; } else if( .@h$[1] == strcharinfo(0) && BaseLevel < atoi(.@h$) ) { .@h$ = 0; .@h$[1] = ""; } $highest_level$ = implode( .@h$, "|" ); end; } Each time a player level up or login, this script check if he has the highest level. If he has, it makes an announce Quote Link to comment Share on other sites More sharing options...
yazankayed Posted March 11, 2013 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 12/19/11 Last Seen: September 11, 2016 Author Share Posted March 11, 2013 There are many errors, please help Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 11, 2013 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 March 11, 2013 (edited) There are many errors, please help I don't have any error Maybe you use eA or other emu - script oneideaforthename? -1,{ OnPCLoginEvent: OnPCBaseLvUpEvent: if( getgmlevel() > 2 ) end; if( getstrlen( $highest_level$ ) ) explode( .@h$, $highest_level$, "|" ); if( BaseLevel > atoi( .@h$ ) ) { set .@h$, BaseLevel; set .@h$[1], strcharinfo(0); announce "[ "+ strcharinfo(0) +" ] ("+ BaseLevel +") has the highest level in the serveur !", 0; } else if( .@h$[1] == strcharinfo(0) && BaseLevel < atoi(.@h$) ) { set .@h$, 0; set .@h$[1], ""; } set $highest_level$, implode( .@h$, "|" ); end; } If you have some error, post a screen of your mapserver when the errors appear or explain what happens in game Edited March 11, 2013 by Capuche Quote Link to comment Share on other sites More sharing options...
yazankayed Posted March 13, 2013 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 12/19/11 Last Seen: September 11, 2016 Author Share Posted March 13, 2013 http://ta3k.com/do.php?img=4 Quote Link to comment Share on other sites More sharing options...
Euphy Posted March 13, 2013 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted March 13, 2013 What emulator are you running? If you need the 'explode' command and aren't using rAthena or eAthena, apply the diff from r15039. Quote Link to comment Share on other sites More sharing options...
Question
yazankayed
Hi
:
I want Highest level Annoucment:
as:
John has the highes level in the server 98 .
Link to comment
Share on other sites
5 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.