Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiShowImgCtrl and horseimg (https://forums.graalonline.com/forums/showthread.php?t=134268752)

Starfire2001 09-21-2013 09:32 PM

GuiShowImgCtrl and horseimg
 
Trying to display the player riding a horse in a GUI.

This is what I've got. It doesn't work, no horse displays. Can't figure out why. Can anyone tell me how to make it work? Thanks.

PHP Code:

new GuiShowImgCtrl("PonyViewer_Image_Pony") {
  
290;
  
65;
  
width 100;
  
height 80;
  
offsetx 40;
  
offsety 25;
  
dir 2;
  
actor.horseimg "ride.png";      
  
actor.headimg player.head;
  
actor.bodyimg player.body;
  for (
i=0i<5i++)
    
actor.colors[i] = player.colors[i];
  
ani "ride";


http://oi42.tinypic.com/nxrjlz.jpg

Jakov_the_Jakovasaur 09-21-2013 10:05 PM

hello!

you can probably just make a copy of ride.gani which uses an attr[] to retrieve the horse image instead

xAndrewx 09-22-2013 11:41 AM

it's actually an error. As Jakov mentioned- turn it in to a gani and use a param; an ATTR wouldn't be required in this instance.

Starfire2001 09-23-2013 12:23 AM

So be it, thanks guys.


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

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