PDA

View Full Version : replaceani attr question


Angel_Light
08-27-2006, 02:16 AM
I'm trying to use replace ani with thr attrbutes but I have no success

heres what I have


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 :]