mob/var/fg = 0
mob/proc/fghap()
spawn(180)
usr.fg = 0
atom/var/g = 0
area/
goldrespawn
luminosity = 0
g = 35
Entered(mob/M)
..()
if(M.fg == 0)
usr << "You Find Some Gold!"
var/a = new/obj/items/gold(M.loc)
a:g = src.g
M.fg = 1
M.fghap()
goldrespawn
luminosity = 0
g = 65
Entered(mob/M)
..()
if(M.fg == 0)
usr << "You Find Some Gold!"
var/a = new/obj/items/gold(M.loc)
a:g = src.g
M.fg = 1
M.fghap()
sprespawn
luminosity = 0
Entered(mob/M)
..()
if(M.fg == 0)
M << "You Find A Strange Potion!"
new/obj/items/strange_potion(M.loc)
M.fg = 1
M.fghap()
Problem description:
this is to give a player treasure when they step on a certain square, but it doesnt work, it doesnt say anything or give anything
plz help