proc
Islava(dx,dy,dz)
var/result=0
var/turf/lava/L1 = istype(/turf/lava, locate(dx, dy, dz))
if(L1)
result=1
if(!result)
var/turf/Qt = locate(dx,dy,dz)
if(Qt)
if(Qt.underlays.Find('icons/lava.dmi'))
result=1
for(var/Uu in Qt.underlays)
var/t="[Uu:icon]"
if(t=="icons/lava.dmi")
result=1
return result
If u can see something i dont(im not a coder) thx for the help.
P.S. Thats the Islava code and it calls 32k times in a second as soon as someone logs in