Code: Select all
foreach item in ListItemsNearLocation(who.x, who.y, who.z, 3)
if((item.objtype == 0x0faf) || (item.objtype == 0x0fb0))
anvil_near := 1;
break;
endif
endforeach
another line should be added for static in-map forges/anvil handling:
Code: Select all
foreach item in ListStaticsNearLocation(who.x, who.y, who.z, 1)
if((item.objtype == 0x0faf) || (item.objtype == 0x0fb0))
anvil_near := 1;
break;
endif
endforeach
I hope you understand my english;]