Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 07-26-2008, 04:44 AM
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
I've encountered a similar issue.

PHP Code:
function onCreated()
{
  
funcOne();
}

public function 
funcOne()
{
  
temp.foo = new TStaticVar();
  
temp.foo.funcTwo = function() {
    echo(
"bar");
  };
  
temp.foo.funcTwo();

Echoes "bar" successfully.

However, if I want to trigger the function in this NPC on another object using with (obj)...
PHP Code:
function onCreated()
{
  
// Replace 'obj' with one of the following:
  // findPlayer("accountname")
  // findNPC("npcname")
  
with (objfuncOne();
}

public function 
funcOne()
{
  
temp.foo = new TStaticVar();
  
temp.foo.funcTwo = function() {
    echo(
"bar");
  };
  
temp.foo.funcTwo();

I get this error message on RC instead:
PHP Code:
Script: Function unknown_object.funcTwo not found at line 71 in script of DEBUG (in level onlinestartlocal.nw at pos (30.530)) 
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 07-26-2008 at 04:46 AM.. Reason: Uncensor S T F U please, can't even type "test" followed by "func"...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 11:00 PM.


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