Graal Forums

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

[email protected] 03-19-2008 03:56 PM

new GuiShowImgCtrl()
 
Quote:

playerlook = bool;

should show my player right, it doesnt!!!! :confused:

http://wiki.graal.net/index.php/Crea...lient/TShowImg

found a fix though!!!
PHP Code:

              for (temp.ji)
                {
                  if (
j.type() == 3)
                    {
                      for (
temp.0temp.j[1]; temp.k++)
                        
actor.(j[0][k]) = playero.(j)[k];
                      continue;
                    } else {
                      
temp.data playero.("img");
                      if (
data != null)
                         
actor.(@ (!= "shield""img":"")) = data;
                    }
                } 


Chompy 03-19-2008 04:20 PM

an example:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
with(findimg(200)) {
    
playero.x;
    
playero.y;
    
playerlook true;
    
ani playero.ani;
    
dir playero.dir;
    
layer 2;
  } 

of a way playerlook can be used

Well, GuiShowImgCtrl should inheritance all variables from TShowImg though.. weird

[email protected] 03-19-2008 04:22 PM

i am using it inside a gui [GuiShowImgCtrl]

zokemon 03-19-2008 04:50 PM

GuiShowImgCtrl is actually a container for a TShowImg which can be accessed from the GuiShowImgCtrl.showimg object.

So try GuiShowImgCtrl.showimg.playerlook = true;

The only reason most of the other variables work without needing to type .showimg is because Stefan added shortcuts for simplicity's sake.

[email protected] 03-19-2008 04:56 PM

[GuiShowImgCtrl].showimg.playerlook?

Inverness 03-19-2008 08:08 PM

Quote:

Originally Posted by [email protected] (Post 1380800)
[GuiShowImgCtrl].showimg.playerlook?

Yes basically. TheObject.showimg.playerlook = true;
http://wiki.graal.net/index.php/Crea...GuiShowImgCtrl


All times are GMT +2. The time now is 12:49 PM.

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