Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-14-2010, 12:22 AM
oomey30 oomey30 is offline
Graal Online Player
oomey30's Avatar
Join Date: Oct 2010
Posts: 17
oomey30 is an unknown quantity at this point
Send a message via AIM to oomey30
Cool 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
__________________
Boomey30
Skill : Scripting, Graphical Designer, and Level Designer
Reply With Quote
  #2  
Old 12-14-2010, 01:31 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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)
__________________
Reply With Quote
  #3  
Old 12-14-2010, 01:37 AM
oomey30 oomey30 is offline
Graal Online Player
oomey30's Avatar
Join Date: Oct 2010
Posts: 17
oomey30 is an unknown quantity at this point
Send a message via AIM to oomey30
I have that.
__________________
Boomey30
Skill : Scripting, Graphical Designer, and Level Designer
Reply With Quote
  #4  
Old 12-14-2010, 01:56 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
When posting scripts use PHP tags:

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

Minus the spaces.

PHP Code:
function example() {
  echo(
"Hello forums!");

__________________
Quote:
Reply With Quote
  #5  
Old 12-14-2010, 04:04 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Quote:
Originally Posted by oomey30 View Post
I really hope someone can help out
I noticed that you are hiring. However, "The Forums" is not an eligible staff type that is supposed to do everything for you.
__________________
Quote:
Originally Posted by Satoru Iwata
On the other hand, free-to-play games, if unbalanced, could result in some consumers paying extremely large amounts of money, and we can certainly not expect to build a good relationship with our consumers in this fashion. In order to have a favorable long-term relationship, we would like to offer free-to-play games that are balanced and reasonable.
Quote:
Originally Posted by Unximad
Eurocenter Games remains attached to the values of indies game developer and to the service our playerbase community.
Reply With Quote
  #6  
Old 12-14-2010, 09:58 AM
Entrok Entrok is offline
Registered User
Join Date: Sep 2009
Location: Sweden
Posts: 51
Entrok is on a distinguished road
Send a message via MSN to Entrok
Quote:
Originally Posted by oomey30 View Post
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
Do you have gems.gani uploaded on the server? Try use '/find gems.gani' in RC.
Reply With Quote
  #7  
Old 12-14-2010, 10:37 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
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.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #8  
Old 12-22-2010, 12:19 AM
oomey30 oomey30 is offline
Graal Online Player
oomey30's Avatar
Join Date: Oct 2010
Posts: 17
oomey30 is an unknown quantity at this point
Send a message via AIM to oomey30
Yes i have gems.gani uploaded
__________________
Boomey30
Skill : Scripting, Graphical Designer, and Level Designer
Reply With Quote
  #9  
Old 12-22-2010, 12:56 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by oomey30 View Post
Yes i have gems.gani uploaded
is it downloadable (/find gems.gani)?
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:10 PM.


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