Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Need some help please. (https://forums.graalonline.com/forums/showthread.php?t=66044)

Chicken_l33t 05-15-2006 06:42 AM

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.


All times are GMT +2. The time now is 08:41 AM.

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