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 07-27-2007, 08:53 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
player

so y dun't this show my player???

PHP Code:
new GuiShowImgCtrl("Test_ShowImg") {
  
10;
  
10;
  
width 60;
  
height 60;
  
playerlook true;
  
ani "walk";

instead it shows stefan [look at image, bottom right]
Attached Thumbnails
Click image for larger version

Name:	graal_1185633928.png
Views:	155
Size:	41.1 KB
ID:	42193  
__________________
V$:CONFL16T
Reply With Quote
  #2  
Old 07-27-2007, 12:49 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
new GuiShowImgCtrl("actor_player") {
  
10;
  
10;
  
width 60;
  
height 60;
  
ani "idle";
  
with(showimg){
    
actor.head player.headimg;
    
actor.body player.bodyimg;
    
actor.colors[0] = player.colors[0];
    
actor.colors[1] = player.colors[1];
    
actor.colors[2] = player.colors[2];
    
actor.colors[3] = player.colors[3];
    
actor.shield player.shieldimg;
    
actor.dir 2;
    
actor.attr[1] = player.attr[1];
  }

__________________
Reply With Quote
  #3  
Old 07-27-2007, 02:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Simply actor.playerlook = true would have solved the problem

Edit: And why did you do with ( showimg )?
__________________
Reply With Quote
  #4  
Old 07-27-2007, 03:25 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by cbkbud View Post
Simply actor.playerlook = true would have solved the problem

Edit: And why did you do with ( showimg )?
Old habbit
__________________
Reply With Quote
  #5  
Old 07-27-2007, 07:16 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
are u sure...? didn't work
PHP Code:
//#CLIENTSIDE
new GuiShowImgCtrl("Test_ShowImg") { 
  
10
  
10
  
width 60
  
height 60
  
actor.playerlook true
  
ani "walk"

__________________
V$:CONFL16T
Reply With Quote
  #6  
Old 07-27-2007, 08:12 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I grabbed this from an old script of mine. I found playerlook to be shifty for myself as well.

PHP Code:
function setactor() 
{
  
temp.Tailorani.actor;
  for (
i=0;i<6;i++) a.colors[i] = player.colors[i];
  
a.body player.body;
  
a.head player.head;
  
a.body player.body;
  
a.shield player.shield;

From this, you could do

PHP Code:
//#CLIENTSIDE
new GuiShowImgCtrl("Test_ShowImg"

  
10
  
10
  
width 60
  
height 60
  for (
i=0;i<6;i++) actor.colors[i] = player.colors[i]; 
  
actor.body player.body;
  
actor.head player.head;
  
actor.body player.body;
  
actor.shield player.shield;
  
ani "walk"

Should hopefully work for ya
Reply With Quote
  #7  
Old 07-28-2007, 07:27 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
no work.
PHP Code:

  this
.drawImage = function(imageData)
  {    
    new 
GuiShowImgCtrl("image_" temp.imageData[0]) 
    {
      for (
temp.objectDatatemp.imageData[1])
      {
        if (
temp.objectData[0] == "playerlook")
        {
          
actor.playerlook true;
          
actor.body player.body;
          
actor.head player.head;
          
actor.shield player.shield;
          for (
temp.0temp.6temp.i++)
          {
            
actor.colors[temp.i] = player.colors[temp.i];
          }
          continue;
        }
        ( @ 
temp.objectData[0]) = temp.objectData[1];
      }

      if (
temp.imageData[2].size() != 0)
      {
        
thiso.catchevent(this"onMouseDown"temp.imageData[2][0]);
      }
      
      
this.bringtofront();
    }
  }; 
here is how it is called

PHP Code:
  drawImage( {"image-Player", { {"position", {(thiso.backgroundSize[0] - 64), temp.newPosition[1] }}, {"extent", {4848}}, {"playerlook"} } }); 
the position and everything should work, it even reads the playerlook. Doesn't display the player look tho
__________________
V$:CONFL16T
Reply With Quote
  #8  
Old 07-28-2007, 08:35 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by WanDaMan View Post
no work.
PHP Code:

  this
.drawImage = function(imageData)
  {    
    new 
GuiShowImgCtrl("image_" temp.imageData[0]) 
    {
      for (
temp.objectDatatemp.imageData[1])
      {
        if (
temp.objectData[0] == "playerlook")
        {
          
actor.playerlook true;
          
actor.body player.body;
          
actor.head player.head;
          
actor.shield player.shield;
          for (
temp.0temp.6temp.i++)
          {
            
actor.colors[temp.i] = player.colors[temp.i];
          }
          continue;
        }
        ( @ 
temp.objectData[0]) = temp.objectData[1];
      }

      if (
temp.imageData[2].size() != 0)
      {
        
thiso.catchevent(this"onMouseDown"temp.imageData[2][0]);
      }
      
      
this.bringtofront();
    }
  }; 
here is how it is called

PHP Code:
  drawImage( {"image-Player", { {"position", {(thiso.backgroundSize[0] - 64), temp.newPosition[1] }}, {"extent", {4848}}, {"playerlook"} } }); 
the position and everything should work, it even reads the playerlook. Doesn't display the player look tho

showimg.actor.playerLook = true;
I suppose.
__________________
What signature? I see no signature?
Reply With Quote
  #9  
Old 07-29-2007, 05:12 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
You can always do actor.copyfrom(player) but that might copy some funny things.
__________________
Do it with a DON!
Reply With Quote
  #10  
Old 07-29-2007, 09:05 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Have you tried what I suggested?
__________________
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:43 AM.


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