Graal Forums  

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

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Skyld
Forum: NPC Scripting 11-05-2006, 04:50 PM
Replies: 12
Views: 981
Posted By Skyld
As well as not using quotes, you should not be...

As well as not using quotes, you should not be using getnpc(). For the new scripting engine, we use findnpc():
with (findNPC("NameOfNPC"))
{
// foo
}
Also inside with () blocks, when you want...
Forum: NPC Scripting 11-05-2006, 02:23 PM
Replies: 12
Views: 981
Posted By Skyld
You should never use = for comparison checking....

You should never use = for comparison checking. If you are checking a value, it always should be ==.
if (this.season == 0)
Also, don't use setstring. It's outdated.
serverr.season = "spring";
Forum: NPC Scripting 10-28-2006, 10:59 AM
Replies: 12
Views: 981
Posted By Skyld
switch (player.chat) { case "hello": ...

switch (player.chat)
{
case "hello":
case "hey":
case "wow":
{
clearChat();
break;
}
}
Showing results 1 to 3 of 3

 
Forum Jump

All times are GMT +2. The time now is 09:07 AM.


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