proc
AutoCheck()
set background=1
sleep(pick(18000,24000,27000,30000,36000))//sleep a random amount of time so players can't predict when the next check is
for(var/mob/M in world)
M.AFK=1
usr.colour=pick("Red","Green","Blue")
if(usr.colour = "Red")
usr << "Please Press The Red Button In the Next 30 Seconds, Or You Will Be Booted!"
if(usr.colour = "Blue")
usr << "Please Press The Blue Button In the Next 30 Seconds, Or You Will Be Booted!"
if(usr.colour = "Green")
usr << "Please Press The Green Button In the Next 30 Seconds, Or You Will Be Booted!"
sleep(300)
for(var/mob/M in world)
if(M.AFK)
world<< "<b>[M] was booted!"
del(M)
mob
var
colour = ""
mob
verb
.PressRed()
if(usr.colour == "Red")
usr << "Thank You For Choosing the Right Color!"
usr << "Here Is A Reward For Not Being AFK!"
usr.exp += usr.level*25
usr.AFK = 0
else
usr.AFK = 1
usr << "You Have Picked the Wrong Color! You Will Now Be Booted! :)"
for(var/mob/M in world)
if(M.AFK)
world<< "<b>[M] was booted!"
del(M)
mob
verb
.PressBlue()
if(usr.colour == "Blue")
usr << "Thank You For Choosing the Right Color!"
usr << "Here Is A Reward For Not Being AFK!"
usr.exp += usr.level*25
usr.AFK = 0
else
usr.AFK = 1
usr << "You Have Picked the Wrong Color! You Will Now Be Booted! :)"
for(var/mob/M in world)
if(M.AFK)
world<< "<b>[M] was booted!"
del(M)
mob
verb
.PressGreen()
if(usr.colour == "Green")
usr << "Thank You For Choosing the Right Color!"
usr << "Here Is A Reward For Not Being AFK!"
usr.exp += usr.level*25
usr.AFK = 0
else
usr.AFK = 1
for(var/mob/M in world)
if(M.AFK)
world<< "<b>[M] was booted!"
del(M)
Problem description:
I have been trying to figure this out for about an hour now, and to no avail I have not figured out how to fix this! I get two error messages,
Codes\AFK.dm:66:error: pick: undefined proc
Codes\AFK.dm:67:error: : invalid expression
Any Ideas on how to fix this?