mob/var
tmp
AFK=0
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
world<<"<b><font size=5><font color=red>AFK Check Initiated, \
please say something into OOC to avoid being booted!"
sleep(500)
world<<"<b><font size=5><font color=red>10 seconds until you're kicked if you haven't talked!"
sleep(100)
for(var/mob/M in world)
if(M.AFK)
world<<"<b>[M] was booted with [round(M.client.inactivity/10)] seconds since last command!"//if the time is 0-3 seconds they are afk training
del(M)
mob/verb
AFKCheck()
for(var/mob/M in world)
M.AFK=1
world<<"<b><font size=5><font color=red>AFK Check Initiated, \
please say something into OOC to avoid being booted!"
sleep(500)
world<<"<b><font size=5><font color=red>10 seconds until you're kicked if you haven't talked!"
sleep(100)
for(var/mob/M in world)
if(M.AFK)
world<<"<b>[M] was booted with [round(M.client.inactivity/10)] seconds since last command!"//if the time is 0-3 seconds they are afk training
del(M)
OOC(msg as text)<-- heres the line that says it's a duplicate.
if(src.AFK)
src.AFK=0
src<<"You have been saved from this AFK check!"
world<<"<b>(OOC)[src] says: [msg]"<--Here's the afk check i have right now.
mob/var/say_delay = 0
mob/var/muted = 0
mob/var/mute_time = 0
mob/var/spammed = 0
mob/var/AFK = 0
var/World_Mute=0
var/Channel_Mute = 0
mob/verb/OOC(T as text)<-- this line says error duplicate definition
set category = "Channels"
if(src.muted)
src << "You have been muted!"
return
if(World_Mute && !src.GMLevel)
src << "The world is Muted!"
return
if(!T)
spawn() alert("Your message may not be blank.")
return
if(lentext(T) > 150)
spawn() alert("Your message can not exceed 100 characters.")
T = copytext(T,1,150)
else
ChatLog(src,"OOC: [T]")
for(var/client/C)
if(!C)continue
if(!C.mob) continue
if(C.mob.Ignored.Find(usr)) continue
if(!src.in_guild)
if(C.mob.ooc_on)
C << {"<font color="#000066">{<font color="#FFFFFF">[src.title]<font color="#000066">}</font></font><font color=#999999>{[src.rank]} [src.name] OOC:<font color = [textcolor]> [s_smileys(T)]"}//[s_smileys(T)]
src.afk_time = 0
else
if(C.mob.ooc_on)
C << {"<font color="#000066">{<font color="#FFFFFF">[src.guild_name_html]<font color="#000066">}</font><font color="#000066">{<font color="#FFFFFF">[src.title]<font color="#000066">}</font></font><font color=#999999>{[src.rank]} [src.name] OOC:<font color = [textcolor]> [s_smileys(T)]"}
src.afk_time = 0
src.say_delay ++
src.afk_time = 0
spawn(100) src.say_delay = 0
spawn(100) src.muted = 0
mob/PC/verb/Emote(T as text)
set category = "Channels"
var/list/L
L = list("font size")
if(!src.GMLevel)
if(World_Mute == 1)
src << "The world is muted!"
return
if(Channel_Mute && !src.GMLevel)
src << "All Chat Channels are Muted!"
return
if(src.muted)
src << "You have been muted!"
return
if(src.say_delay >= 3)
alert("Flood Supression: You must wait 8 seconds before using Emote again.")
src.spammed ++
src.AUTO_BAN()
src.muted = 1
sleep(300)
src.muted = 0
sleep(1200)
src.spammed = 0
return
for(var/X in L)
if(findtext(T,X))
alert("You may not change your font size.")
return
if(isnull(T) | T == "" | !T)
alert("Your message may not be blank.")
return
if(lentext(T) > 50)
alert("Your message can not exceed 50 characters.")
return
T = html_encode(T)
ChatLog(src,"Emote: [T]")
for(var/client/C)
if(C.mob.ooc_on)
C << {"<font color="#0099CC">[src.name] [T]"}
src.say_delay += 1
sleep(80)
src.say_delay = 0
src.muted = 0
Problem description:
i have pointed out my problem how ever this isn't really the afk check that i wanted the one i want is the one i can turn on and off manually so ppl can afk train for a certain amount of time so if any1 has the coding for this afk check or can make me the afk check i am looking for i would really appreciate it.
I would really suggest you start by reading the byond guide(http://www.byond.com/docs/guide/) and use the reference(http://www.byond.com/docs/ref/).
As the error already tells you what is wrong. You got two OOC verbs in your game those two are the same hence why the error.
As i already recald some people have already given you a answers to your question.
Beside the points copying and pasting isn't something you should do.
~Ndangerman