Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Why won't this work? (https://forums.graalonline.com/forums/showthread.php?t=13454)

SSRobgeta 09-30-2001 11:58 PM

Why won't this work?
 
This script won't work? Please help!


// NPC made by Rob Getashu
if (created) {
drawoverplayer;
setstring this.bugsprite,;
showcharacter;
setcharani stone_closed,;
message #v(this.bombpower) %
}
if (exploded) {
bombpower = strtofloat(#s(bombpower))+25;
setstring bombpower,#v(bombpower);
setstring client.bombpower,#s(bombpower);
setstring server.gavebombpower,#v(strtofloat(#s(server.gaveb ombpower))+25);

this.bombpower = strtofloat(#s(client.bombpower));
setstring client.bombpower,;
setstring server.gavebombpower,#v(this.bombpower);
}
if (bombpower=100) {
setcharani stone_open,#s(this.bugsprite);
sleep 2;
setcharani stone_idle,#s(this.bugsprite);
sleep 2;
setcharani stone_close,#s(this.bugsprite);
sleep 2;
setcharani stone_closed,;

bugs = strtofloat(#s(bugs))+1;
setstring bugs,#v(bugs);
setstring client.bugs,#s(bugs);
setstring server.gavebugs,#v(strtofloat(#s(server.gavebugs)) +1);
}

SSRobgeta 10-01-2001 12:11 AM

Can someplease help?:confused:

SSRobgeta 10-01-2001 12:44 AM

:(

SSRobgeta 10-01-2001 03:54 AM

Ok let me explain the script. Your supose to use bombvs to move the rocks and find beetles under them. The problem is you need to use four bombs and I wanted to show the percent above the rock and this script won't work. Can someone help?

Vinvect 10-01-2001 04:14 AM

here:
NPC Code:

if(exploded4times){
move 1;
showbeetlesunder(1);
move 1;
goaway+1;
}


Shard_IceFire 10-01-2001 08:41 AM

just make it display a string above the rock like for instance:
NPC Code:
#s(rockhit)


to do this just have it so every time you hit the rock, it does this function:
NPC Code:

function bombHit () {
this.numplus=25*(1+strtofloat(#s(rockhit)));
setstring rockhit,#v(this.numplus);
}


then you can make it so when the string #s(rockhit)==100 that it moves the rock or whatever.
lol i just did that off the top of my head I doubt it'll work but oh well you get the idea.

btedji 10-01-2001 09:08 AM

Quote:

Originally posted by Shard_IceFire

lol i just did that off the top of my head I doubt it'll work but oh well you get the idea.

that should work

Shard_IceFire 10-01-2001 09:11 AM

=P good!

PresShinP2P 10-01-2001 10:27 PM

errr, i wouldn't bother with the script...i mean finding bugs under rocks, COME ON PEOPLE!

SSRobgeta 10-02-2001 02:36 AM

Quote:

Originally posted by PresShinP2P
errr, i wouldn't bother with the script...i mean finding bugs under rocks, COME ON PEOPLE!
The guy likes bugs! What can you say ?

entravial 10-02-2001 04:30 AM

~AlphaFlame~

Wasn't this on a few of the Zelda games?

By the way...

if (exploded && this.bombed<=4){
this.bombed++;
if (this.bombed=4){
x--;
}
message #v(this.bombed/4*100)%
}

btedji 10-02-2001 05:52 AM

you need to use a timeout loop in the original script of this thread

SSRobgeta 10-02-2001 07:48 AM

can someone agree with any of these and redo my old script and add the new features? :confused:

ArmadeusWarlock 10-02-2001 08:34 AM

I would if this comp had graal on it AND if I wasnt lazy =O

entravial 10-02-2001 08:41 AM

~AlphaFlame~

Feel lucky I'm bored...

if (exploded && this.bombed<=4){
this.bombed++;
message #v(this.bombed/4*100)%
if (this.bombed=4) {
setcharani stone_open,#s(this.bugsprite);
sleep 2;
setcharani stone_idle,#s(this.bugsprite);
sleep 2;
setcharani stone_close,#s(this.bugsprite);
sleep 2;
setcharani stone_closed,;
setstring bugs,#v(strtofloat(#s(bugs))+1);
}
}


All times are GMT +2. The time now is 12:45 AM.

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