Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sendtext / RequestText Parameters (https://forums.graalonline.com/forums/showthread.php?t=71876)

godofwarares 02-02-2007 12:12 AM

SendText / RequestText Parameters!
 
Here are a bunch of requesttext parameters for you!:

NAME: clientrc
PARAM: INTEGER 0 (To shut down ClientRC) / 1 (To start ClientRC)
CLIENTRC: No
[I]DESC: This runs ClientRC. It will only start if you have rights to the server and your IP is the same as in the rights window.

NAME: list
PARAM: NULL
CLIENTRC: No
DESC: Doesn't seem to do anything on regular scripts. It should return the server list as an array.

NAME: simplelist
PARAM: NULL
CLIENTRC: No
DESC: Simpler version of 'list'.

NAME: upgradeinfo
PARAM: NULL
CLIENTRC: No
DESC: Should return the upgrade information for the current player, but doesn't seem to do anything . . .

NAME: bantypes
PARAM: NULL
CLIENTRC: Yes
DESC: Should return the ban types for players, but like the others, it doesn't return anything >_<

NAME: localbans
PARAM: NULL
CLIENTRC: Yes
DESC: Returns the local bans of the server, But doesn't seem to return anything when I test it.

NAME: pmservers
PARAM: NULL
CLIENTRC: No
DESC: Returns all the servers listed on Login.

NAME: pmserverplayers
PARAM: STRING servername
CLIENTRC: No
DESC: I think it returns an array of players? It doesn't seem to do anything when I tested it . . .

NAME: pmunmapserver
PARAM: STRING servername
CLIENTRC: No
DESC: No clue? =]?

NAME: pmguilds
PARAM: NULL
CLIENTRC: No
DESC: It returns all the guilds in the GuildList in the playerlist window.

NAME: pmguildplayers
PARAM: STRING guild
CLIENTRC: No
DESC: When I test it, It did nothing. I think its supposed to return an array of all the people in said guild.

NAME: pmunmapguild
PARAM: STRING guild
CLIENTRC: No
DESC: No clue =]

NAME: weaponlist
PARAM: NULL
CLIENTRC: Yes
DESC: Returns an array of all the weapons on the server!

NAME: classlist
PARAM: NULL
CLIENTRC: Yes
DESC: Returns an array of all the classes on the server!

NAME: npclist
PARAM: NULL
CLIENTRC: Yes
DESC: Returns an array of all the NPCs on the server!

NAME: weapon
PARAM: STRING weaponname
CLIENTRC: Yes
DESC: Returns an array of the contents of the weapon.

NAME: class
PARAM: STRING classname
CLIENTRC: Yes
DESC: Returns an array of the contents of the class.

NAME: npc
PARAM: STRING npcname / INT npcid
CLIENTRC: Yes
DESC: Returns an array of the contents of the NPC.

NAME: npcflags
PARAM: STRING npcname / INT npcid
CLIENTRC: Yes
DESC: Returns an array with all the flags assigned to the NPC "npcname".

NAME: options
PARAM: NULL
CLIENTRC: Yes
DESC: Returns an array of the server options.

NAME: folderconfig
PARAM: NULL
CLIENTRC: Yes
DESC: Returns an array that contains the contents of the Folder Configuration.

NAME: serverflags
PARAM: NULL
CLIENTRC: Yes
DESC: Returns an array that contains the contents of the Server Flags.

NAME: folders
PARAM: NULL
CLIENTRC: Yes
DESC: Returns an array with all the folders of the server, if it is a node (folder/subfolder), it returns as ",folder/subfolder,". Simple enough.

NAME: folder
PARAM: STRING foldername
CLIENTRC: Yes
DESC: Returns an array of the folder contents, which itself is an array which contains the file's name, the rights to the file, the size, and the date last edited.

NAME: rights
PARAM: STRING accountname
CLIENTRC: Yes
DESC: Returns an array of the rights of the player "accountname".

NAME: comments
PARAM: STRING accountname
CLIENTRC: Yes
DESC: Returns an array of the comments of the player "accountname".

NAME: playerflags
PARAM: STRING accountname
CLIENTRC: Yes
DESC: Returns an array that contains the flags of the player "accountname".

NAME: playerweapons
PARAM: STRING accountname
CLIENTRC: Yes
DESC: Returns an array that contains the weapons of the player "accountname".

NAME: playerchests
PARAM: STRING accountname
CLIENTRC: Yes
DESC: Returns an array that contains the chests opened of the player "accountname".

NAME: playerattributes
PARAM: STRING accountname
CLIENTRC: Yes
DESC: Returns an array that contains the attributes of the player "accountname".


Next Post: SENDTEXT

Note: All parameters marked with "CLIENTRC: Yes" are if you have ClientRC running, which requires rights to the server and requires the IPs to match.

Thanks to Skyld for posting
this stuff in the first place! xD <-- All I did was copy and paste, and post a few more comments to the end.

godofwarares 02-02-2007 12:16 AM

Sendtext parameters:

NAME: adminmessage
PARAM: INT playerid, STRING message
CLIENTRC: Yes
DESC: Sends an admin message to the player who's ID is "playerid".

NAME: disconnect
PARAM: INT playerid, STRING reason
CLIENTRC: Yes
DESC: Disconnects the player with the ID "playerid" with the reason "reason".

NAME: resetnpc
PARAM: STRING name / INT id, NULL
CLIENTRC: Yes
DESC: Resets an NPC

NAME: deleteweapon
PARAM: STRING name, NULL
CLIENTRC: Yes
DESC: Deletes a weapon

NAME: deleteclass
PARAM: STRING name, NULL
CLIENTRC: Yes
DESC: Deletes a class

NAME: deletenpc
PARAM: STRING name, NULL
CLIENTRC: Yes
DESC: Deletes an NPC

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Enjoy! =]

PM me for any errors you'd like me to fix. :)




-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Thanks to Skyld for posting
this stuff in the first place! xD

Skyld 02-02-2007 12:26 AM

Quote:

Originally Posted by godofwarares (Post 1272206)
These are the ones that i've found:

http://skyld.vip.graal.net/wikka.php...verRequestData

You've posted essentially what's there?

Also, things like pmunmapserver and such are instructions for manipulating the playerlist (probably the allplayers[] array); they are not returning values I do not think.

godofwarares 02-02-2007 12:29 AM

Alright, I'm making a few edits to them right now, And I think I should add a creditary note on both posts . . .

zokemon 02-02-2007 08:57 AM

You do know that you have to have rights and a matching IP to be able to do these things?

Skyld 02-02-2007 10:15 AM

Quote:

Originally Posted by zokemon (Post 1272341)
You do know that you have to have rights and a matching IP to be able to do these things?

For the ones saying "CLIENTRC: Yes".

zokemon 02-02-2007 10:42 PM

Quote:

Originally Posted by Skyld (Post 1272348)
For the ones saying "CLIENTRC: Yes".

Ahh. Right.


All times are GMT +2. The time now is 07:12 PM.

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