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 09-23-2009, 02:24 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
Gui Rows

PHP Code:
function MyGUI_WARPER_Popup1.onSelect(entryid){
  if (
entryid == 1){
  
removerowbyid(9);
  
MyGUI_WARPER_TextList1.addrow(0,"Armageddon Spar");
  
MyGUI_WARPER_TextList1.addrow(1,"Event House");
  
MyGUI_WARPER_TextList1.addrow(2,"Guild Lobby");
  
MyGUI_WARPER_TextList1.addrow(3,"Bank");
  
MyGUI_WARPER_TextList1.addrow(4,"Shop");
  }
  if (
entryid == 2){
  
triggerserver("weapon"this.name"warpPopTwo");
  }
  if (
entryid == 3){
  
clearselection();
  
MyGUI_WARPER_TextList1.addrow(5,"Lasea");
  
MyGUI_WARPER_TextList1.addrow(6,"Treehouse Town");
  }
  if (
entryid == 4){
  
clearselection();
  
MyGUI_WARPER_TextList1.addrow(7,"Cross Castle");
  
MyGUI_WARPER_TextList1.addrow(8,"SDE GuildHouse - Indola");
  }
  if (
entryid == 5){
  
clearselection();
  
MyGUI_WARPER_TextList1.addrow(9,"Frontline");
  }

I've obviously tried clearselection() and removerow() and removerowbyid().
How do it get it to only show the certain rows on each selected entry id?
__________________
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...


Reply With Quote
  #2  
Old 09-23-2009, 02:41 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
You have to do it like:
PHP Code:
MyGUI_WARPER_TextList1.removerowbyid(9);
MyGUI_WARPER_TextList1.clearselection(); 
Reply With Quote
  #3  
Old 09-23-2009, 03: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
ahh ty
__________________
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...


Reply With Quote
  #4  
Old 10-07-2009, 07:32 PM
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
This isnt necessarily a problem with the GUI rows, but it is with the same GUI. I have this:

PHP Code:
    new GuiScrollCtrl("Stan_Window_Scroll") {
      
profile "GuiBlueScrollProfile";
      
Stan_Window_Scroll.profile.fontcolor = {0,0,0};
      
extent "300 250";
      
Stan_Window.width 2;
      
Stan_Window.height 1;
      
visible true;
      
hscrollbar "alwaysOff";
      
vscrollbar "dynamic";
    } 
also tried just
PHP Code:
profile.fontcolor = {0,0,0}; 
but it didnt work either, did the same thing.

but it changes the font color on pm's and everything. How do you get it to just change this GUI window and thats it?
__________________
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...


Reply With Quote
  #5  
Old 10-07-2009, 08:08 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Before changing any profile attributes, declare useOwnProfile as true:
PHP Code:
...
profile "GuiBlueScrollProfile";
useOwnProfile true;
... 
Reply With Quote
  #6  
Old 10-07-2009, 11:07 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
And you don't need the "Stan_Window_Scroll." Unless you're calling it outside that GUI creation.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #7  
Old 10-09-2009, 03:05 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
tank u
__________________
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...


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 05:37 AM.


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