Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-09-2004, 02:55 PM
Vegeta940 Vegeta940 is offline
Registered User
Join Date: Oct 2003
Location: I won't tell
Posts: 18
Vegeta940 is on a distinguished road
Send a message via AIM to Vegeta940 Send a message via Yahoo to Vegeta940
Post Gravity Script

Oh my god I can't seem to get my gravity scripts to work, I want to know if anyone is having this problem, I used it online for a gravity race event and i can walk, i can jump or do anything like that, can someone fix my script, ill post later when im on MY computer, OK =)


:grrr:
Reply With Quote
  #2  
Old 02-09-2004, 04:04 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Rules & Guidelines (04-14-2003 until 09-07-2004)
--------------------------------------------------------------------------------
Rules:

1) Don't post here just asking for scripts, or asking for people to fix scripts that are beyond your skill level.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #3  
Old 02-09-2004, 05:24 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Did you add
//#CLIENTSIDE
For Online testing?
__________________
V$:CONFL16T
Reply With Quote
  #4  
Old 02-09-2004, 09:37 PM
Genesis Genesis is offline
Level Maker
Genesis's Avatar
Join Date: Jan 2003
Location: Waterloo,IL
Posts: 1,214
Genesis is on a distinguished road
Quote:
Originally posted by osrs
osrs I know we are buds but how are they suppose to learn to script if they cant ask for help past there abilitys??
I mean if they knew how to do it they wouldnot ask am I right?
Reply With Quote
  #5  
Old 02-09-2004, 09:47 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Genesis


osrs I know we are buds but how are they suppose to learn to script if they cant ask for help past there abilitys??
I mean if they knew how to do it they wouldnot ask am I right?
He didn't ask for help, he asked us to fix or, in other words, finish the script for him.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #6  
Old 02-09-2004, 09:50 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Genesis


osrs I know we are buds but how are they suppose to learn to script if they cant ask for help past there abilitys??
I mean if they knew how to do it they wouldnot ask am I right?
Read--->Think--->Post
__________________
V$:CONFL16T
Reply With Quote
  #7  
Old 02-09-2004, 11:30 PM
Genesis Genesis is offline
Level Maker
Genesis's Avatar
Join Date: Jan 2003
Location: Waterloo,IL
Posts: 1,214
Genesis is on a distinguished road
Quote:
Originally posted by WanDaMan

Read--->Think--->Post
Dude if you dont stop being a Wannabe cuz thats what you are i am going to s**** you.
Reply With Quote
  #8  
Old 02-09-2004, 11:35 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Genesis


Dude if you dont stop being a Wannabe cuz thats what you are i am going to s**** you.
Shh. Stop acting tough. It's not healthy.

Also, if you have a problem with the rules that Kaimetsu made and that I choose to enforce, cope. If you people can't do something past their abilities and are stuck then they should either
  • Don't script
  • Learn to script
  • Research ways in which you can learn to script better
  • See A
Reply With Quote
  #9  
Old 02-09-2004, 11:42 PM
Genesis Genesis is offline
Level Maker
Genesis's Avatar
Join Date: Jan 2003
Location: Waterloo,IL
Posts: 1,214
Genesis is on a distinguished road
Quote:
Originally posted by Python523


Shh. Stop acting tough. It's not healthy.

Also, if you have a problem with the rules that Kaimetsu made and that I choose to enforce, cope. If you people can't do something past their abilities and are stuck then they should either
  • Don't script
  • Learn to script
  • Research ways in which you can learn to script better
  • See A
Just because its the rules doesnot mean its right.

Rules change... Well they do here in America.
Reply With Quote
  #10  
Old 02-09-2004, 11:54 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Genesis


Just because its the rules doesnot mean its right.

Rules change... Well they do here in America.
Well, not following them means they have to face the consequences. And please, don't even bother comparing a forum section to a whole country, and I wouldn't be so proud about such a simple concept of demoncracy the America, plenty of countries use it.
Reply With Quote
  #11  
