Thread: Time Problem
View Single Post
  #12  
Old 11-05-2006, 04:50 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
As well as not using quotes, you should not be using getnpc(). For the new scripting engine, we use findnpc():
PHP Code:
with (findNPC("NameOfNPC"))
{
  
// foo

Also inside with () blocks, when you want to retrieve this. flags from outside of the with () block, you must use thiso.:
PHP Code:
with (findNPC("Control-Weather"))
{
  
this.rights.lastcheckedmoisture thiso.hour;
  
// etc

Reply With Quote