Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   script help pls (https://forums.graalonline.com/forums/showthread.php?t=69062)

Mark Sir Link 09-30-2006 12:52 AM

script help pls
 
NPC Code:

//in serverside...
function fib(n)
{
if (n < 2)
return 1;
return fib(n-1)+fib(n-2);
}

//#CLIENTSIDE
function onPlayerEnters()
{
player.chat = fib(30000);
}


DOESN'T WORK I NEED HLEP PLXXX

Skyld 09-30-2006 12:59 AM

Uh, you can't use functions across the clientside-serverside barrier. Also learn to name your thread properly.

ZeroTrack 09-30-2006 04:24 AM

Quote:

Originally Posted by Mark Sir Link (Post 1223952)
NPC Code:

//in serverside...
function fib(n)
{
if (n < 2)
return 1;
return fib(n-1)+fib(n-2);
}

//#CLIENTSIDE
function onPlayerEnters()
{
player.chat = fib(30000);
}


http://wiki.graal.net/index.php/Crea...Starting_Guide

Get to reading :)


All times are GMT +2. The time now is 10:50 PM.

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