Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 05-06-2007, 08:13 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by theHAWKER View Post
whats this do?
and whats it for?
He's rewritten the default graalats class into GS2 and added a for loop for some strange reason .

Also, for
PHP Code:
if (updategani)
{
  
this.updategani();

Is there any way to write that as an event rather than a condition? =x
Reply With Quote
  #17  
Old 05-06-2007, 08:23 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
I don't really know much about the class. I just re-scripted it.
Reply With Quote
  #18  
Old 05-06-2007, 10:02 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by Twinny View Post
He's rewritten the default graalats class into GS2 and added a for loop for some strange reason .

Also, for
PHP Code:
if (updategani)
{
  
this.updategani();

Is there any way to write that as an event rather than a condition? =x
HTML Code:
function onUpdateGani()
{
  this.updategani();
}
I use it in the Gralats class I rescripted awhile ago
Reply With Quote
  #19  
Old 05-07-2007, 12:59 AM
Sum41Freeeeek Sum41Freeeeek is offline
Future Coder
Join Date: Feb 2004
Location: New York
Posts: 376
Sum41Freeeeek is on a distinguished road
Send a message via AIM to Sum41Freeeeek
PHP Code:
if (updategani)

function 
updategani() 
isn't that the same thing?

why would you do

PHP Code:
function onCreated()
{
  
this.updategani();
}

if (
updategani)
{
  
this.updategani();

aren't you doing the same thing twice?
__________________
Frankie Cassini: ex-Era LAT
Quote:
Originally Posted by brakk View Post
omg just go to your room and draw a pony then

**** the chicken wings!
Reply With Quote
  #20  
Old 05-07-2007, 01:02 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by Sum41Freeeeek View Post
PHP Code:
if (updategani)

function 
updategani() 
isn't that the same thing?

why would you do

PHP Code:
function onCreated()
{
  
this.updategani();
}

if (
updategani)
{
  
this.updategani();

aren't you doing the same thing twice?
That isnt what he is doing.
He is making the function loop itself
Reply With Quote
  #21  
Old 05-07-2007, 01:52 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Rapidwolve View Post
That isnt what he is doing.
He is making the function loop itself
Wont that exceed the loop limit? I thought you had to use a timeout, or at least pause!
__________________
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 08:56 PM.


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