View Single Post
  #1  
Old 05-31-2006, 09:23 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
join() & public function

Cant say im a bad scripter, yet several threads in this "scripting help" forum has been created by me lately..


Anyways, Ive been trying to get a public function to work - without success.


Example on class (named "className" in this test):

PHP Code:
public function funcName()
{
  
player.chat "foo";


Example on Control-NPC:

PHP Code:
function onCreated()
{
  
player.join"className");


Example on Weapon:

PHP Code:
function onPlayerEnters()
{
  
player.funcName();



If you can tell me what im doing wrong/tell me how to do it properly - I would greatly appriciate it.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote