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 08-27-2006, 02:16 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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";

__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 08-27-2006, 03:30 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Replaceani is only for replacing the animation itself, without parameters. You can use gani attributes (ATTR1-30, player.attr[1-30]) for customization.
Reply With Quote
  #3  
Old 08-27-2006, 06:27 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
oh, ok Thanks stefan :]
__________________
Deep into the Darkness peering...
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 03:21 PM.


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