Jump to content
  • 0

how to make when event ends announce the top 3 winners


drifterxxxx2

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  83
  • Reputation:   3
  • Joined:  10/22/17
  • Last Seen:  

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!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  83
  • Reputation:   3
  • Joined:  10/22/17
  • Last Seen:  

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:

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...