Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Client-RC Addition: Rights Window (https://forums.graalonline.com/forums/showthread.php?t=57703)

ApothiX 02-19-2005 04:37 AM

Client-RC Addition: Rights Window
 
1 Attachment(s)
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

Ajira 02-19-2005 04:40 AM

=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.

Doahh_p2p 02-20-2005 04:20 AM

DOesn't seem to do anything...

ApothiX 02-20-2005 07:46 AM

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?

Gambet 02-20-2005 08:43 AM

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.

Doahh_p2p 02-20-2005 05:29 PM

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

Ajira 02-20-2005 05:32 PM

Quote:

Originally Posted by Gambet
He is trying it on D3D, I'm assuming.

There is no Doomsday3D.

Doahh_p2p 02-20-2005 05:42 PM

Quote:

Originally Posted by Ajira
There is no Doomsday3D.

Yet

Gambet 02-20-2005 07:40 PM

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.

KuJi 03-10-2005 12:54 AM

Pretty nice, can you do the same with getting comments?

Ajira 03-10-2005 02:05 AM

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.

Sky 03-10-2005 04:31 AM

Quote:

Originally Posted by KuJi
Pretty nice, can you do the same with getting comments?


or... player attributes... =o

Ajira 03-10-2005 04:33 AM

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.

KuJi 03-10-2005 04:39 AM

Great job, what about a tile editor? :-D

KuJi 03-10-2005 10:07 PM

1 Attachment(s)
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());
}


Ajira 03-10-2005 10:42 PM

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

KuJi 03-11-2005 12:07 AM

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?

Ajira 03-11-2005 01:11 AM

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".

KuJi 03-11-2005 01:15 AM

Then I guess first line is the check or wateva, and the second etc.. is reason?

Ajira 03-11-2005 01:28 AM

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.

KuJi 03-11-2005 04:05 AM

Uhm, my question is:
How to align things? I am having major problems doing so.


All times are GMT +2. The time now is 11:46 PM.

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