Old 02-10-2004, 01:17 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Quote:
Just because its the rules doesnot mean its right.

Rules change... Well they do here in America.
Erm.... These rules didn't change. And I don't think they will this year! Unless Python decides to prove me wrong by changing them.
__________________
- Rance Vicious
Reply With Quote
  #12  
Old 02-10-2004, 01:43 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Termina_Owner


Erm.... These rules didn't change. And I don't think they will this year! Unless Python decides to prove me wrong by changing them.
Stop calling my Python x.X
Reply With Quote
  #13  
Old 02-10-2004, 01:54 AM
Vegeta940 Vegeta940 is offline
Registered User
Join Date: Oct 2003
Location: I won't tell
Posts: 18
Vegeta940 is on a distinguished road
Send a message via AIM to Vegeta940 Send a message via Yahoo to Vegeta940
Angry ugh

people jesus christ im just asking for u to tell me what i did wrong, btw i got the script now if u want it.\


o and btw thx genesis i agree wit u, i mean, this section was meant to help with peoples scripts, why do u peeps make such a big f***in deal about it?
Attached Files
File Type: txt gravscript.txt (3.1 KB, 207 views)
Reply With Quote
  #14  
Old 02-10-2004, 02:12 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Quote:
Originally posted by Python523

Stop calling my Python x.X
What do I call you then? (I only see your account, yet nothing indicated whom you like being called.)

Quote:
Originally posted by Genesis
Dude if you dont stop being a Wannabe cuz thats what you are i am going to s**** you.
Quote:
Originally posted by WanDaMan
Read--->Think--->Post
... You should follow the advice in which you quoted.

As for the script in question, I'll check it out now.

NPC Code:

toweapons *Gravity;



Just BECAUSE this is here, it shouldn't go online.

You have no //#CLIENTSIDE

You should learn to indent.

NPC Code:

if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
}



*blinks*

... Higher the standards of your own coding. If you can't do any better then this, you should go back to elementary to learn the fundamental basics.
__________________
- Rance Vicious
Reply With Quote
  #15  
Old 02-10-2004, 02:19 AM
Vegeta940 Vegeta940 is offline
Registered User
Join Date: Oct 2003
Location: I won't tell
Posts: 18
Vegeta940 is on a distinguished road
Send a message via AIM to Vegeta940 Send a message via Yahoo to Vegeta940
Talking ?

dude ****, if u wanna see some of my work, come on Spartica
Reply With Quote
  #16  
Old 02-10-2004, 04:21 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Termina_Owner


What do I call you then? (I only see your account, yet nothing indicated whom you like being called.)
Other peopel call me Jagen, my sig indicates that, and Spark's global contact list (I'm GST) also refers to me as Jagen.
Reply With Quote
  #17  
Old 02-10-2004, 05:04 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Re: ugh

Quote:
Originally posted by Vegeta940
people jesus christ im just asking for u to tell me what i did wrong, btw i got the script now if u want it.\


o and btw thx genesis i agree wit u, i mean, this section was meant to help with peoples scripts, why do u peeps make such a big f***in deal about it?
If we don't make a big f'n deal about it, people will just continuously ask for scripts here, degrading the quality of threads in this forum, causing some skilled scripters to stop posting, and ensuring the continuation of script stealing. People who ask for scripts w/out bothering to learn are the BANE of Gscripting, we do not wish to promote that here, nor anywhere else.

