Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-26-2015, 07:04 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Request Text Commands (requesttext)

Hey,

Adding this here as a reference


Requests marked with a ^ are special requests that might not be accessible by normal scripts, i.e. for privileged scripts such as the playerlist and serverlist.

Requests marked with * are similar in requesting as they are sending data back using sendtext, i.e. to send a new weapons list.

PHP Code:
requesttext("clientrc"int 1 or 0); - opens/closes a Client-RC session (only works if you have admin rights set up correctly on the server)

requesttext("list"NULL); - returns the serverlist (TestedDoes not work with normal scripts)
requesttext("simplelist"NULL); - returns a simplified version of the serverlist (TestedDoes not work with normal scripts)
requesttext("upgradeinfo"NULL); ^ - returns the upgrade information of the current player
requesttext
("bantypes"NULL); - returns possible ban types (Client-RC)
requesttext("localbans"NULL); - returns a list of local bans (Client-RC)

requesttext("pmservers"NULL); ^ - returns a list of public servers (used in the playerlist)
requesttext("pmserverplayers"str servername); ^ - shows the players of a given server in the playerlist
requesttext
("pmunmapserver"str servername); ^ - hides the players of a given server in the playerlist
requesttext
("pmguilds"NULL); ^ - returns a list of the guild tags currently in use
requesttext("pmguildplayers"str guildname); ^ - shows the players wearing the given guild tag in the playerlist
requesttext
("pmunmapguild"str guildname); ^ - hides the players wearing the given guild tag in the playerlist


requesttext
("weaponlist"NULL); - retrieves the weapon list from the server (Client-RC)
requesttext("classlist"NULL); - retrieves the class list from the server (Client-RC)
requesttext("npclist"NULL); - retrieves the DB NPC list from the server (Client-RC)
requesttext("weapon"str weaponname); * - returns the weapon script of the given weapon (Client-RC)
requesttext("class"str classname); * - returns the class script of the given class (Client-RC)
requesttext("npc"str npcname/int npcid); * - returns the NPC script of the given DB NPC (Client-RC)
requesttext("npcflags"str npcname/int npcid); * - returns the flag list of the given DB NPC (Client-RC)
requesttext("options"NULL); * - returns the server options (Client-RC)
requesttext("folderconfig"NULL); * - returns the folder config (Client-RC)
requesttext("serverflags"NULL); * - returns the server flags (Client-RC)
requesttext("folders"NULL); - retrieves a list of folders accessible to RC (Client-RC)
requesttext("folder"str foldername); - retrieves a list of files in the given folder (Client-RC)
requesttext("rights"str accountname); * - returns the local rights of the player (Client-RC)
requesttext("comments"str accountname); * - returns the local comments of the player (Client-RC)
requesttext("playerflags"str accountname); * - returns the script flags of the given player (Client-RC)
requesttext("playerweapons"str accountname); * - returns the weapons list of the given player (Client-RC)
requesttext("playerchests"str accountname); * - returns the chest list of the given player (Client-RC)
requesttext("playerattributes"str accountname); * - returns the basic attributes of the given player (Client-RC)
requesttext("scripthelp"str searchterm); - searches scripthelp texts for information on commands and objects (Client-RC)

requesttext("playerweapons""Skyld"); // requesting
sendtext("playerweapons""Skyld", {"Test/NPC""Foo/Bar"}); // sending a new list


sendtext("adminmessage"int playeridstr message); - sends an admin message to a player (Client-RC)
sendtext("disconnect"int playeridstr disconnectreason); - disconnects the given player ID (Client-RC)
sendtext("lister""getbanhistory"str accountname); - gets the ban history of a player's account
sendtext("lister", "staffactivity", str accountname); - gets the staff activity of a player'
s account 
__________________
Reply With Quote
  #2  
Old 05-04-2015, 05:06 AM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is just really niceMysticalDragon is just really nice
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
very nice thank you
__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote
  #3  
Old 03-02-2016, 05:05 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
There is also:

PHP Code:
sendtext("lister""getprofile"account); 
which also works for offline players.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:05 AM.


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