Page 1 of 1

ListStatics in makeblacksmithitems.src

Posted: Sun Jun 04, 2006 9:55 pm
by qrak
in distro96 :blacksmithy:makeblacksmititems.src we can see

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
And just one small tip to be considered:
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
Same thing with resmelting items. Tongs could be used for that instead of doubleclicking forge which is impossible to dblclick if is static.
I hope you understand my english;]