Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-15-2006, 06:42 AM
Chicken_l33t Chicken_l33t is offline
Banned
Join Date: Sep 2002
Location: NewZealand
Posts: 467
Chicken_l33t is on a distinguished road
Need some help please.

I've been messing with this for bloody ages and either I'm doing something stupid and havent noticed yet or it's just fungled.

PHP Code:
// NPC made by Chicken NaNa (Police)
function onCreated(){
  
setshape(1,32,32);
  
canbepulled();
  
canbepushed();
}

function 
onActionPushed(){
  
player.chat int(random(0,50));
}

function 
onActionPulled(){
  
player.chat int(random(0,50));
}

//#CLIENTSIDE
function onCreated() {

Basicly what it's not doing is checking it everytime I pull or push it. It does it in a certain area (next to a platform NPC) which is odd and it doesnt do it anywhere else. (Doesnt show a random number [testing purposes])

Anyone got any clues :X? and yes I have tryed it Clientside just incase and I use a trigger to send to the server, but it doesnt send the trigger and I tested to make sure the trigger should work and it does, but that was using playerchats.

So, it has something to do with the onActionPulled / Pushed.
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 05:38 PM.


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