View Single Post
  #6  
Old 04-05-2007, 10:25 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Dude...
#1. you need to learn GScript2
#2. playersays() was deprecated even when I started scripting with GS1
#3. toweapons() is also deprecated with the introduction of the NPC Server.

Offline scripting is a simple waste of time.
PHP Code:
function onCreated() {
  
// do not use toweapons.
  // even if you did use it, it would be under onPlayerTouchsMe()
}
function 
onWeaponFired() {
  
say2("text");
}
function 
onPlayerChats() {
  if (
player.chat == "volume 0") {
    
// stuff
  
}
  else if (
player.chat == "volume 1") {
    
// stuff
  
}

Learning to use tokens would also be a good thing.
__________________
Reply With Quote