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-19-2005, 04:37 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Client-RC Addition: Rights Window

Ajira and myself have been making improvements and additions to the Client-RC, so we decided we would release one of the more important additions, the rights window.

This is just your standard window that displays, and allows you to alter, the rights of a player, providing you have the proper credentials.

To add this rights window to your current Client-RC, add the RightsWindow weapon to staff members who have the ability to edit player's rights, and put the following code in your RemoteControl_Chat.onAction event:

NPC Code:
if (text.starts("/openrights")) {
RightsWindow.OpenRightsWindow(text.substring(11, -1).trim());
}




Enjoy,
Okiesmokie
Attached Files
File Type: txt weaponRightsWindow.txt (5.7 KB, 224 views)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #2  
Old 02-19-2005, 04:40 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
=D
Hope you guys like it or something. o_O
I realize the way it sets the rights is not that good, but it was used for debugging and IMO is an effective way of doing it.
Reply With Quote
  #3  
Old 02-20-2005, 04:20 AM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
DOesn't seem to do anything...
Reply With Quote
  #4  
Old 02-20-2005, 07:46 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Doahh_p2p
DOesn't seem to do anything...
Are you adding what I said to add to the client-rc? and typing: /openrights ACCOUNTNAME?

And do you have the new engine enabled on your server?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #5  
Old 02-20-2005, 08:43 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by ApothiX
Are you adding what I said to add to the client-rc? and typing: /openrights ACCOUNTNAME?

And do you have the new engine enabled on your server?

He is trying it on D3D, I'm assuming.
Reply With Quote
  #6  
Old 02-20-2005, 05:29 PM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
Quote:
Originally Posted by ApothiX
Are you adding what I said to add to the client-rc? and typing: /openrights ACCOUNTNAME?

And do you have the new engine enabled on your server?
Yes and Yes

Quote:
Originally Posted by Gambet
He is trying it on D3D, I'm assuming.
No it's my test Server
and DD3D isn't 3D yet XP
Reply With Quote
  #7  
Old 02-20-2005, 05:32 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 Gambet
He is trying it on D3D, I'm assuming.
There is no Doomsday3D.
__________________
Liek omigosh.

Reply With Quote
  #8  
Old 02-20-2005, 05:42 PM
Doahh_p2p Doahh_p2p is offline
Developer
Join Date: Oct 2004
Posts: 187
Doahh_p2p will become famous soon enough
Quote:
Originally Posted by Ajira
There is no Doomsday3D.
Yet
Reply With Quote
  #9  
Old 02-20-2005, 07:40 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Oh, with all the talk about it I thought it was up already. Well, people will most likely lose interest once it gets started, sort of like what happened with Mushia. We just got to get organized I suppose.

Anyways, I havnt tested this right adder yet, but I'll try it later.
Reply With Quote
  #10  
Old 03-10-2005, 12:54 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
Pretty nice, can you do the same with getting comments?
Reply With Quote
  #11  
Old 03-10-2005, 02:05 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by KuJi
Pretty nice, can you do the same with getting comments?
I already made it, but I got removed from the server I scripted it on and don't feel like remaking it. Comments are extremely easy. Just use requesttext("comments",account); .

Edit: I realize there was a bug with this script and forgot about it. It appears that the right name we used for "Change Staff Accounts" was wrong. We accidentally used "changeaccounts". It should be "changestaffaccounts". You'll find it in one of the arrays in the onCreated() block.
__________________
Liek omigosh.

Reply With Quote
  #12  
Old 03-10-2005, 04:31 AM
Sky Sky is offline
GK Manager
Sky's Avatar
Join Date: Sep 2002
Location: PA, USA
Posts: 622
Sky is a glorious beacon of lightSky is a glorious beacon of lightSky is a glorious beacon of light
Send a message via AIM to Sky
Quote:
Originally Posted by KuJi
Pretty nice, can you do the same with getting comments?

or... player attributes... =o
__________________
Sky
Reply With Quote
  #13  
Old 03-10-2005, 04:33 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Sky
or... player attributes... =o
Currently, no. The "GUI Scripts" and "Playerflags" properties currently only work on 3d servers. You could do this however if you were to manually get the players weapons then add them to a list, but you would not be able to edit the attributes of offline players. I also do not see how you would get a list of the player's flags.
__________________
Liek omigosh.

Reply With Quote
  #14  
Old 03-10-2005, 04:39 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
Great job, what about a tile editor? :-D
Reply With Quote
  #15  
Old 03-10-2005, 10:07 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
Alright, I tried to make a comments window. I think I did pretty well for the first day of using gscript2. (I made it last night, so thats considered 1st day).

Today will be my second. And, if you guys can fix it up and repost it. I will be really thankful, but it works fine right now.


Also, like the rights one (Copies):
To add this comments window to your current Client-RC, add the CommentsWindow weapon to staff members who have the ability to edit player's comments, and put the following code in your RemoteControl_Chat.onAction event:

NPC Code:

if (text.starts("/opencomments")) {
CommentsWindow.OpenCommentsWindow(text.substring(1 3, -1).trim());
}

Attached Files
File Type: txt weaponCommentsWindow.txt (2.2 KB, 143 views)
Reply With Quote
  #16  
Old 03-10-2005, 10:42 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 KuJi
Alright, I tried to make a comments window. I think I did pretty well for the first day of using gscript2. (I made it last night, so thats considered 1st day).

Today will be my second. And, if you guys can fix it up and repost it. I will be really thankful, but it works fine right now.


Also, like the rights one (Copies):
To add this comments window to your current Client-RC, add the CommentsWindow weapon to staff members who have the ability to edit player's comments, and put the following code in your RemoteControl_Chat.onAction event:

NPC Code:

if (text.starts("/opencomments")) {
CommentsWindow.OpenCommentsWindow(text.substring(1 3, -1).trim());
}

=/
That looks exactly like the one I made. What server do you work on?

Edit: Only things that are different are a few GUI changes.

I could be mistaken, and I hope I am. If so, good job for your first day of using GScript2. o_O
__________________
Liek omigosh.

Reply With Quote
  #17  
Old 03-11-2005, 12:07 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
I only work on Graal X, my own server. I just edited your rights one. lol. how will ban work, what text do you get their?
Reply With Quote
  #18  
Old 03-11-2005, 01:11 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by KuJi
I only work on Graal X, my own server. I just edited your rights one. lol. how will ban work, what text do you get their?
Then I probably am mistaken, sorry. I never tried ban, but you probably just requesttext "ban".
__________________
Liek omigosh.

Reply With Quote
  #19  
Old 03-11-2005, 01:15 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
Then I guess first line is the check or wateva, and the second etc.. is reason?
Reply With Quote
  #20  
Old 03-11-2005, 01:28 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by KuJi
Then I guess first line is the check or wateva, and the second etc.. is reason?
Not sure. Experiment with it. Just have it enter what it returns into a text box or something.
__________________
Liek omigosh.

Reply With Quote
  #21  
Old 03-11-2005, 04:05 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
Uhm, my question is:
How to align things? I am having major problems doing so.

Last edited by KuJi; 03-11-2005 at 04:34 AM..
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 10:03 PM.


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