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
  #11  
Old 02-07-2005, 04:08 AM
Arkan1k Arkan1k is offline
Delph
Join Date: Feb 2004
Location: Melbourne, Australia
Posts: 35
Arkan1k is on a distinguished road
Send a message via AIM to Arkan1k Send a message via MSN to Arkan1k
Just make a button for it:

NPC Code:
function onCreated() {
new GuiButtonCtrl("OpenRC") {
profile = "GuiButtonProfile";
x = 10;
y = screenheight - 45;
width = 80;
height = 35;
text = "RC";
catchevent(name,"onAction","on" @ name);
}
}
function onOpenRC() {
RemoteControl_Window.visible = RemoteControl_Window.visible == 0 ? 1 : 0;
}



Excuse me if there's something wrong or missing here. I'm having RC and NPC Server problems. Basically RC tells everyone who tries to log on that they need to register their account, and the NPC Server doesn't want to start. yay.

Oh and one question. Should "catchevent" be outside the control brackets?
__________________
[ Delph ]
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 06:50 AM.


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