Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   GS1 Flamethrower (https://forums.graalonline.com/forums/showthread.php?t=134266685)

E_Man 06-20-2012 07:12 PM

GS1 Flamethrower
 
This is not the best script, but it is still a good script, it shoots fire like a bow and uses up 1 arrow and 1 bomb each use. Try it for yourself in offline editor.

PHP Code:

// NPC made by E-Man
if (created) {
setimg firebow.png
}
if (
playertouchsme) {
toweapons Flamethrower;
hide;
}
if (
weaponfired && playerdir=&& playerbombs this.>= && playerdarts this.>= 1) {
freezeplayer 1.1;
playerdarts -= 1;
playerbombs -= 1;
setani shoot,firebow1.png;
sleep 0.2;
putexplosion 0.5,playerx-0,playery-1;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-3;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-5;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-7;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-9;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-11;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-13;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-15;
sleep 0.1;
putexplosion 0.5,playerx-0,playery-17;
}
if(
weaponfired && playerdir=&& playerbombs this.>= && playerdarts this.>= 1){
freezeplayer 1.1;
playerdarts -= 1;
playerbombs -= 1;
setani shoot,firebow1.png;
sleep 0.2;
putexplosion 0.5,playerx-1.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-3.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-5.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-7.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-9.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-11.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-13.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-15.8,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx-17.8,playery+0.75;
}
if(
weaponfired && playerdir=&& playerbombs this.>= && playerdarts this.>= 1){
freezeplayer 1.1;
playerdarts -= 1;
playerbombs -= 1;
setani shoot,firebow1.png;
sleep 0.2;
putexplosion 0.5,playerx+0.5,playery+3;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+5;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+7;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+9;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+11;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+13;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+15;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+17;
sleep 0.1;
putexplosion 0.5,playerx+0.5,playery+19;
}
if(
weaponfired && playerdir=&& playerbombs this.>= && playerdarts this.>= 1){
freezeplayer 1.1;
playerdarts -= 1;
playerbombs -= 1;
setani shoot,firebow1.png;
sleep 0.2;
putexplosion 0.5,playerx+3,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+5,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+7,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+9,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+11,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+13,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+15,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+17,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+19,playery+0.75;
sleep 0.1;
putexplosion 0.5,playerx+21,playery+0.75;


You will need these images however for it to work, unless you just use the images from nukeshot.

firebow.png (Used as image in inventory)
http://i48.tinypic.com/2w1to9d.png

firebow1.png (The weapon sprite)
http://i47.tinypic.com/2zhh35k.png

You will need bomb1.png to be working in graal editor for this to work, I'm just saying this because bomb1.png did not work for me at first until I deleted filenamecahce.txt and reloaded it.

E_Man 06-20-2012 08:11 PM

I meant to put weapon in poll, not script because I want it to include the images. Is there a way to change the poll?

callimuc 06-20-2012 08:49 PM

You shouldn't post this into the code gallery since it's only for GS2. You can post it in the GS1 section though :)
And you don't need player.x-0 since that actually does change nothing. It just goes back to player.x. I'm not that good with GS1 but you could try to use the maths cbk (chris) explained you for your shoot command to safe some lines. Than you can expand the x/y with a for() loop. Could save you some time :)

xXziroXx 06-20-2012 09:00 PM

Quote:

Originally Posted by callimuc (Post 1697880)
You shouldn't post this into the code gallery since it's only for GS2. You can post it in the GS1 section though :)

The code gallery is just not for GS1. To quote the description of the forums:

"For showing complete scripts, if possible with comments. Mark scripts which are for GS1."

E_Man 06-20-2012 09:01 PM

Quote:

You shouldn't post this into the code gallery since it's only for GS2. You can post it in the GS1 section though
And you don't need player.x-0 since that actually does change nothing. It just goes back to player.x. I'm not that good with GS1 but you could try to use the maths cbk (chris) explained you for your shoot command to safe some lines. Than you can expand the x/y with a for() loop. Could save you some time
I made it say -0 because if someone wants to edit it. Also I can post GS1 here because under the tile code gallery is said:

For showing complete scripts, if possible with comments. Mark scripts which are for GS1.

And I put GS1 in the title, unless there is another way to mark it.

DustyPorViva 06-20-2012 09:04 PM

I feel you have a lot to learn before you start posting scripts for others to use.

cbk1994 06-20-2012 09:35 PM

Quote:

Originally Posted by xXziroXx (Post 1697886)
The code gallery is just not for GS1. To quote the description of the forums:

"For showing complete scripts, if possible with comments. Mark scripts which are for GS1."

