There are two new NC commands in the latest npcserver version:
/scripthelp and
/scriptscan. They help by providing information about script objects, functions and variables, and also allow scanning scripts for certain text.
The
/scripthelp command returns information about object functions and expected parameters to RC, i.e. if you want to find out more about functions available to TServerNPC objects, you would type
/scripthelp TServerNPC.
Secondly, you can also now scan scripts on the server for given text using
/scriptscan.
/scriptscan expects the location to search (either "weapons", "classes", "npcs", "levels" or "all") and the text to search for. For example, running
/scriptscan all checkAdminRight on Rudora returns:
HTML Code:
Scanning for 'checkAdminRight' in all:
Commands:
9: case "summon":
10: {
>11: if (player.checkAdminRight("Summon"))
12: {
13: temp.player = findPlayer(temp.tok[1]);
14:
15: if (temp.player != NULL)
These should make it easier to find help on objects and to find things in scripts. If these functions do not work, you may need to restart your NPC-Server.