Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Changing a showani's head and attribs? (GS2) (https://forums.graalonline.com/forums/showthread.php?t=64434)

SilentOne1988 02-28-2006 08:06 AM

Changing a showani's head and attribs? (GS2)
 
This code doesn't seem to work, I need to show several gani's at once, each with differant heads and attributes. Am I doing something wrong?
NPC Code:

for (i=0;i<3;i++){
if (this.chars[i][0] != 0){
showani(302+i*2,this.xcen+12+20*i,this.ycen+50,2,
"ci_body-idle",this.chars[i][1],this.chars[i][6],
this.chars[i][3],this.chars[i][2],this.chars[i][5],
this.chars[i][4]);
changeimgvis(302+i,6);
showtext(303+i*2,this.xcen+12+20*i,this.ycen+100," arial",
"",this.chars[i][10]);
changeimgvis(303+i*2,6);
changeimgzoom(303+i*2,.5);
with (findimg(302+i*2)){
head = thiso.chars[i][7];
attr[1] = "";
attr[2] = "";
attr[1] = "ci_body-legs.png";
attr[2] = "ci_body-basic" @ thiso.chars[i][8] @ ".png";
}
}
}



fixed.... actor.attr, actor.head, etc.

Admins 02-28-2006 02:34 PM

PHP Code:

with (findimg(302+i*2)) {
  
playerlook false;
  
actor.head thiso.chars[i][7];
  
actor.attr[1] = "";
  ...




All times are GMT +2. The time now is 03:16 PM.

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