Unless it's particularly interesting or unique, I don't really see any place for GS1 here. This code is not a good example for others and shouldn't be used on a server. It doesn't serve either of the purposes of the Code Gallery.

If the code was something unique and not seen before, it would be a different story. However, with this particular piece of code, people would be raising the same objections (it's not useful on a server or for learning) even if it was written in GS2.

E_Man 06-20-2012 10:31 PM

Quote:

Originally Posted by cbk1994 (Post 1697893)
Unless it's particularly interesting or unique, I don't really see any place for GS1 here. This code is not a good example for others and shouldn't be used on a server. It doesn't serve either of the purposes of the Code Gallery.

If the code was something unique and not seen before, it would be a different story. However, with this particular piece of code, people would be raising the same objections (it's not useful on a server or for learning) even if it was written in GS2.

K, so is there anywhere to post good gs1 scripts for if someone wants to use them?

Crow 06-21-2012 12:12 AM

Quote:

Originally Posted by E_Man (Post 1697902)
K, so is there anywhere to post good gs1 scripts for if someone wants to use them?

The GS1 forums.

E_Man 06-21-2012 12:32 AM

Quote:

Originally Posted by Crow (Post 1697909)
The GS1 forums.

It says that's only for problems you need help on

Imperialistic 06-21-2012 05:18 AM

i'm really disappointed with the so called present 'developers'

what kind of potential scripter would want to continue advancing and progressing with all of your pessimistic and shitty remarks. Instead of pointing out what he is doing wrong, why can't we just explain to him how to better himself?

all of the sudden everyone acts like a forum mod, just shut up and get off your high horse.

Starfire2001 06-21-2012 05:25 AM

Quote:

Originally Posted by Imperialistic (Post 1697926)
i'm really disappointed with the so called present 'developers'

what kind of potential scripter would want to continue advancing and progressing with all of your pessimistic and shitty remarks. Instead of pointing out what he is doing wrong, why can't we just explain to him how to better himself?

all of the sudden everyone acts like a forum mod, just shut up and get off your high horse.

Gonna have to disagree with this entirely, from what I've seen people have been pretty nice to this guy in this thread and others.

cbk1994 06-21-2012 02:30 PM

Quote:

Originally Posted by Imperialistic (Post 1697926)
i'm really disappointed with the so called present 'developers'

what kind of potential scripter would want to continue advancing and progressing with all of your pessimistic and shitty remarks. Instead of pointing out what he is doing wrong, why can't we just explain to him how to better himself?

all of the sudden everyone acts like a forum mod, just shut up and get off your high horse.

This is a Code Gallery post, not a post looking for help. The Code Gallery isn't intended for feedback on scripts, it's intended for scripts that are finished and can be used by others either to learn from or on their server. This is what he was told.

If you look at his other threads in the scripting forums, you'll see that he received help on most of them; also keep in mind that he's requesting help on a language which a lot of us have done everything possible to forget.

E_Man 06-21-2012 03:00 PM

Quote:

Originally Posted by cbk1994 (Post 1697941)
also keep in mind that he's requesting help on a language which a lot of us have done everything possible to forget.

I wouldnt' be doing GS1 if I wasn't trial, but since I am, I want to make use of the GS1 Script fourms since they are never used anymore and people still do have knowledge (even if they want to forget it) of gs1. Also there may be others who like that I'm asking about GS1 because they are trial and never got gold which means that they can only do GS1 and they also can't sign up for this forum.

xXziroXx 06-21-2012 03:17 PM

Quote:

Originally Posted by cbk1994 (Post 1697941)
The Code Gallery isn't intended for feedback on scripts, it's intended for scripts that are finished and can be used by others either to learn from or on their server.

I don't know about you, but I always appreciate feedback on the things I post in the Code Gallery. Anything that can help me improve what I deemed ready is helpful. Comments stroking my ego helps me sleep at night too.

Quote:

Originally Posted by cbk1994 (Post 1697941)
also keep in mind that he's requesting help on a language which a lot of us have done everything possible to forget.

Just because we despise GS1 doesn't mean we can't/shouldn't help people who are stuck with it. Learning GS1 could likely still be very useful to learn before moving on to GS2 later.

cbk1994 06-21-2012 03:28 PM

Quote:

Originally Posted by xXziroXx (Post 1697948)
I don't know about you, but I always appreciate feedback on the things I post in the Code Gallery. Anything that can help me improve what I deemed ready is helpful. Comments stroking my ego helps me sleep at night too.

I don't disagree, just pointing out that the Code Gallery's purpose is not for receiving feedback on scripts you've made. As others have said, it would be perfectly acceptable to post these kind of threads in the GS1 forums.

Quote:

Just because we despise GS1 doesn't mean we can't/shouldn't help people who are stuck with it. Learning GS1 could likely still be very useful to learn before moving on to GS2 later.
I don't disagree here either, just explaining why he's not receiving as much help as he would if his problems were in GS2. Most people around here haven't used GS1 since 2005, myself included.

E_Man 06-21-2012 04:05 PM

Quote:

Originally Posted by cbk1994 (Post 1697949)
it would be perfectly acceptable to post these kind of threads in the GS1 forums.

Ok, instead of posting GS1 scripts here, I'll post them in the GS1 forum under a new forum named GS1 Code Gallery, I'll make it once I'm finished the script I'm working on. It will be for people who want to post GS1 scripts.

Imperialistic 06-21-2012 07:03 PM

Quote:

Originally Posted by cbk1994 (Post 1697941)
This is a Code Gallery post, not a post looking for help. The Code Gallery isn't intended for feedback on scripts, it's intended for scripts that are finished and can be used by others either to learn from or on their server. This is what he was told.

If you look at his other threads in the scripting forums, you'll see that he received help on most of them; also keep in mind that he's requesting help on a language which a lot of us have done everything possible to forget.

dude, regardless. He didn't break any rules and clearly labeled the Code as GS1. Just because you don't personally approve of an old scripting language doesn't mean he should be shunned for exercising his development skills and willingness to improve.

Also, without GS1, I wouldn't have known any commands of GS2. I understand that GS1 shouldn't be used anymore on the client. But if a player simply wants to create something offline to share with other players, whats the big deal?

cbk1994 06-21-2012 09:00 PM

Quote:

Originally Posted by Imperialistic (Post 1697987)
dude, regardless. He didn't break any rules and clearly labeled the Code as GS1. Just because you don't personally approve of an old scripting language doesn't mean he should be shunned for exercising his development skills and willingness to improve.

Nobody is shunning him, just asking him to confine GS1-related posts to the GS1 subforum, which he already agreed to :oo:. The last thing I would do is encourage someone to give up, which is why I've been a proponent of Testbed and tried to help E_Man get gold so he could use it.

Quote:

Also, without GS1, I wouldn't have known any commands of GS2. I understand that GS1 shouldn't be used anymore on the client. But if a player simply wants to create something offline to share with other players, whats the big deal?
I'm not trying to start a debate over the merits of GS1; it's how I got started as well. And who said anything about a big deal? All I said was that in general, I don't think GS1 scripts belong in the code gallery unless they are particularly interesting or unique; let me reiterate:

Quote:

Originally Posted by cbk1994 (Post 1697893)
with this particular piece of code, people would be raising the same objections (it's not useful on a server or for learning) even if it was written in GS2.


Chompy 06-21-2012 09:04 PM

Quote:

Originally Posted by Imperialistic (Post 1697926)
i'm really disappointed with the so called present 'developers'

what kind of potential scripter would want to continue advancing and progressing with all of your pessimistic and shitty remarks. Instead of pointing out what he is doing wrong, why can't we just explain to him how to better himself?

all of the sudden everyone acts like a forum mod, just shut up and get off your high horse.

I have to say I fully agree with this post. Yes, I logged on to post this.

Fulg0reSama 06-21-2012 09:20 PM

Quote:

Originally Posted by Chompy (Post 1698001)
I have to say I fully agree with this post. Yes, I logged on to post this.

This is why I love you Chompy.

Tigairius 06-22-2012 09:56 AM

Quote:

Originally Posted by Chompy (Post 1698001)
I have to say I fully agree with this post. Yes, I logged on to post this.

It's really only a handful of unhelpful people who often post negative things (and I'm not talking about cbk1994 - who is one of the most helpful people on these forums). I would go as far as to say that, in general, the scripting subform is -the- most helpful subforum on the entire forums. It's very rare that someone posts here and doesn't walk away with some kind of constructive feedback.

DustyPorViva 06-22-2012 10:15 AM

Eh, most of his other(many) threads about scripting have gotten a lot of help. I see no reason why someone would jump to the conclusion he is being pushed away just because this thread has taken a less than positive direction.

cbk1994 06-22-2012 04:06 PM

Quote:

Originally Posted by Chompy (Post 1698001)
I have to say I fully agree with this post. Yes, I logged on to post this.

If I've come off as being pessimistic and giving shitty remarks then I really do apologize—the last thing I want to do is discourage others from learning GScript. That wasn't my intention at all.

Imperialistic 06-22-2012 11:46 PM

Chris why are you taking such offense to this, nothing I said was implied to any person as an individual. I was talking about developers as a whole, including me!

Now if you actually want to get into the subject of you pushing away others from learning ;

Quote:

This code is not a good example for others and shouldn't be used on a server.
Uh, who are you to decide if a script is a good example or not?

Quote:

If the code was something unique and not seen before, it would be a different story.
Uh, only unique scripts are allowed to be posted in GS1 in the code gallery? Show me this rule

Quote:

(it's not useful on a server or for learning)
Uh, again, who are you to decide if a script is useful to others or not?



*No pun intended Chris, you're a great developer and very helpful, just think about what you say before you say it*

ff7chocoboknight 06-23-2012 12:13 AM

Quote:

Originally Posted by Imperialistic (Post 1698117)
Chris why are you taking such offense to this, nothing I said was implied to any person as an individual. I was talking about developers as a whole, including me!

Now if you actually want to get into the subject of you pushing away others from learning ;



Uh, who are you to decide if a script is a good example or not?



Uh, only unique scripts are allowed to be posted in GS1 in the code gallery? Show me this rule



Uh, again, who are you to decide if a script is useful to others or not?



*No pun intended Chris, you're a great developer and very helpful, just think about what you say before you say it*

ROFL You're joking, right?

E_Man 06-23-2012 01:32 AM

Quote:

Originally Posted by cbk1994 (Post 1698059)
If I've come off as being pessimistic and giving shitty remarks then I really do apologize—the last thing I want to do is discourage others from learning GScript. That wasn't my intention at all.

These negative comments won't discourage me, this is because I am ok with this script because it works just like I wanted to (other than the fire looking a bit choppy). I just posted this here to help people offline, I'm new to scripting so it probably won't be the best script, but it is still useful and people may want this.

E_Man 06-23-2012 01:55 AM

Quote:

Originally Posted by E_Man (Post 1698131)
These negative comments won't discourage me, this is because I am ok with this script because it works just like I wanted to (other than the fire looking a bit choppy). I just posted this here to help people offline, I'm new to scripting so it probably won't be the best script, but it is still useful and people may want this.

However, there is a poll, so you don't need to lower my reputation because that does discourage me from posting.



(Btw, what happens if my reputation gets down to zero, will I lose posting rights or something?)

xXziroXx 06-23-2012 02:43 AM

Quote:

Originally Posted by E_Man (Post 1698138)
However, there is a poll, so you don't need to lower my reputation because that does discourage me from posting.

I don't know why anyone would give you negative reputation from any of the posts you've made so far, it's refreshing to see someone progress that seems genuinely interested in learning how to program.

Quote:

Originally Posted by E_Man (Post 1698138)
(Btw, what happens if my reputation gets down to zero, will I lose posting rights or something?)

Nothing changes, you'll just go into negative values and have your reputation boxes become red.


In any case, I gave you some positive rep to counteract the bastard who negative repped you.

Chompy 06-23-2012 03:29 AM

Quote:

Originally Posted by cbk1994 (Post 1698059)
If I've come off as being pessimistic and giving shitty remarks then I really do apologize—the last thing I want to do is discourage others from learning GScript. That wasn't my intention at all.

The intention of my post was not to point fingers at individuals, but the scripting community here on the forum as a whole. I was very active here on the scripting forums before and I have from time to time seen (during my time not being logged on and browsing here when not occupied with work and university) posts that could have had a few words changed and a sentence written a little different to get the message through a less supposed "negative" way.

If I were to point the finger at you Chris, it's for coming with the "shitty remarks" when the OP (Not talking about this thread) had it coming. Kudos actually.

Quote:

Originally Posted by Tigairius (Post 1698043)
It's really only a handful of unhelpful people who often post negative things (and I'm not talking about cbk1994 - who is one of the most helpful people on these forums). I would go as far as to say that, in general, the scripting subform is -the- most helpful subforum on the entire forums. It's very rare that someone posts here and doesn't walk away with some kind of constructive feedback.

The scripting forum is one of the most active sub-forums here at the Graalonline Forums. It's also a place where scripters get to "mark" their territory and showcase their knowledge often in a constructive way. Sometimes this goes the other way and some end up on their high horse and can be seen answering in a manner which can easily be misunderstood as being negative instead of constructive. It's all a matter of how one sees the constructive message, but it depends on the relations between the OP and the poster itself aswell.

There are lots of people on here who should read up on what "constructive feedback" really means, how to give it and how to receive it and use it to help yourself progress further and find flaws within your own logic (especially when it comes to scripting(/programming)).


All times are GMT +2. The time now is 04:50 AM.

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