Jump to content
  • 0

Highest level Annoucment!


yazankayed

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  12/19/11
  • Last Seen:  

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


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

-	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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  12/19/11
  • Last Seen:  

There are many errors, please help :)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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 by Capuche
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

What emulator are you running?

If you need the 'explode' command and aren't using rAthena or eAthena, apply the diff from r15039.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...