Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-30-2006, 12:52 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
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
Reply With Quote
  #2  
Old 09-30-2006, 12:59 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Uh, you can't use functions across the clientside-serverside barrier. Also learn to name your thread properly.
Reply With Quote
  #3  
Old 09-30-2006, 04:24 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by Mark Sir Link View Post
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
__________________

Reply With Quote
Reply


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 01:16 PM.


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