Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Gun script working !! (https://forums.graalonline.com/forums/showthread.php?t=84492)

GULTHEX 03-04-2009 12:05 AM

Gun script working !!
 
DONT NAG ME ABOUT PARAMQUALS IT STILL Works

i can script

PHP Code:

//SCRIPTED BY GULTHEX B****ES
//DONT NAG ME ABOUT PARAMQUALS
//BECAUSE IT WORKS 
//#CLIENTSIDE
//up
if (playerdir=0){
  
this.x=playerx-1;
  
this.y=playery-2;
}
//left
if (playerdir=1){
  
this.x=playerx-2;
  
this.y=playery;
}
//down
if (playerdir=2){
  
this.x=playerx+1;
  
this.y=playery+2;
}
//right
if (playerdir=3){
  
this.x=playerx+2;
  
this.y=playery;
}
}

if (
weaponfired){
  
setshootparams PARAMEQUALS;
  
//shoot x,y,z,angle,zangle,power,gani,ganiparams;
  
shoot this.x,this.y,playerz,(playerdir 1) * pi 2,,,bullet gani here,;
  
setani firing motion here,;
  
replaceani idle,standing still motion here;
  
replaceani walk,walking motion here;
  
freezeplayer 0.0383;
  
sleep 0.1;
}
if (
actionprojectile) {
  if(
strequals(#p(index),PARAMEQUALS)) {
    
hurt 3;
  }


TOLD YOU I COULD MAKE ME 1


NOW DONT TREAT ME LIKE S#1t
got that!

note post a reply if you need help with it

like where to put it lol

Tigairius 03-04-2009 03:21 AM

ok, but you shouldn't use toweapons anymore unless you're only practicing offline.

Online this could be accomplished like so:
PHP Code:

//#CLIENTSIDE
function onWeaponFired() {
  
shoot(player.1.5 vecx(player.dir), player.vecy(player.dir), player.z, (playerdir 1) * pi 2NULLNULL"dg_bullet"NULL);
  
setani("dg_m16-fire"NULL);
  
freezeplayer(0.25);
}

function 
onActionProjectile() {
  
player.hearts -= 3;


Cheers.

Twinny 03-04-2009 04:48 AM

gs1 is deprecated and highly inefficient: you should take the time to convert your script to GS2.

You should place the tests for player directions inside the if (weaponfired) condition otherwise each time anything happens, every single condition in the code must be tested and that is highly inefficient (ultimately, player direction should be done inside a weaponfired function). You should also use if->elseif->else otherwise each condition must be interpreted as well <- further inefficieny and it looks really poor.

PHP Code:

//The power of nesting!
// Far more efficient then 5 conditional checks right after each other
if (weaponfired)
{
  if (
condition1)
  {
    
//stuff
  
}
  else if (
condition2)
    
//stuff
  
}
  else
  {
    
//stuff
  
}


You should provide the gani you referenced.

With your attitude and attacks on forum members, you will continue to be treated like ****. You brought in a script you didn't even understand, abused members until they fixed it for you then dumped it here as if it were golden. Grow up.

Codein 03-04-2009 01:39 PM

Also, you're using the assignment operator for comparisons. Instead of using '=' to compare, use '=='.

GULTHEX 03-04-2009 10:58 PM

Okay I will note that.

K I just dont know much gs2

because I played graal when gs1 was the main scripting language.
And also my scripting teacher only knew gs1 so lol.

Codein 03-04-2009 11:27 PM

Quote:

Originally Posted by GULTHEX (Post 1471435)
Okay I will note that.

K I just dont know much gs2

because I played graal when gs1 was the main scripting language.
And also my scripting teacher only knew gs1 so lol.

I thought nobody taught you? :asleep:

Anyway, please make the effort to learn GS2.

Deas_Voice 03-05-2009 04:03 PM

i think there have been alot of GS1 around the newbie scripters, they learn GS1 instead of GS2 because of the level editor and the un-updated wiki.

Codein 03-05-2009 04:05 PM

Quote:

Originally Posted by Deas_Voice (Post 1471593)
i think there have been alot of GS1 around the newbie scripters, they learn GS1 instead of GS2 because of the level editor and the un-updated wiki.

I don't think that's an excuse anymore now there's the Testbed server.

cbk1994 03-05-2009 11:12 PM

Someone (Global Scripting Team???) needs to go through the most important pages on the wiki (e.g. "Serverside Functions") and just write in a description for all the commands & their parameters. I know someone else could do it, but most scripters are generally too busy. What is it that the GST does, anyway? I certainly don't see them out on servers helping people much.

Tigairius 03-05-2009 11:23 PM

Quote:

Originally Posted by cbk1994 (Post 1471661)
Someone (Global Scripting Team???) needs to go through the most important pages on the wiki (e.g. "Serverside Functions") and just write in a description for all the commands & their parameters. I know someone else could do it, but most scripters are generally too busy. What is it that the GST does, anyway? I certainly don't see them out on servers helping people much.

It's a wiki. Do it yourself.

Tolnaftate2004 03-06-2009 12:34 AM

Quote:

Originally Posted by cbk1994 (Post 1471661)
I certainly don't see them out on servers helping people much.

Because it's just Skyld now?

Vulgar 03-06-2009 12:36 AM

Quote:

Originally Posted by Tolnaftate2004 (Post 1471693)
Because it's just Skyld now?

Quitter

GULTHEX 03-06-2009 01:27 AM

okay.........

your insulting me even known i posted somthing helpful to alot of people


so ummmm
lol

lol everybody hates me even when im helping people

everybody needs some help with a gun server

and im trying to learn gs2

so please stop insulting me


atleast im not begging for scripts


after my ban was over i learned

im older now i was like 10 when i posted all those old scripts


so iv tried to learn how to script better

and stop insutlting me once again


your insulting mebecause of the past


dont post on my stuff if your just gona insult me

Tolnaftate2004 03-06-2009 01:30 AM

Quote:

Originally Posted by Vulgar (Post 1471695)
Quitter

I didn't quit... :(

cbk1994 03-06-2009 03:19 AM

Quote:

Originally Posted by Tigairius (Post 1471671)
It's a wiki. Do it yourself.

Good idea. On top of me paying to develop their game, why don't I also update their documentation so I can continue to develop their game?

I don't have the time to go through the wiki and update all the functions. Isn't this why the GST was formed?

cyan3 03-06-2009 10:48 AM

Quote:

Originally Posted by GULTHEX (Post 1471709)
okay.........

your insulting me even known i posted somthing helpful to alot of people


so ummmm
lol

lol everybody hates me even when im helping people

everybody needs some help with a gun server

and im trying to learn gs2

so please stop insulting me


atleast im not begging for scripts


after my ban was over i learned

im older now i was like 10 when i posted all those old scripts


so iv tried to learn how to script better

and stop insutlting me once again


your insulting mebecause of the past


dont post on my stuff if your just gona insult me

I've looked at the last few posts and I can't see anyone insutlting you.

xXziroXx 03-06-2009 01:31 PM

Quote:

Originally Posted by Tolnaftate2004 (Post 1471710)
I didn't quit... :(

Being absent over a long period of time is what I would call indirect quitting. :rolleyes:

Tolnaftate2004 03-06-2009 08:51 PM

Quote:

Originally Posted by xXziroXx (Post 1471819)
Being absent over a long period of time is what I would call indirect quitting. :rolleyes:

I ran out of gold forever ago and asked several times for more. Until then I could not do anything except restart the skills server apparently. :\

fowlplay4 03-07-2009 03:49 PM

This thread is great, and the poll is amazing.

Good work Gulthex keep on contributing!

devilsknite1 03-07-2009 09:50 PM

Quote:

Originally Posted by fowlplay4 (Post 1472080)
This thread is great, and the poll is amazing.

Good work Gulthex keep on contributing!

lol :rolleyes:

GULTHEX 03-09-2009 02:06 AM

Quote:

Originally Posted by fowlplay4 (Post 1472080)
This thread is great, and the poll is amazing.

Good work Gulthex keep on contributing!

Okay thankyou

and i will

MiniOne 03-09-2009 08:02 AM

It was a good effort.
Though I agree with the rest script with the G2 language rather then G1.

@Tig Stefan/Dan should update the wiki they made to help people who paid for their game so they could script and you should too if you get paid.

GULTHEX 04-20-2009 07:18 PM

okay back on topic

thanks for your support guys

i will work on more scripts for the code gallery

sorry for the bugs about it

ill add a better gunscript soon

fowlplay4 04-21-2009 11:45 PM

Just update your first post!

Also take the opportunity to make something different & unique.

Like fire that propagates, FOREVER. Really it's up to your imagination.

Nataxo 04-21-2009 11:51 PM

Quote:

Originally Posted by Tolnaftate2004 (Post 1471863)
I ran out of gold forever ago and asked several times for more. Until then I could not do anything except restart the skills server apparently. :\

And I <3 you for helping with that :).

GULTHEX 04-22-2009 03:46 AM

it wont let me edit it lol

cbk1994 04-22-2009 04:51 AM

Quote:

Originally Posted by GULTHEX (Post 1485948)
it wont let me edit it lol

Post it here, and forum PM a moderator and ask them to edit it. I'm sure they'll be happy to.

[email protected] 07-31-2009 01:20 PM

Way to steal my script from testbed server Gulthex. Let me tell you who really scripted this. Myself and meph, thats rights meph, from era. I asked him if he could help me with it because I knew that he had once scripted a multi functional gun system and I knew he knew how. So he helped me, and about a quarter of the way to the script, I got the hang of it and scripted the rest my self. I hate people who do this. Gulthex at least stop advertising that it's yours. It's not, and the fact that you would even say it is just sickens me. Nough said.

NightmareNight 07-31-2009 11:02 PM

Quote:

Originally Posted by GULTHEX (Post 1471709)

im older now i was like 10 when i posted all those old scripts

that was last year, so...you're 11 now?

cbk1994 07-31-2009 11:35 PM

Quote:

Originally Posted by [email protected] (Post 1511834)
Way to steal my script from testbed server Gulthex. Let me tell you who really scripted this. Myself and meph, thats rights meph, from era. I asked him if he could help me with it because I knew that he had once scripted a multi functional gun system and I knew he knew how. So he helped me, and about a quarter of the way to the script, I got the hang of it and scripted the rest my self. I hate people who do this. Gulthex at least stop advertising that it's yours. It's not, and the fact that you would even say it is just sickens me. Nough said.

Not to offend you, but if I wrote this, I wouldn't be claiming any kind of credit for it.

Switch 08-01-2009 05:02 AM

I doubt someone with your grammar could begin to make something as simple as this.

[email protected] 08-04-2009 05:09 AM

this guy pisses me off to no end. Stop taking credit for scripts that arn't yours. you ***got.

fowlplay4 08-04-2009 07:04 AM

Quote:

Originally Posted by [email protected] (Post 1512830)
this guy pisses me off to no end. Stop taking credit for scripts that arn't yours. you ***got.

People who live in glass houses shouldn't throw stones.

[email protected] 08-07-2009 12:22 AM

Gulthex, chill out, you act like you Concoured the dragon slare.

Twinny 08-07-2009 12:13 PM

Quote:

Originally Posted by [email protected] (Post 1513482)
Gulthex, chill out, you act like you Concoured the dragon slare.

It's awesome cause Gulthex never replied to anything you posted in this thread? Indeed, he hasn't replied to this thread at all since you've posted... less talking out of your arse?

Take up in PMs if you want contest ownership rather than trying to slur his character with crude insults about his alleged sexual preferences.

Finally, what the hell is, "Concoured the dragon slare"? In English, please.

CharlieM 08-07-2009 01:24 PM

I really think pa would know better then to help someone make a GS1 script seeing as it's absolete I'm not a scripter but I can see that gulthex and jamerson need to spend more time on testbed and less time posting Gs1 and incomplete scripts

Pelikano 08-07-2009 01:28 PM

Quote:

Originally Posted by Switch (Post 1512146)
I doubt someone with your grammar could begin to make something as simple as this.

Grammar doesn't mean anything. My uh brother in law doesn't speak one word English, yet he knows C++, Java and PHP.

Switch 08-07-2009 09:52 PM

Quote:

Originally Posted by Pelikano (Post 1513553)
Grammar doesn't mean anything. My uh brother in law doesn't speak one word English, yet he knows C++, Java and PHP.

But he can speak/write a different language, right? I'm pretty sure GULTHEX said somewhere that he does in fact speak English, so he does know how, unlike your brother in law who is probably foreign to an english speaking country (or immigrated and hasn't learned to speak english yet), to speak it. How can he "write" scripts and then **** up his entire posts?


All times are GMT +2. The time now is 02:42 PM.

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