;'Cyber Says'

;SILVER_WIN = 15000


MAP = #PARAM1
LEVEL = #PARAM2
SILVER_WIN = LEVEL * 2000

If GetUserFlag(0, 11) = 0
	If GetUserFlag(0, 10) = 0
		SendMessageToMap(MAP,"Event killed by a moderater", #MSG_EMOTE)
		GoTo END
	EndIf
	SendMessageToMap(MAP,"Repeat what Cyber says within the time limit, or you are removed from the event. Last person remaining wins. Remember: capitalization matters.", #MSG_EMOTE)
	SetUserFlag(0, 11, 1)
	GoTo END
EndIf

PlayersLeft = GetMapPlayerCount(MAP)
If PlayersLeft > 1
	SendMessageToMap(MAP,"Round "+LEVEL+", "+PlayersLeft+" players left.",#MSG_SERVER)
	GoTo SAY
ElseIf PlayersLeft = 1
	WinnerID = GetNextMapUser(MAP,0)
	SendMessageToAll("Cyber Says is now over, congratulations "+GetUserName(WinnerID)+", for winning the event! (Round "+LEVEL+")", #MSG_SERVER)
	SendMessageToUser(WinnerID,"Cyber says, 'Congratulations, everyone sucks more than you.'",#MSG_TELL)
	SendMessageToUser(WinnerID,"You got "+SILVER_WIN+" silver as your winnings.",#MSG_EMOTE)
	SetUserSilver(WinnerID,GetUserSilver(WinnerID)+SILVER_WIN)
	WarpUser(WinnerID,509,10,11)
	SetUserFlag(0, 10, 0)
	SetUserFlag(0, 11, 0)
	Timer(346,100,WinnerID,0,0)
	GoTo END
Else
	SendMessageToAll("Cyber Says is now over, nobody has won. (Round "+LEVEL+")", #MSG_SERVER)
	SetUserFlag(0, 10, 0)
	SetUserFlag(0, 11, 0)
EndIf
GoTo END

Label SAY

SAYTEXT=""
If LEVEL < 10
	Rand = Random(LEVEL*10,LEVEL*10+10)
Else
	Rand = Random(0,50)
EndIf

If Rand = 0
	SAYTEXT="good morning"
ElseIf Rand = 1
	SAYTEXT="welcome"
ElseIf Rand = 2
	SAYTEXT="get ready"
ElseIf Rand = 3
	SAYTEXT="bring it"
ElseIf Rand = 4
	SAYTEXT="all set"
ElseIf Rand = 5
	SAYTEXT="ready to go"
ElseIf Rand = 6
	SAYTEXT="lets start"
ElseIf Rand = 7
	SAYTEXT="lets begin"
ElseIf Rand = 8
	SAYTEXT="begin typing"
ElseIf Rand = 9
	SAYTEXT="start typing"
ElseIf Rand = 10
	SAYTEXT="Prepared"
ElseIf Rand = 11
	SAYTEXT="Arranged"
ElseIf Rand = 12
	SAYTEXT="Completed"
ElseIf Rand = 13
	SAYTEXT="Finished"
ElseIf Rand = 14
	SAYTEXT="Totalled"
ElseIf Rand = 15
	SAYTEXT="Balance"
ElseIf Rand = 16
	SAYTEXT="Reward"
ElseIf Rand = 17
	SAYTEXT="Treasure"
ElseIf Rand = 18
	SAYTEXT="Destroyed"
ElseIf Rand = 19
	SAYTEXT="Decimated"
ElseIf Rand = 20
	SAYTEXT="Down there"
ElseIf Rand = 21
	SAYTEXT="Up here"
ElseIf Rand = 22
	SAYTEXT="Over here"
ElseIf Rand = 23
	SAYTEXT="Over there"
ElseIf Rand = 24
	SAYTEXT="Higher up"
ElseIf Rand = 25
	SAYTEXT="Lower down"
ElseIf Rand = 26
	SAYTEXT="Farther back"
ElseIf Rand = 27
	SAYTEXT="Higher down"
ElseIf Rand = 28
	SAYTEXT="Further along"
ElseIf Rand = 29
	SAYTEXT="Lower up"
ElseIf Rand = 30
	SAYTEXT="Shrikes disease"
ElseIf Rand = 31
	SAYTEXT="<Type this>"
ElseIf Rand = 32
	SAYTEXT="Cyberneticwraith"
ElseIf Rand = 33
	SAYTEXT="[typethis]"
ElseIf Rand = 34
	SAYTEXT="Abadonian Might"
ElseIf Rand = 35
	SAYTEXT="DoZ has grown much"
ElseIf Rand = 36
	SAYTEXT="Russ stole my gold"
ElseIf Rand = 37
	SAYTEXT="Death Scythes are sweet"
ElseIf Rand = 38
	SAYTEXT="Drac killed Comrade"
ElseIf Rand = 39
	SAYTEXT="#TYPETHIS"
ElseIf Rand = 40
	SAYTEXT="Predhunter13 roars at ten"
ElseIf Rand = 41
	SAYTEXT="Venator is Predhunter13"
ElseIf Rand = 42
	SAYTEXT="Comrade can divide by zero"
ElseIf Rand = 43
	SAYTEXT="XeroSpartan levels like mad"
ElseIf Rand = 44
	SAYTEXT="Shrike is a mad genius"
ElseIf Rand = 45
	SAYTEXT="Decayed of Zombies"
ElseIf Rand = 46
	SAYTEXT="Dracflamloc is the creator"
ElseIf Rand = 47
	SAYTEXT="Dracflamloc made DoZ"
ElseIf Rand = 48
	SAYTEXT="Just try and keep typing"
ElseIf Rand = 49
	SAYTEXT="Type faster, and better"
ElseIf Rand = 50
	SAYTEXT="Baked potatoes are good"
ElseIf Rand = 51
	SAYTEXT="Comrade loves curry"
ElseIf Rand = 52
	SAYTEXT="Kiwis are good for you"
ElseIf Rand = 53
	SAYTEXT="You are playing Cyber Says"
ElseIf Rand = 54
	SAYTEXT="I wonder it ti rednow I"
ElseIf Rand = 55
	SAYTEXT="My name is Cyber"
ElseIf Rand = 56
	SAYTEXT="Cyber says says Cyber"
ElseIf Rand = 57
	SAYTEXT="I am Cyberneticwraith"
ElseIf Rand = 58
	SAYTEXT="Cornrade is mispelled here"
ElseIf Rand = 59
	SAYTEXT="Regulus is a fallen angel"
ElseIf Rand = 60
	SAYTEXT="mystix hates people calling him mystic"
ElseIf Rand = 61
	SAYTEXT="In communist russia DoZ plays you"
ElseIf Rand = 62
	SAYTEXT="lightningman lost his lightning"
ElseIf Rand = 63
	SAYTEXT="lightningman never got his lightning"
ElseIf Rand = 64
	SAYTEXT="Moderators are fierce and quick to anger"
ElseIf Rand = 65
	SAYTEXT="DoZ now hiring moderaters! (In 2019)"
ElseIf Rand = 66
	SAYTEXT="Oisvo Deeps is under the underworks"
ElseIf Rand = 67
	SAYTEXT="Bergsville has been hit by a plague"
ElseIf Rand = 68
	SAYTEXT="Stop posting pictures of cats online"
ElseIf Rand = 69
	SAYTEXT="Regulus has powerful Rings of Death"
ElseIf Rand = 70
	SAYTEXT="Cyberneticwraith AKA Cyber the wraith"
ElseIf Rand = 71
	SAYTEXT="Cyberneticwraith the cyborg wraith"
ElseIf Rand = 72
	SAYTEXT="I wonder when the others will mess up"
ElseIf Rand = 73
	SAYTEXT="I wonder what will happen now"
ElseIf Rand = 74
	SAYTEXT="I wonder why I keep on wondering"
ElseIf Rand = 75
	SAYTEXT="I wonder where the wind will go"
ElseIf Rand = 76
	SAYTEXT="I wonder what Cyber will say next"
ElseIf Rand = 77
	SAYTEXT="I wonder what's in a wonder ball"
ElseIf Rand = 78
	SAYTEXT="Shares in DoZ increased ten fold today"
ElseIf Rand = 79
	SAYTEXT="Wind whips around the folds of the cloak"
ElseIf Rand = 80
	SAYTEXT="I did not think you would make it this far"
ElseIf Rand = 81
	SAYTEXT="You are one step closer to winning the event"
ElseIf Rand = 82
	SAYTEXT="Cyber will warp you if you get this one wrong"
ElseIf Rand = 83
	SAYTEXT="Comrade is tired of typing all this text"
ElseIf Rand = 84
	SAYTEXT="My computer has a widescreen monitor"
ElseIf Rand = 85
	SAYTEXT="The earth draws ever nearer the sun"
ElseIf Rand = 86
	SAYTEXT="The beachhouse has a wondeful view of the sea"
ElseIf Rand = 87
	SAYTEXT="The tranquil ocean claims many deaths a year"
ElseIf Rand = 88
	SAYTEXT="The morning awakens with a deeply colored sunrise"
ElseIf Rand = 89
	SAYTEXT="The forest glows peacefully as the fire rages out of control"
ElseIf Rand = 90
	SAYTEXT="Dracflamloc dramatically debugs dangerous deallocations"
ElseIf Rand = 91
	SAYTEXT="<Insert Moderater Name Here>"
ElseIf Rand = 92
	SAYTEXT="Wookie warlord WarWookie wages war"
ElseIf Rand = 93
	SAYTEXT="This is a placeholder for a moderater's name"
ElseIf Rand = 94
	SAYTEXT="Shrike systematicly slays silver sealions"
ElseIf Rand = 95
	SAYTEXT="Apollyon always annihilates angry animals"
ElseIf Rand = 96
	SAYTEXT="Comrade compares computational calculations"
ElseIf Rand = 97
	SAYTEXT="XeroSpartan levels like a insanely mad man"
ElseIf Rand = 98
	SAYTEXT="Dr Dada daily diagnoses deadly diseases"
ElseIf Rand = 99
	SAYTEXT="Predater Predhunter perfectly pulverizes poor predaters"
Else
	SAYTEXT="If you are reading this, you have now lost Cyber Says - Comrade"
EndIf

SendMessageToMap(MAP,"Cyber says, '"+SAYTEXT+"'",#MSG_TELL)

Timer(521,7500,#PARAM1,#PARAM2,SAYTEXT)

Label END

Continue = 1