Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #26  
Old 01-26-2012, 05:55 AM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Alright, so I'm using:
PHP Code:
new GuiShowImgCtrl("Arm_Inventory_IconBox_" temp.v) { 
          
new_x_position
          
new_y_position 10
          
image "armageddon_inventory-iconbox.gif";
          
mode 1;
          new 
GuiShowImgCtrl("Arm_Inventory_Icon_" temp.v) { 
            
image search_list[temp.v].image
            
0// Since it's a child of 'IconBox' it's x/y will be relative. 
            
22// It should also draw above the icon box as well. 
            
mode 1;
          } 
      } 
but anything like this will not make it go away later in a different function.
And yes, I know I don't need 99999.
PHP Code:
for (v=0;v<99999;v++) {
    
Arm_Inventory_IconBox_(@temp.v).hide();
    
Arm_Inventory_Icon_(@temp.v).hide();

PHP Code:
for (v=0;v<99999;v++) {
    
"Arm_Inventory_IconBox_"(@temp.v).hide();
    
"Arm_Inventory_Icon_"(@temp.v).hide();

PHP Code:
for (v=0;v<99999;v++) {
    (
"Arm_Inventory_IconBox_"@temp.v).hide();
    (
"Arm_Inventory_Icon_"@temp.v).hide();

destroy() is what I really want, but it doesn't work either in a diff funciton.

Also tried doing it OP way with addcontrol, and setting them as this commands to call destroy later, but also didnt work.

PHP Code:
for (v=0;v<player.weapons.size();v++) {
    
this.("weapon"@temp.v).clearControls();
    
this.("shadow"@temp.v).clearControls();

I tried destroy and hide as well. Was just hoping with clearControls.

P.S.
The way I was doing it in my OP, I did have to add addcontrol for it to work like that. After adding that, it showed up fine. I just changed it to this way thinking it would be easier to make it disappear in a different function. :/
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...



Last edited by sssssssssss; 01-26-2012 at 06:15 AM..
Reply With Quote
 


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 10:30 AM.


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