on *:text:!fd &:#: {
var %file firstdeath.ini
if (!%firstdeath) {
if ($2 != open) msg # First Death is currently not active, it needs to be opened first.
elseif ($nick !isop #) msg # This command is for mods only.
else {
msg # First Death is open, choose the form of first death.
remini %file #
set %firstdeath 1
}
}
elseif (%firstdeath == 1) {
writeini %file # user $nick
writeini %file # boss $2
msg # You chose $2
set %firstdeath 2
}
elseif (%firstdeath == 2) {
if ($2 != close) msg # First Death is currently not active, it needs to be closed first.
elseif ($nick !isop #) msg # This command is for mods only.
else {
msg # First Death is now closed
set %firstdeath 3
}
}
elseif (%firstdeath == 3) {
if ($2 == $readini(%file,#,boss)) {
msg # YOU WIN! $2 was correct, $readini(%file,#,user) was the one who chose it.
unset %firstdeath
writeini -n Dinocoins.ini $+(#,.,$nick) dinocoins $calc($readini(Dinocoins.ini,$+(#,.,$nick),dinocoins) + 50)
msg # $nick now has $readini(Dinocoins.ini,$+(#,.,$nick),dinocoins) Dino coins.
}
else msg # Sorry, $2 was not correct.
}
}