Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-08-2007, 07:22 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
Exclamation New NC commands

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.
__________________
Skyld
Reply With Quote
 


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 07:51 AM.


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