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 02-02-2005, 03:46 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Scripted RC

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
Attached Files
File Type: txt weaponRC.txt (7.6 KB, 772 views)
File Type: txt weaponTextEditor.txt (9.7 KB, 678 views)
File Type: txt weaponFileBrowser.txt (6.9 KB, 486 views)
Reply With Quote
  #2  
Old 02-02-2005, 03:51 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Cool.
Reply With Quote
  #3  
Old 02-02-2005, 04:07 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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?

Last edited by Ajira; 02-02-2005 at 04:36 AM..
Reply With Quote
  #4  
Old 02-02-2005, 04:50 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #5  
Old 02-02-2005, 05:07 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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]
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #6  
Old 02-02-2005, 05:33 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Is this the one that Jagen scripted?
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #7  
Old 02-02-2005, 05:45 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Datablocks can be considered specialized arrays, they are used for Graal3D.
Reply With Quote
  #8  
Old 02-02-2005, 05:53 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #9  
Old 02-02-2005, 06:25 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by ApothiX
So they're pointless to have on a classic Client-RC?
Yup.
Reply With Quote
  #10  
Old 02-02-2005, 06:26 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #11  
Old 02-02-2005, 06:48 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
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.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #12  
Old 02-02-2005, 07:14 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #13  
Old 02-02-2005, 08:41 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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," ");
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #14  
Old 02-02-2005, 11:37 PM
xManiamaNx xManiamaNx is offline
Supreme Dictator
xManiamaNx's Avatar
Join Date: Nov 2002
Location: 127.0.0.1
Posts: 385
xManiamaNx is on a distinguished road
Send a message via MSN to xManiamaNx Send a message via Yahoo to xManiamaNx
Nice, wish I could use it. How does one go about getting the new engine enabled on their server?
__________________
Maniaman

Play Maloria Now: [2.3] [3]
Maloria Website

Reply With Quote
  #15  
Old 02-02-2005, 11:46 PM
Barista Barista is offline
Registered User
Join Date: Feb 2005
Posts: 24
Barista is on a distinguished road
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.
Reply With Quote
  #16  
Old 02-03-2005, 10:54 AM
googleman googleman is offline
Registered User
googleman's Avatar
Join Date: Dec 2003
Location: Seattle, WA
Posts: 96
googleman is on a distinguished road
Not working for me.

Gscript2 enabled, using Graal v3.
Reply With Quote
  #17  
Old 02-03-2005, 02:38 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by googleman
Not working for me.

Gscript2 enabled, using Graal v3.
Then you do not have GScript2 enabled on your server.
Reply With Quote
  #18  
Old 02-03-2005, 10:17 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
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
Reply With Quote
  #19  
Old 02-04-2005, 01:31 AM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
Hopefully getting Gscript 2 enabled on my server

(Woo 100'th post!)
Reply With Quote
  #20  
Old 02-04-2005, 03:22 AM
googleman googleman is offline
Registered User
googleman's Avatar
Join Date: Dec 2003
Location: Seattle, WA
Posts: 96
googleman is on a distinguished road
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.
Reply With Quote
  #21  
Old 02-04-2005, 03:51 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by googleman
Well we do.
Obviously not if you're having problems.
Reply With Quote
  #22  
Old 02-04-2005, 04:58 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by googleman
Well we do.
What server is it?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #23  
Old 02-06-2005, 02:36 PM
XiLe XiLe is offline
Lylic < Me
XiLe's Avatar
Join Date: Dec 2002
Location: My House
Posts: 224
XiLe is on a distinguished road
Send a message via AIM to XiLe Send a message via MSN to XiLe
I have GScript2 on my server and the RC fails to work as well...
__________________
AIM: xilesaim MSN: [email protected]
I'm the Co-Owner of Atrius... If you've got questions, ask me
Reply With Quote
  #24  
Old 02-06-2005, 07:03 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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.
Reply With Quote
  #25  
Old 02-06-2005, 08:07 PM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
It works on my server
Reply With Quote
  #26  
Old 02-07-2005, 12:06 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
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.
Reply With Quote
  #27  
Old 02-07-2005, 03:15 AM
googleman googleman is offline
Registered User
googleman's Avatar
Join Date: Dec 2003
Location: Seattle, WA
Posts: 96
googleman is on a distinguished road
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.
Reply With Quote
  #28  
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
  #29  
Old 02-07-2005, 05:03 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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(..)"
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #30  
Old 03-06-2005, 04:44 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
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.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #31  
Old 03-06-2005, 06:18 PM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
X_X Log onto Bob and look at the server message
Reply With Quote
  #32  
Old 04-24-2005, 08:37 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Err

Sorry about bringing a dead thread back BUT:


The RC currently will NOT chat at all
Reply With Quote
  #33  
Old 04-25-2005, 02:20 AM
CujoDaMan CujoDaMan is offline
Shaded Legend Management
CujoDaMan's Avatar
Join Date: Aug 2004
Location: Canada, Nova Scotia
Posts: 108
CujoDaMan is an unknown quantity at this point
Send a message via AIM to CujoDaMan Send a message via MSN to CujoDaMan
Umm i don't got it working
__________________
Last Manager of Shaded Legend
Reply With Quote
  #34  
Old 04-25-2005, 04:41 AM
StanislavHunter StanislavHunter is offline
mangzilla
StanislavHunter's Avatar
Join Date: May 2004
Location: Oklahoma
Posts: 105
StanislavHunter is on a distinguished road
Send a message via AIM to StanislavHunter Send a message via MSN to StanislavHunter
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?
__________________

I'm totally Mexican.
Reply With Quote
  #35  
Old 04-25-2005, 07:50 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Ovbiously I do?

Me nor my cuzin's server was it working with. It won't send messages.
Reply With Quote
  #36  
Old 04-25-2005, 04:32 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Are you using Graal v3 to run it?
Reply With Quote
  #37  
Old 04-25-2005, 07:08 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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.
__________________
Liek omigosh.


Last edited by Ajira; 04-26-2005 at 04:48 AM.. Reason: wrong function
Reply With Quote
  #38  
Old 04-26-2005, 01:12 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
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?
Reply With Quote
  #39  
Old 04-26-2005, 01:14 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
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
__________________

Reply With Quote
  #40  
Old 04-26-2005, 01:30 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Tried --> Failed
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 08:10 AM.


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