Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showing a NPC Head on Map (https://forums.graalonline.com/forums/showthread.php?t=134268828)

sssssssssss 10-13-2013 03:08 AM

Showing a NPC Head on Map
 
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)

PHP Code:

 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;

      
temp.hx;
      
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.

fowlplay4 10-13-2013 03:54 AM

set partx to 0

sssssssssss 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.


All times are GMT +2. The time now is 01:16 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.