Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   About how to make a gani WORK (https://forums.graalonline.com/forums/showthread.php?t=79637)

Soala 05-05-2008 12:34 PM

About how to make a gani WORK
 
Seems I can't find anything that will tell me how to make a gani work, I will ask here.

Could anyone show an exemple of a working gani script ?
Someone told me it was completely different than a normal script, and I also tried everything I knew to make one work.
Show me some exemple ? Or maybe make a tutorial about it on graal bible :)
With maybe a list of commands that would work
I heard of replaceani, stuff like that.

Help :confused:

cbk1994 05-05-2008 10:25 PM

All you do is make a text file and save it with a .gani extension. In the text file, it should look like this:

PHP Code:

SCRIPT
function onCreated()
{
  
doBlah();
}
SCRIPTEND 

It is just like any other script, but it is clientside. There is no need to have //#CLIENTSIDE, as it is always clientside.

You also cant use triggerserver to trigger the GANI to perform serverside functions.

Robin 05-06-2008 11:52 AM

Quote:

Originally Posted by cbkbud (Post 1389184)
You also cant use triggerserver to trigger the GANI to perform serverside functions.

Which would be nice for action ganis like grab,pull,sword etc.

cbk1994 05-07-2008 01:14 AM

Quote:

Originally Posted by Robin (Post 1389283)
Which would be nice for action ganis like grab,pull,sword etc.

As far as I know you can trigger a weapon or DBNPC, perhaps that will do what you want? It's easier just to make a custom movement system though, gives you more customizability anyway.

Soala 05-14-2008 12:15 PM

I understand now, thanks ^^^
I didn't know I had to have such things like SCRIPT and SCRIPTEND !
Also thanks for explaining them =)


All times are GMT +2. The time now is 05:11 AM.

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