ID:176378
 
This is supposed to be a button to tell peeps your AFK and add an overlay for AFK.

mob
verb
AFK()
if (afk == 1)
afk = 0
usr.overlay += "AFK.dmi"
world << "[usr] is back"
else
afk = 1
usr.overlay += "AFK.dmi"
world << "[usr] is AFK"

mob/var/overlay = ""
mob/var/afk = "0"


Everything works except the overlay. Please help me.
mob
verb
AFK()
if (usr.afk == 1)
usr.afk = 0
<font color = red>usr.overlay -= 'AFK.dmi'</font>
world << "[usr] is back"
else
usr.afk = 1
usr.overlay += 'AFK.dmi'
world << "[usr] is AFK"
In response to Siientx
Thanks :), but it still isn't working. Is there another code I have to put in for the game to recognize the .dmi file. Like the turf files have to be added before you can put them on the map. In other words that is the only place in my game that says AFK.dmi should it be somewhere else.
In response to Jnco904
bump. please help me.

*edit
sorry
In response to Jnco904
Dont ever bump after two hours, wait at least a few days.