View Full Version : Showing a NPC Head on Map

10-13-2013, 03:08 AM
Is there any odd reason this would show up the entire head img of an npc instead of the correct partx,y,w,h? (using the map released from atlantis, heavily modified though, for what its worth)

with (findimg(500 + temp.baddy.id)) {
image = temp.baddy.head;
party = temp.baddy.dir * 32;
partw = parth = 32;
alpha = temp.da;
layer = 7;
zoom = 0.5;
mode = 1;

x = temp.hx;
y = temp.hy;

temp.baddy.id does return the npc id, and if i echo temp.baddy.head it does get the correct head. Even if i echo out the partw or party it works in the echo, but it just shows up the entire head image, and not just the correct part of the image.

10-13-2013, 03:54 AM
set partx to 0

10-13-2013, 04:00 AM
Oddly enough it just "started working" when I went back. But it is better to still set that and I should have.

Even more strangely it's now showing up the heads like I want, and some npcs (only some) it shows the entire head img as well above the npc still. Very weird... I think something I'm doing might be screwy, ty fp4.