Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-13-2001, 11:19 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
Question gravity script help

ok guys i have a gravity script.this one works so when you enter the level it puts and npc named *gravity in the players inventory and i edited so when you leave the level(thanx boco) it delteds iself. now the whole script worksfine offline but when i tried it online it won't work....i tried clientside(even though ui inow your not suppose to make weapon npcs clientside) that didn't work..i looked through the script and didnt see any commands that need to be converted. any one know why this is happeneing?
  #2  
Old 06-13-2001, 11:21 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Thumbs down lol why?

that is stupid why make it a weapon??

for my gravity script I made I never made it a weapon...

the one on 2001 doesn't use a weapon either...

it is pointless
__________________
Thanks,
-KJL
  #3  
Old 06-13-2001, 11:26 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
well..

well the thing was i made it a weapon because it wouldn't work right for me unless it was a weapon....so i put it as one : / and it did..
  #4  
Old 06-13-2001, 11:44 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
Unhappy ok well..

ok well i dunno what i did before but now its setup so its not a weapon...(oby that makes the script easier) and it works fine offline but yet again online still won't work : / any clue why ???
  #5  
Old 06-14-2001, 09:03 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
long : /

its prolly too long... : /
  #6  
Old 06-15-2001, 03:48 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
If anyone is having trouble scripting it, just use the very first gravity script =P You can use it, do what you want with it =)

//Experiment with gravity by Warren and Silver
if (playerenters) {
playerx=int(playerx);
playery=int(playery);
playerdir=3;
timeout=0.05;
}
if (timeout) {
if (!antigravity) {
if (keydown(0)&&playersprite>=1&&playersprite<=8) playery+=0.5;
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 ((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;
}
  #7  
Old 06-16-2001, 11:47 PM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
Smile

thankyou i will!
  #8  
Old 06-17-2001, 03:39 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
there are still some bug since that was an experiment and ive modified a few things from the original so this is Warren's work Edited by me ; ) i know some people found a bug with the onwall, ill have to look at it =\
  #9  
Old 06-17-2001, 07:11 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
Hmm...I tested that script and it dosent let you move up...
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
  #10  
Old 06-17-2001, 07:41 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
did u try pressing A .. not the up arrow =\
  #11  
Old 07-10-2001, 11:31 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Talking

LOL. A always helps!
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
 


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


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