Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-01-2009, 01:47 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Triggeraction Not Working :(

PHP Code:
//#CLIENTSIDE
function onCreated() {
}
function 
onKeyPressed(codekey) {
  switch (
key) {
    case 
"a":
      echo(
"GRAB ASS!");
      
triggeraction(((player.1.5) + vecx(player.dir)), ((player.1.75) + vecy(player.dir)), "Grab"null);
    break;
  }

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.setimg(this.image);
  
this.setshape(13232);
}
function 
onPlayerChats() {
  if (
player.communityname == "FreakyDonkey") {
    if (
player.chat == "/destroy") {
      
this.destroy();
    }
  }
}
function 
onGrab() {
  echo(
"Has been grabbed!");

This is irking me because it was working before and now it isn't.
__________________
Stan.
Reply With Quote
  #2  
Old 12-01-2009, 01:49 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
The function should be named "onActionGrab"
__________________
Reply With Quote
  #3  
Old 12-01-2009, 01:51 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
How could I forget such a thing! Inexcusable! Thank you Chris.
__________________
Stan.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:06 PM.


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