Jump to content
  • 0
Sign in to follow this  
ZelosAvalon

Event Ranking

Question

i have this event helper npc, but ranking show just "none" can anyone help me with this ranking ?

 

prontera,146,156,6	script	Event Helper	805,{	mes "[Event Helper]";	mes "Hello ^3355FF"+strcharinfo(0)+"^000000";	mes "I'm the Event Helper.";	mes "Here you can check your points, exchanging them and see their position in the top event players";	next;	Main:	mes "[Event Helper]";	mes "What would you like to check?";	next;		switch(select("^22AA22Event Points^000000:Ledder:^3355FFPrizes^000000:Exit")) {	case 1:		mes "[Event Helper]";		mes "You already earned ^3355FF"+ #T_Event_point +"^000000 Event Points";		mes "You have ^3355FF"+ #Event_point +"^000000 Event Points to use";		next;		goto Main;	case 2:		mes "[Hunting Missions]";		mes "The Top Event are:";		query_sql("SELECT char_id AS id, (SELECT `name` FROM `char` WHERE char_id = id),`value` FROM `char_reg_num_db` WHERE `key` = '#T_Event_point' ORDER BY `value` DESC LIMIT 5",.@id,.@name$,.@val);		for(set .@i,0; .@i<5; set .@i,.@i+1)			mes "  [Rank "+(.@i+1)+"]  "+((.@name$[.@i] == "")?"^777777none":"^0055FF"+.@name$[.@i]+"^000000 : ^FF0000"+.@val[.@i]+" pt.")+"^000000";		close;	case 3:		mes "[Event Helper]";		mes "You have ^3355FF"+ #Event_point +"^000000 Event Points for exchange";		mes "Exchange rate:";		mes "^3355FF20^000000 Event Point = ^3355FF1^000000 Bronze Event Coin";		next;		switch(select("Convert Event Points:Back")) {			case 1:				{if(#Event_point < 20) 				goto noEP;				}				{ if(#Event_point >= 20)				.@remainDiv = #Event_point%20;				.@remaindiv01 = #Event_point - .@remainDiv;				set #Event_point, #Event_point - .@remaindiv01;				mes " [Event Manager]";				mes "Thank you for choosing ^777777RagnaRebirth^000000 that luck be with you in future events, and you can win many Coins.";				.@remaindiv01 = .@remaindiv01/20;				getitem 8052,.@remaindiv01;				close;				}			case 2:			goto Main;		}	}noEP:	{	mes "[Event Manager]";	mes "You don't have enough Event Points.";	close;	}}

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.