Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   replaceani attr question (https://forums.graalonline.com/forums/showthread.php?t=68375)

Angel_Light 08-27-2006 02:16 AM

replaceani attr question
 
I'm trying to use replace ani with thr attrbutes but I have no success

heres what I have

PHP Code:

new GuiRadioCtrl(Equip_Scroll_1_Button) {
useownprofile true;
profile       "GuiBlueRadioProfile";
position      "16 35";
};

new 
GuiButtonCtrl(Equip_Equip) {
  
profile  "GuiBlueButtonProfile";
  
position "250 95";
  
extent   "40 25";
  
text     "Equip";
};

function 
Equip_Equip.onAction() {
  
setani("niromia_idle",client.pshield,client.psword);
  
replaceani("niromia_idle",client.pshield,client.psword);
  
replaceani("niromia_walk",client.pshield,client.psword);
}

function 
Equip_Scroll_1_Button.onAction() {
  
client.pshield "omega_p_shield.png";
  
client.psword "omega_crystalis_sword.png";



Admins 08-27-2006 03:30 PM

Replaceani is only for replacing the animation itself, without parameters. You can use gani attributes (ATTR1-30, player.attr[1-30]) for customization.

Angel_Light 08-27-2006 06:27 PM

oh, ok Thanks stefan :]


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

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