What you are asking is for someone to just fix your script, you need to be able to find a part of your script that doesn't seem to be working, and ask about that and why it is not working. If you can do that, then by all means do so. But just posting your whole script and asking us to find what is wrong and give suggestions (fix it) just doesn't fly. Most everyone here will be happy to help you if you are willing to take the effort to take apart your script, find what is not working, then ask why it is not working (scripters are rather lazy, and don't feel like doing alot of work just to help someone out). If you can do that and then learn from what help you get, noone should give you any crap.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #18  
Old 02-10-2004, 06:57 AM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Re: Re: ugh

Quote:
Originally posted by Dach


If we don't make a big f'n deal about it, people will just continuously ask for scripts here, degrading the quality of threads in this forum, causing some skilled scripters to stop posting, and ensuring the continuation of script stealing. People who ask for scripts w/out bothering to learn are the BANE of Gscripting, we do not wish to promote that here, nor anywhere else.

What you are asking is for someone to just fix your script, you need to be able to find a part of your script that doesn't seem to be working, and ask about that and why it is not working. If you can do that, then by all means do so. But just posting your whole script and asking us to find what is wrong and give suggestions (fix it) just doesn't fly. Most everyone here will be happy to help you if you are willing to take the effort to take apart your script, find what is not working, then ask why it is not working (scripters are rather lazy, and don't feel like doing alot of work just to help someone out). If you can do that and then learn from what help you get, noone should give you any crap.
Couldn't have said better.

Erm... Yea... Couldn't've said better.

As for the script, it was horribly wrong. I mean... The first thing I saw was "toweapons", then I saw a loop using If's:
NPC Code:

i = 0;
if (1==1) i++; // I don't know, if (1) command doesn't work anymore.
if (1==1) i++;
if (1==1) i++;
if (1==1) i++;
if (1==1) i++;
if (1==1) i++;
message #(i);


That's basically what was in the script... I didn't bother seeing any more indepth. (BTW, that was a simplified version of what I posted earlier, and teh falg wasn't 1 == 1.)

It all went downhill from there
__________________
- Rance Vicious
Reply With Quote
  #19  
Old 02-10-2004, 07:06 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Python523
my sig indicates that
No?
__________________
Kat
Reply With Quote
  #20  
Old 02-10-2004, 10:03 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
It has his name in RC or something (a log)
I was right, *High fives*..
I've been wondering, why would there be a gravity NPC that's just corupt people running and jumping...
And as many have suggested you have stole, don't steal complex scripts with complex commands like that when you don't know how to indent. Lol.
If you're going to steal something don't make it to obvious you didn't make it :o

<Spellin'>
__________________
V$:CONFL16T
Reply With Quote
  #21  
Old 02-10-2004, 04:04 PM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Actually, it's pretty hilarious how a script like that even managed to get copied. It's below any standards I've seen of nowadays.

The script isn't very good, and I think that he is all the worst copying that one in particular. It seems like a script that would have worked in version 2.38 or somewhere near that version. Those kinds of scripts work very badly when the NC Server came out. I wouldn't recommend anyone to copy the scripts from those old sites in which no one goes to anymore due to unupdated scripts.

Well... I don't know if he copied or not, but if he didn't, he'd be able to see at least one of the mistakes in which he caused.
__________________
- Rance Vicious
Reply With Quote
  #22  
Old 02-10-2004, 04:31 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Hmm, now that you mention it, it does look similar to this script (which I edited awhile ago and don't remember what I did)
NPC Code:

// NPC made by DarkNija
if (playerenters) {
hide;
toweapons Gravity;
playerx=int(playerx);
playery=int(playery);
playerdir=3;
timeout=0.05;
}
if (timeout&&isweapon) {
if (playerhearts==0) {
players[0].dir=2;
}
if (!antigravity) {setgif gravityboots2.png;replaceani swim,marioswim;
if (playerswimming&&keydown(0)) {velocity=-1;}
if (keydown(0)&&playersprite>=1&&playersprite<=8) {playery+=.05;}
if (playerdir==0||playerdir==2) {playerdir=gravdir;}
if (onwall(playerx+0.5,playery+3)||onwall(playerx+1.5 ,playery+3)) {
velocity=0;
playery=int(playery);
if (keydown(6)) velocity=-2;

}
else if (keydown(2)&&playersprite>=1&&playersprite<=8) playery-=0.5;
if (onwall(playerx+0.5,playery-0.1)||onwall(playerx+0.5,playery)||onwall(playerx+ 1.5,playery)||onwall(playerx+1.5,playery-0.1)) velocity=0.1;
else {
if (velocity>-0.1&&velocity<=0) velocity=0.1;
if (velocity>3) velocity=3;
}
if (abs(velocity)>0) {
playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
if ((velocity>0&&(onwall(playerx+0.5,playery+3)||onwa ll(playerx+1.5,playery+3)))||(velocity<0&&(onwall( playerx+0.5,playery)||onwall(playerx+1.5,playery)) )) playery=int(playery);
else playery+=velocity/6;
}
velocity+=abs(velocity/4);
if (this.shot==9) {
hideimg 345;
this.shot=0;
}
if (this.shot>0) {
if (this.sd==1) this.sx-=0.75;
if (this.sd==3) this.sx+=0.75;
showimg 345,throwsword#v(this.sd).gif,this.sx,this.sy;
if (this.sd==1) {
if (testplayer(this.sx,this.sy)>-2) hitplayer testplayer(this.sx,this.sy),2,playerx,playery;
if (testnpc(this.sx,this.sy)>-2) hitnpc testnpc(this.sx,this.sy),2,playerx,playery;
if (testcompu(this.sx,this.sy)>-2) hitcompu testcompu(this.sx,this.sy),2,playerx,playery;
}
if (this.sd==3) {
if (testplayer(this.sx+1,this.sy)>-2) hitplayer testplayer(this.sx+1,this.sy),2,playerx,playery;
if (testnpc(this.sx+1,this.sy)>-2) hitnpc testnpc(this.sx+1,this.sy),2,playerx,playery;
if (testcompu(this.sx+1,this.sy)>-2) hitcompu testcompu(this.sx+1,this.sy),2,playerx,playery;
}
this.shot++;
}
if (playersprite==11&&playerhearts==playerfullhearts) {
this.shot=1;
this.sd=playerdir;
if (this.sd==1) {
this.sx=playerx-2;
this.sy=playery+1;
}
if (this.sd==3) {
this.sx=playerx+2;
this.sy=playery+1;
}
showimg 345,throwsword#v(this.sd).gif,this.sx,this.sy;
}
if ((keydown(0)||keydown(2))&&!(keydown(1)||keydown(3 ))) playersprite=0;
if (keydown(1)&&!keydown(3)) playerdir=1;
if (keydown(3)&&!keydown(1)) playerdir=3;
gravdir=playerdir;
}
timeout=0.05;
}else{setgif gravityboots.png;replaceani swim,swim}
if (keydown(6)) {setani jumpnrun,;}

__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #23  
Old 02-10-2004, 05:31 PM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
Quote:
Originally posted by Termina_Owner
Actually, it's pretty hilarious how a script like that even managed to get copied. It's below any standards I've seen of nowadays.

The script isn't very good, and I think that he is all the worst copying that one in particular. It seems like a script that would have worked in version 2.38 or somewhere near that version. Those kinds of scripts work very badly when the NC Server came out. I wouldn't recommend anyone to copy the scripts from those old sites in which no one goes to anymore due to unupdated scripts.

Well... I don't know if he copied or not, but if he didn't, he'd be able to see at least one of the mistakes in which he caused.
C:\graal2001\levels\weapons\hammer.txt

<3
Reply With Quote
  #24  
Old 02-10-2004, 09:15 PM
Duwul Duwul is offline
Registered User
Join Date: Nov 2003
Posts: 105
Duwul is on a distinguished road
This is a funny script hehe =P
__________________
-Ajira
Liek, omigosh.
<3 DoomsDay.
Reply With Quote
  #25  
Old 02-10-2004, 09:42 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Python523
my sig indicates that
It doesn't really Only the Jagen prob...
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #26  
Old 02-10-2004, 10:46 PM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
Quote:
Originally posted by Duwul
This is a funny script hehe =P
I would put it in the catagory Depressing.
__________________
- Rance Vicious
Reply With Quote
Reply


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 03:18 AM.


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