Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-13-2013, 03:08 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
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.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...



Last edited by sssssssssss; 10-13-2013 at 03:25 AM..
Reply With Quote
  #2  
Old 10-13-2013, 03:54 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
set partx to 0
__________________
Quote:
Reply With Quote
  #3  
Old 10-13-2013, 04:00 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
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.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:06 AM.


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