Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-21-2013, 09:32 PM
Starfire2001 Starfire2001 is offline
Unholy Nation
Starfire2001's Avatar
Join Date: Dec 2010
Location: The streets.
Posts: 156
Starfire2001 will become famous soon enough
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.

Graal Script 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";

__________________
-Ph8
Reply With Quote
  #2  
Old 09-21-2013, 10:05 PM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 353
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
hello!

you can probably just make a copy of ride.gani which uses an attr[] to retrieve the horse image instead
__________________
This signature has been deleted by Darlene159.
Reply With Quote
  #3  
Old 09-22-2013, 11:41 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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.
__________________
Reply With Quote
  #4  
Old 09-23-2013, 12:23 AM
Starfire2001 Starfire2001 is offline
Unholy Nation
Starfire2001's Avatar
Join Date: Dec 2010
Location: The streets.
Posts: 156
Starfire2001 will become famous soon enough
So be it, thanks guys.
__________________
-Ph8
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:47 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.