Thread: Scripted RC
View Single Post
  #1  
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