Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Gralats Not Respawning? (https://forums.graalonline.com/forums/showthread.php?t=134261315)

oomey30 12-14-2010 12:22 AM

Gralats Not Respawning?
 
Hello, I need help with my server dev oomey30.
When you slash a bush no gralats appear. Here is the script.

function onCreated() {
showcharacter();
updategani();
dontblock();
}
function onUpdategani() {
updategani();
}

function updategani() {
temp.type = 1;
if (rupees>=100) temp.type = 4;
else if (rupees>=30) temp.type = 3;
else if (rupees>=5) temp.type = 2;

setcharani("gems", temp.type);
}

function onPlayerTouchsMe() {
player.rupees += rupees;
rupees = 0;
destroy();
}

I really hope someone can help out :D

xAndrewx 12-14-2010 01:31 AM

In server options
make sure that this is set to true

bush-items

should look like this

bush-items=true

(remove the - in the middle, stupid swear filter)

oomey30 12-14-2010 01:37 AM

I have that.

fowlplay4 12-14-2010 01:56 AM

When posting scripts use PHP tags:

[ PHP]
function example() {
echo("Hello forums!");
}
[ /PHP]

Minus the spaces.

PHP Code:

function example() {
  echo(
"Hello forums!");



MattKan 12-14-2010 04:04 AM

Quote:

Originally Posted by oomey30 (Post 1616152)
I really hope someone can help out :D

I noticed that you are hiring. However, "The Forums" is not an eligible staff type that is supposed to do everything for you.

Entrok 12-14-2010 09:58 AM

Quote:

Originally Posted by oomey30 (Post 1616152)
Hello, I need help with my server dev oomey30.
When you slash a bush no gralats appear. Here is the script.

function onCreated() {
showcharacter();
updategani();
dontblock();
}
function onUpdategani() {
updategani();
}

function updategani() {
temp.type = 1;
if (rupees>=100) temp.type = 4;
else if (rupees>=30) temp.type = 3;
else if (rupees>=5) temp.type = 2;

setcharani("gems", temp.type);
}

function onPlayerTouchsMe() {
player.rupees += rupees;
rupees = 0;
destroy();
}

I really hope someone can help out :D

Do you have gems.gani uploaded on the server? Try use '/find gems.gani' in RC.

Deas_Voice 12-14-2010 10:37 AM

unless you got a custom gani for grelats (if you do, make sure it's uploaded as "gems.gani"),
PHP Code:

setcharani("gems"temp.type); 

should be
PHP Code:

setcharani("gralats"temp.type); 

or is it gralat? can't access graal anymore from school, bleh.

oomey30 12-22-2010 12:19 AM

Yes i have gems.gani uploaded

Deas_Voice 12-22-2010 12:56 AM

Quote:

Originally Posted by oomey30 (Post 1617340)
Yes i have gems.gani uploaded

is it downloadable (/find gems.gani)?


All times are GMT +2. The time now is 11:06 PM.

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