Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-01-2007, 05:02 PM
foxboi foxboi is offline
zzzzz
foxboi's Avatar
Join Date: Aug 2005
Posts: 101
foxboi is on a distinguished road
Help with GS2 Script

NPC Code:
function onPlayerChats()
if(player.chat=="/box1"){
message 1;
}
if(player.chat.starts("/box1")){
this.t = player.chat.tokenize();
this.t[0] = "/box1";
if(this.t[1]=="2"){
message 2;
}
}
function onPlayerChats(){
if(player.chat=="/reset"){
message;
}
}




Just learning how to script.. umm the whole point of this script is when the player says /box1 the number 1 appears in the place I laid the level npc. Also when I say /box1 2, it is supposed to display 2 but when i say /reset it deletes the number.. But right now when I say /box1 or /box1 2 it doesn't work netiher does the /reset part...

Help Please lmao.
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 12:37 AM.


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