Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Scripted RC (https://forums.graalonline.com/forums/showthread.php?t=57428)

Admins 02-02-2005 03:46 AM

Scripted RC
 
3 Attachment(s)
This is the latest version, two weapons which you also need to add your account. Only works on servers which have the new scripting engine on serverside, only add the weapon to players with graalversion>=3.1 please

Rick 02-02-2005 03:51 AM

Cool. :D

Ajira 02-02-2005 04:07 AM

Nice. Thanks a lot Stefan. =)

Edit: It seems it's missing a few functions. DatablockEditor? FileBrowser? Is it possible for you to upload these as well?

falco10291029 02-02-2005 04:50 AM

hmm well I think i'll look throuygh them, mainly to learn some gscript2 moreso than to add them to my server (especially since my server doesnt ahve gs2 enabled yet)

EDIT: Looking at it, it wont be too easy to pick stuff out to learn, especually since my text viewer sux :(

ApothiX 02-02-2005 05:07 AM

the "add" and "delete" buttons on the Text Editor didn't work, we fixed the "add" button, but the delete still fails to work, is "deleteweapon" the correct command to be sending to delete a weapon?

Also, are weapons now called GUI Scripts, and what are the Datablocks for? o_O

[EDIT] Perhaps it is because the new commands are not yet available on the windows 3.1.4 version? (that just struck me as a possibility) [/EDIT]

osrs 02-02-2005 05:33 AM

Is this the one that Jagen scripted?

Rick 02-02-2005 05:45 AM

Datablocks can be considered specialized arrays, they are used for Graal3D.

ApothiX 02-02-2005 05:53 AM

Quote:

Originally Posted by Rick
Datablocks can be considered specialized arrays, they are used for Graal3D.

So they're pointless to have on a classic Client-RC?

Slash-P2P 02-02-2005 06:25 AM

Quote:

Originally Posted by ApothiX
So they're pointless to have on a classic Client-RC?

Yup.

Python523 02-02-2005 06:26 AM

Quote:

Originally Posted by osrs
Is this the one that Jagen scripted?

>=80% is, not much has been changed it seems since I last touched it (which was a long time ago), just more things for g3d added to it like datablocks

osrs 02-02-2005 06:48 AM

Quote:

Originally Posted by Python523
not much has been changed it seems since I last touched it (which was a long time ago)

I have noticed.

Admins 02-02-2005 07:14 PM

I have added the filebrowser, forgot that.
The npcserver doesn't have "addweapon", "deleteweapon" etc. yet, it should be changed to just do sendtext("weapon",weaponname,"//#CLIENTSIDE") or so.

ApothiX 02-02-2005 08:41 PM

Quote:

Originally Posted by Stefan
I have added the filebrowser, forgot that.
The npcserver doesn't have "addweapon", "deleteweapon" etc. yet, it should be changed to just do sendtext("weapon",weaponname,"//#CLIENTSIDE") or so.

yea, I just put: sendtext("weapon",weaponname," ");

xManiamaNx 02-02-2005 11:37 PM

Nice, wish I could use it. How does one go about getting the new engine enabled on their server?

Barista 02-02-2005 11:46 PM

Quote:

Originally Posted by xManiamaNx
Nice, wish I could use it. How does one go about getting the new engine enabled on their server?


Talk to Stefan.

googleman 02-03-2005 10:54 AM

Not working for me. :(

Gscript2 enabled, using Graal v3.

Ajira 02-03-2005 02:38 PM

Quote:

Originally Posted by googleman
Not working for me. :(

Gscript2 enabled, using Graal v3.

Then you do not have GScript2 enabled on your server.

Slash-P2P 02-03-2005 10:17 PM

It only is enabled serverside (so if you're trying to do this offline, it won't work).
Quote:

Originally Posted by Stefan
Only works on servers which have the new scripting engine on serverside


Doahh_p2p 02-04-2005 01:31 AM

Hopefully getting Gscript 2 enabled on my server

(Woo 100'th post!)

googleman 02-04-2005 03:22 AM

Quote:

Originally Posted by Ajira
Then you do not have GScript2 enabled on your server.

Well we do.

Graal v3 also freezes sometimes, causing my entire PC to lag horribly, forcing me to restart. (P4, 3 ghz, ATI Radeon x800 Pro) Plus I think it has problems looping music. That and Graal sometimes doesn't close when I think I closed it. I have to end task it.

It must be that.

Slash-P2P 02-04-2005 03:51 AM

Quote:

Originally Posted by googleman
Well we do.

Obviously not if you're having problems.

ApothiX 02-04-2005 04:58 AM

Quote:

Originally Posted by googleman
Well we do.

What server is it?

XiLe 02-06-2005 02:36 PM

I have GScript2 on my server and the RC fails to work as well...

Ajira 02-06-2005 07:03 PM

Quote:

Originally Posted by XiLe
I have GScript2 on my server and the RC fails to work as well...

Rofl. Do you guys even bother to check the script before you post here saying you have a problem? In the main Gui block, it says "visible = false;". Obviously, you should change it to "visible = true;". If it still doesn't work then you don't have GSCript2 enabled on your server.

Doahh_p2p 02-06-2005 08:07 PM

It works on my server

jake13jake 02-07-2005 12:06 AM

It's a shame I've been banned from learning about a new scripting version! Switch structures, very nice, and that's probably all I scanned through to see. If it has character arrays as well I am very happy with a new scripting version thing. OH YEA, let us not forget function parameters, that is the number one thing that has disappointed me about Graal Scripting is that I can't make my own parameters in functions. Okay, I'll go away now.

googleman 02-07-2005 03:15 AM

Quote:

Originally Posted by Ajira
Rofl. Do you guys even bother to check the script before you post here saying you have a problem? In the main Gui block, it says "visible = false;". Obviously, you should change it to "visible = true;". If it still doesn't work then you don't have GSCript2 enabled on your server.

Yes and that wasn't it. Fixed it though. There was a piece of code missing.

Arkan1k 02-07-2005 04:08 AM

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?

ApothiX 02-07-2005 05:03 AM

Quote:

Originally Posted by Arkan1k
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.

AHH finally someone else this is happening to. The Unholy Nation Dev server is doing the exact same thing, telling some people that they need to register an account, even if they have Gold and VIP. (Hopefully now Stefan will realise that it is a bug, and won't tell me that I'm wrong when I confront him about it)

Quote:

Originally Posted by Arkan1k
Oh and one question. Should "catchevent" be outside the control brackets?

It should be in the control brackets, but I think it should be: "thiso.catchevent(..)"

coreys 03-06-2005 04:44 PM

Or you might wanna see if a GS2 enabled server like Aeon Dev or mine, Domination (going to be renamed to Altea dev) will let you temp there to try out stuff.

Doahh_p2p 03-06-2005 06:18 PM

X_X Log onto Bob and look at the server message

KuJi 04-24-2005 08:37 PM

Err
 
Sorry about bringing a dead thread back BUT:


The RC currently will NOT chat at all

CujoDaMan 04-25-2005 02:20 AM

Umm i don't got it working :(

StanislavHunter 04-25-2005 04:41 AM

Quote:

Originally Posted by CujoDaMan
Umm i don't got it working :(

You need Gscript2 on your server for this to work. If you do, then bleh?

KuJi 04-25-2005 07:50 AM

Ovbiously I do?

Me nor my cuzin's server was it working with. It won't send messages.

Robin 04-25-2005 04:32 PM

Are you using Graal v3 to run it?

Ajira 04-25-2005 07:08 PM

Heh. I guess Stefan forgot to post this after he restarted the GServers. You must put requesttext("clientrc", 1); in the script for it to work, then you will see the New Client-RC message in RC. When you replace 1 with 0, it does Client-RC Disconnected.

KuJi 04-26-2005 01:12 AM

Quote:

Originally Posted by Ajira
Heh. I guess Stefan forgot to post this after he restarted the GServers. You must put sendtext("clientrc", 1); in the script for it to work, then you will see the New Client-RC message in RC. When you replace 1 with 0, it does Client-RC Disconnected.

Where do we put that?

Evil_Trunks 04-26-2005 01:14 AM

Quote:

Originally Posted by KuJi
Where do we put that?

an obvious place would be in the created block so you log into RC when you log on

KuJi 04-26-2005 01:30 AM

Tried --> Failed


All times are GMT +2. The time now is 04:15 AM.

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