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-01-2005, 05:11 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")

Last edited by ApothiX; 02-01-2005 at 10:18 PM.. Reason: Better Title
Reply With Quote
  #2  
Old 02-01-2005, 05:18 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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 :-/
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #3  
Old 02-01-2005, 05:22 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #4  
Old 02-01-2005, 05:54 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
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.
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #5  
Old 02-01-2005, 06:39 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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
__________________


[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-01-2005, 05:54 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
__________________
Skyld
Reply With Quote
  #7  
Old 02-01-2005, 10:09 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 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".
Reply With Quote
  #8  
Old 02-01-2005, 10:19 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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
__________________


[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-01-2005, 10:42 PM
Curt1zzle Curt1zzle is offline
Starting not to love you
Curt1zzle's Avatar
Join Date: Sep 2003
Posts: 3,669
Curt1zzle has a spectacular aura about
Send a message via AIM to 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?
__________________

This message has been deleted by Sam. Reason: you should better stop it now
Reply With Quote
  #10  
Old 02-01-2005, 11:58 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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.
Reply With Quote
  #11  
Old 02-02-2005, 12:19 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
Quote:
Originally Posted by Python523
You can easily rescript it with the new engine.
How?
Reply With Quote
  #12  
Old 02-02-2005, 12:22 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
I bet it will show up under 'GUI Scripts' once the scripted RC is enabled.
Reply With Quote
  #13  
Old 02-02-2005, 01:44 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 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?
Reply With Quote
  #14  
Old 02-02-2005, 01:52 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
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.
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #15  
Old 02-02-2005, 02:24 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 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
Reply With Quote
  #16  
Old 02-02-2005, 05:32 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #17  
Old 02-15-2005, 06:34 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 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.
Attached Files
File Type: txt playerlist_classic.txt (15.8 KB, 296 views)
Reply With Quote
  #18  
Old 02-16-2005, 12:40 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #19  
Old 02-16-2005, 02:32 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #20  
Old 02-16-2005, 02:41 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
How does one practice something that one has no ability to do?
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #21  
Old 02-16-2005, 07:51 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #22  
Old 02-16-2005, 10:31 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
The documentation contains only the commands, not what they do. Reading example i've tried, anjd some format things I do not get.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #23  
Old 02-17-2005, 05:30 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #24  
Old 02-17-2005, 12:27 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 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.
__________________
[ Delph ]
Reply With Quote
  #25  
Old 02-17-2005, 01:50 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #26  
Old 02-17-2005, 10:11 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I don't mean to think you stupid, but the error reporter only works on servers with GS2 enabled
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #27  
Old 02-17-2005, 10:15 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Has anyone edited the RC script at all and could have possibly caused it to break?
Reply With Quote
  #28  
Old 02-18-2005, 04:35 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
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

....

....

....
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #29  
Old 02-18-2005, 04:50 PM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,746
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
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.
__________________
Save Classic!
Reply With Quote
  #30  
Old 02-18-2005, 05:24 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #31  
Old 02-18-2005, 05:25 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 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?
Reply With Quote
  #32  
Old 02-18-2005, 05:34 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #33  
Old 02-19-2005, 03:08 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #34  
Old 02-18-2005, 10:24 PM
Nitro2030ce Nitro2030ce is offline
Canadian
Nitro2030ce's Avatar
Join Date: Apr 2004
Location: Ontario, Canada
Posts: 189
Nitro2030ce is on a distinguished road
Send a message via AIM to Nitro2030ce Send a message via MSN to Nitro2030ce
the rc on my server was defaulted to true
__________________
http://forums.graalonline.com/forums/image.php?type=sigpic&userid=3500&dateline=1182349  229
Reply With Quote
  #35  
Old 02-19-2005, 01:42 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #36  
Old 03-06-2005, 08:19 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
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.
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 06:51 AM.


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