ListStatics in makeblacksmithitems.src

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.
Locked
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

ListStatics in makeblacksmithitems.src

Post 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;]
Locked