Thread: Gani Problems
View Single Post
  #1  
Old 10-11-2006, 09:18 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Gani Problems

Ive been trying different methods of passing along params / information to ganis.. without much success I am afraid, so now I seek help from you guys.


Script:
PHP Code:
player.attr[19] = { {20, 40}, {5, 10} };
player.attr[20] = "ml_hud.gani"; 

Gani:
PHP Code:
SCRIPT
function onCreated()
{
  
this.health = { player.attr[19][0][0], player.attr[19][0][1] };
  
this.mana = { player.attr[19][1][0], player.attr[19][1][1] };

  
setTimer(.05);
}

function 
onTimeOut()
{
  
showimg(1, "@verdana@b@" @ this.account SPC "HP:" SPC this.health[0] @ "/" @ this.health[1] SPC "MP:" SPC this.mana[0] @ "/" @ this.mana[1], x + 3, y);
  
changeimgzoom(1, .5);
}
SCRIPTEND 
That should show the text:

HP: 20/40 MP: 5/10

next to all players.. but it dont, it only show for the current player, the text:

HP: 0/0 MP: 0/0

is shown next to all other players.


Ive also tried to pass the params with same attribute as the gani, but then the gani wouldnt even work at all.

PHP Code:
  player.attr[20] = { "ml_hud.gani", param1, param2, etc..}; 
I tried to use both variants WITH and WITHOUT .gani, it didnt work -at all- without it.

Any suggestions?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote