Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Rescripting the Playerlist (https://forums.graalonline.com/forums/showthread.php?t=57414)

ApothiX 02-01-2005 05:11 AM

Editing the Playerlist Script
 
I remember reading somewhere this was possible, but I have no idea how.

On the 3.04 client, you used to have the "Playerlist" weapon in your inventory, so we tried using requesttext("weapon", "Playerlist"); and like a hundred other names for the weapon, to get it, but we got a "weapon does not exist" error message.

Any information regarding rescripting the playerlist would be much appreciated.

falco10291029 02-01-2005 05:18 AM

well you're best off doing it from scratch. if you just want it to be a limited functionality list just use allplayerscount, and allplayers[i], from there it's easy. If you want it to be full functionality of the current one I am sure that it's possible, you will just have a big script to make :-/

ApothiX 02-01-2005 05:22 AM

Quote:

Originally Posted by falco10291029
well you're best off doing it from scratch. if you just want it to be a limited functionality list just use allplayerscount, and allplayers[i], from there it's easy. If you want it to be full functionality of the current one I am sure that it's possible, you will just have a big script to make :-/

The playerlist is already a weapon, and I know it's possible to rescript it, so there isn't much point in me recreating one from scratch

HoudiniMan 02-01-2005 05:54 AM

Quote:

Originally Posted by ApothiX
The playerlist is already a weapon, and I know it's possible to rescript it, so there isn't much point in me recreating one from scratch

If it's already a weapon, is it also already in NC?

Probably obvious and already checked in there, but ya never know.

ApothiX 02-01-2005 06:39 AM

Quote:

Originally Posted by HoudiniMan
If it's already a weapon, is it also already in NC?

Probably obvious and already checked in there, but ya never know.

That was the first thing we did ;)

Skyld 02-01-2005 05:54 PM

Quote:

Originally Posted by ApothiX
so we tried using requesttext("weapon", "Playerlist"); and like a hundred other names for the weapon, to get it, but we got a "weapon does not exist" error message.

I thought requesttext(); asked the server for things..?
The playerlist is a scripted part of the client, I think.

Ajira 02-01-2005 10:09 PM

Quote:

Originally Posted by Skyld
I thought requesttext(); asked the server for things..?
The playerlist is a scripted part of the client, I think.

Well, we thought it may have been a clientside weapon script held in NC, that's why we used it. Also, I think Okie meant to title the thread "Editing the Playerlist Script".

ApothiX 02-01-2005 10:19 PM

Quote:

Originally Posted by Ajira
Also, I think Okie meant to title the thread "Editing the Playerlist Script".

Yes, that is a more suitable title. It was late when I wrote that ;)

Curt1zzle 02-01-2005 10:42 PM

I'm thinking the script for the playerlist was built into the client.

When someone says it's a script, they don't mean GScript.... At least I don't believe that's how it is. It's...impossible simply using GScript.

Stefan, back me up?

Python523 02-01-2005 11:58 PM

Quote:

Originally Posted by Curt1zzle
I'm thinking the script for the playerlist was built into the client.

When someone says it's a script, they don't mean GScript.... At least I don't believe that's how it is. It's...impossible simply using GScript.

Stefan, back me up?

You can easily rescript it with the new engine.

Rick 02-02-2005 12:19 AM

Quote:

Originally Posted by Python523
You can easily rescript it with the new engine.

How?

Slash-P2P 02-02-2005 12:22 AM

I bet it will show up under 'GUI Scripts' once the scripted RC is enabled.

Ajira 02-02-2005 01:44 AM

Quote:

Originally Posted by Slash-P2P
I bet it will show up under 'GUI Scripts' once the scripted RC is enabled.

How is the script accessed to begin with?

HoudiniMan 02-02-2005 01:52 AM

Quote:

Originally Posted by Ajira
How is the script accessed to begin with?

I would check your Graal folder, if it's at all editable yet.

Ajira 02-02-2005 02:24 AM

Quote:

Originally Posted by HoudiniMan
I would check your Graal folder, if it's at all editable yet.

I've checked before, but I guess checking again couldn't hurt. o_O

ApothiX 02-02-2005 05:32 AM

Quote:

Originally Posted by HoudiniMan
I would check your Graal folder, if it's at all editable yet.

Why would it be in your graal folder? It would be per-server if it's edited.

I have figured out how to completely rescript it, but I don't know how to access the current script. Loriel, is that possible?


(To rescript it, you could do the following:)
NPC Code:
PlayerList_Window.destroy();
new GuiWindowCtrl(PlayerList_Window) {
// Stuff here
}


atleast in theory, it should work, haven't tried it yet.

Admins 02-15-2005 06:34 PM

1 Attachment(s)
I have attached the latest version of the scripted playerlist, with a guild section. Add it as weapon named "-Playerlist" and add it to your inventory, then it will replace the default playerlist which is compiled into the exe.
It is currently not possible to know if a PM is a mass PM because the script is not allowed to access the PM text itself, but I will add a function for being able to know it and display a blue bubble instead.
We are working on a far superior playerlist for v2.3 and v3.1 with the possibilty to see players on other servers, but this script might still be interesting to make staff tools or special group chats. It is also planned to enable new scripting engine and GUI stuff in v2.

Skyld 02-15-2005 10:51 PM

Quote:

Originally Posted by Stefan
It is also planned to enable new scripting engine and GUI stuff in v2.

Purely out of interest, how will that work?

ApothiX 02-16-2005 12:36 AM

Quote:

Originally Posted by Stefan
I have attached the latest version of the scripted playerlist, with a guild section. Add it as weapon named "-Playerlist" and add it to your inventory, then it will replace the default playerlist which is compiled into the exe.
It is currently not possible to know if a PM is a mass PM because the script is not allowed to access the PM text itself, but I will add a function for being able to know it and display a blue bubble instead.
We are working on a far superior playerlist for v2.3 and v3.1 with the possibilty to see players on other servers, but this script might still be interesting to make staff tools or special group chats. It is also planned to enable new scripting engine and GUI stuff in v2.

Oh yes, mine was close *cough* :P

falco10291029 02-16-2005 12:40 AM

I need to learn how to use the gui commands they'd really hbe helpful. I'm starting to understand how it works but not to the extent to use it :(

ApothiX 02-16-2005 02:32 AM

Quote:

Originally Posted by falco10291029
I need to learn how to use the gui commands they'd really hbe helpful. I'm starting to understand how it works but not to the extent to use it :(

One word: Practise.

falco10291029 02-16-2005 02:41 AM

How does one practice something that one has no ability to do?

ApothiX 02-16-2005 07:51 PM

Quote:

Originally Posted by falco10291029
How does one practice something that one has no ability to do?

Read the documentation, and apply it to your work?

falco10291029 02-16-2005 10:31 PM

The documentation contains only the commands, not what they do. Reading example i've tried, anjd some format things I do not get.

Arkan1k 02-17-2005 12:27 AM

Just reference to other scripts. Play with their values. Then eventually start changing the Gui control type, playing with new commands.
If you come across any commands you don't understand, play with them. Insert them, change their values, see what changes they make.
It is essentially practice. And it does work. You just have to want to learn.

falco10291029 02-17-2005 01:50 AM

Actually I can't, they dont work for me for some odd reason. the scripted rc doesnt even work. No one can figure out why.

ApothiX 02-17-2005 05:30 AM

Quote:

Originally Posted by falco10291029
The documentation contains only the commands, not what they do. Reading example i've tried, anjd some format things I do not get.

The commands are all pretty much straight-forward...


Quote:

Originally Posted by falco10291029
Actually I can't, they dont work for me for some odd reason. the scripted rc doesnt even work. No one can figure out why.

Do you have the new engine enabled on your server?

falco10291029 02-17-2005 10:11 PM

I don't mean to think you stupid, but the error reporter only works on servers with GS2 enabled :whatever:

Ajira 02-17-2005 10:15 PM

Has anyone edited the RC script at all and could have possibly caused it to break?

adam 02-18-2005 04:35 PM

Let's see, how does one get and learn GS2

Get on a server with GS2 and practice.

To get GS2 on your server

You need a good scripting team, that can do GS2

To get a good scripting team that can do GS2

They need to practice with GS2

To practice with GS2

they need a server with GS2

To get a server with GS2

they need a good scripting team that can do GS2

....

....

....

maximus_asinus 02-18-2005 04:50 PM

Quote:

Originally Posted by adam
Insert Vicious Circle.

OR you can just purchase a server and practice. You don't need to be good at it in the very beginning.

falco10291029 02-18-2005 05:24 PM

I have a server with GS@, i got the rc script straight from the document stefanb provided, and tried it on two servers. As for practicing I don't have time because Im busy worrying aobut what to do about all the damned bugs.

Doahh_p2p 02-18-2005 05:25 PM

Quote:

Originally Posted by falco10291029
I have a server with GS@, i got the rc script straight from the document stefanb provided, and tried it on two servers. As for practicing I don't have time because Im busy worrying aobut what to do about all the damned bugs.

Did you look at what people have said?

Did you change visible = false; to true?

falco10291029 02-18-2005 05:34 PM

Of course I have. All I see however is this little red thing in the lower left corner of the creen. Besides everyone else can see the rc.

Nitro2030ce 02-18-2005 10:24 PM

the rc on my server was defaulted to true

ApothiX 02-19-2005 03:08 AM

Quote:

Originally Posted by falco10291029
All I see however is this little red thing in the lower left corner of the creen.

Then that is NOT the RC directly recieved from Stefan.

Quote:

Originally Posted by falco10291029
Besides everyone else can see the rc.

Then it is not a bug in the RC. Why not ask other staff members what they have to do to open it up?

(I hope you are using the 3.1 client, aswell. Otherwise, I will have to shoot you.)

falco10291029 02-19-2005 01:42 PM

They all just fire the weapon called RC. When I do it does nothing. I of course am using 3.1 when i try it.

Velox Cruentus 03-06-2005 08:19 PM

Know what this makes me think of... Poor Stefan, with the global playerlist... He'll be cluttered with messages all the time.

Something I see practical in this, however, is letting all the buddy's who're online to be put on the list -- Like that, you can see if they're on at all. Otherwise, 300 people on the playerlist would be a tweed bit annoying.


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

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