Jump to content
  • 0

how to make when event ends announce the top 3 winners


Question

Posted

Hi

i'm trying to make an event script where you are suposed to kill monsters, after all monsters die the event ends and the top 3 killers are announced to the map

can anyone help me doing this?

i have this label so far (yes this is all i have XD)

//set .status,1; //when event starts
//OnInit:
//set .mob,20;
//set .reward,501;
//set .amount,3;
//monster ....

OnMobKilled:
	set .mob, .mob - 1;
	getitem .reward, .amount;
	if (.mob) announce "["+strcharinfo(0)+"] has killed one monster!",bc_map;
	else {
		announce "event has finished! winners are /* PLAYER NAME WHO KILLED THE MOST.*/ with /* KILLS FROM THAT PLAYER*/",bc_map;
		set .status,0;
	}
	end;

 

thank you!

2 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, Rolf said:

i'm trying to make an event script where you are suposed to kill monsters, after all monsters die the event ends and the top 3 killers are announced to the map

just a few days ago, I just show off did shuffle algorithm

now its time to use sorting algorithm ~ /gg

 

http://upaste.me/6ba24958361e5dc26

have fun learning from it ~

 

and this script has been tested and can be use on live server

https://drive.google.com/file/d/1Nvo4gJyZ6QTF1m55QF2q5a-jnaIONxVX/view?usp=sharing

  • Love 1
  • 0
Posted
5 hours ago, AnnieRuru said:

just a few days ago, I just show off did shuffle algorithm

now its time to use sorting algorithm ~ /gg

 

http://upaste.me/6ba24958361e5dc26

have fun learning from it ~

 

and this script has been tested and can be use on live server

https://drive.google.com/file/d/1Nvo4gJyZ6QTF1m55QF2q5a-jnaIONxVX/view?usp=sharing

 

thank you very much

function counting sort is so usefull :wub:

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...