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 05-13-2002, 05:17 AM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
Is there any way to...

Make an npc baddy use a npcw?
like if i could get a npc baddy to use the flamethrower
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #2  
Old 05-13-2002, 05:20 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Re: Is there any way to...

Quote:
Originally posted by Dark-Dragoon
Make an npc baddy use a npcw?
like if i could get a npc baddy to use the flamethrower
Yes, hell, even I could probably do that, but I would need to have the flamethrower script or an explanation of what your "flamethrower" does.
__________________
Reply With Quote
  #3  
Old 05-13-2002, 05:32 AM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
Not a chance, dirty script stealer.
........Just kidding, googi.
here 'tis...
if (playertouchsme) {
toweapons Flamethrower;
}
if (weaponfired&&playerdir=3) {
freezeplayer 1;
playersprite=33;
putexplosion 1,playerx+2,playery;
sleep 0.1;
putexplosion 1,playerx+4,playery;
sleep 0.1;
putexplosion 1,playerx+6,playery;
sleep 0.1;
putexplosion 1,playerx+8,playery;
sleep 0.1;
putexplosion 1,playerx+10,playery;
sleep 0.1;
putexplosion 1,playerx+12,playery;
sleep 0.25;
;
}
if (weaponfired&&playerdir=2) {
playersprite=33;
freezeplayer 1;
putexplosion 1,playerx,playery+2;
sleep 0.1;
putexplosion 1,playerx,playery+4;
sleep 0.1;
putexplosion 1,playerx,playery+6;
sleep 0.1;
putexplosion 1,playerx,playery+8;
sleep 0.1;
putexplosion 1,playerx,playery+10;
sleep 0.1;
putexplosion 1,playerx,playery+12;
sleep 0.25;
;
}
if (weaponfired&&playerdir=1) {
playersprite=33;
freezeplayer 1;
putexplosion 1,playerx-2,playery;
sleep 0.1;
putexplosion 1,playerx-4,playery;
sleep 0.1;
putexplosion 1,playerx-6,playery;
sleep 0.1;
putexplosion 1,playerx-8,playery;
sleep 0.1;
putexplosion 1,playerx-10,playery;
sleep 0.1;
putexplosion 1,playerx-12,playery;
sleep 0.25;
playerbombs-=3;
}
if (weaponfired&&playerdir=0){
playersprite=33;
freezeplayer 1;
putexplosion 1,playerx,playery-2;
sleep 0.1;
putexplosion 1,playerx,playery-4;
sleep 0.1;
putexplosion 1,playerx,playery-6;
sleep 0.1;
putexplosion 1,playerx,playery-8;
sleep 0.1;
putexplosion 1,playerx,playery-10;
sleep 0.1;
putexplosion 1,playerx,playery-12;
sleep 0.25;
;
}
<edit>
Sorry, forgot to mention. I suck at scripting, i d/led this from a site
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #4  
Old 05-13-2002, 05:43 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Dark-Dragoon
Not a chance, dirty script stealer.
...
Sorry, forgot to mention. I suck at scripting, i d/led this from a site
Well I am confused...
You "jokingly" call him a script stealer, when you stole this one.
Why not have someone else fix it.... People really are dumb sometimes.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #5  
Old 05-13-2002, 05:46 AM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
hey hey hey, saga.
if you read one line BELOW that, you see it was a JOKE.
and if they OFFER many npc's to be PUBLICLY DOWNLOADED, is it stealing? if the person who made the site made the npc? i dont *think* so....
and i used it cuz i stink at scripting, trying to use these kind of things as an example... better than
if.that.fired- creates an algorithm which when vectored will create a square root of a piece of pie times the players x+(y-3)
(ok thats fake but it kinda hard to understand the stuff)
i wanted to see how stuff works to try to get better at scripting.
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #6  
Old 05-13-2002, 05:57 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Okay, put this into your NPC somewhere.
NPC Code:

if (playerx=x-2||playerx=x-3||playerx=x-4||playerx=x-5||playerx=x-6||playerx=x-7||playerx=x-8||playerx=x-9||playerx=x-10||playerx=x-11||playerx=x-12){
putexplosion 1,x-2,y;
sleep 0.1;
putexplosion 1,x-4,y;
sleep 0.1;
putexplosion 1,x-6,y;
sleep 0.1;
putexplosion 1,x-8,y;
sleep 0.1;
putexplosion 1,x-10,y;
sleep 0.1;
putexplosion 1,x-12,y;
sleep 0.25;
}
if (playerx=x+2||playerx=x+3||playerx=x+4||playerx=x+ 5||playerx=x+6||playerx=x+7||playerx=x+8||playerx= x+9||playerx=x+10||playerx=x+11||playerx=x+12){
putexplosion 1,x+2,y;
sleep 0.1;
putexplosion 1,x+4,y;
sleep 0.1;
putexplosion 1,x+6,y;
sleep 0.1;
putexplosion 1,x+8,y;
sleep 0.1;
putexplosion 1,x+10,y;
sleep 0.1;
putexplosion 1,x+12,y;
sleep 0.25;
}
if (playery=y-2||playery=y-3||playery=y-4||playery=y-5||playery=y-6||playery=y-7||playery=y-8||playery=y-9||playery=y-10||playery=y-11||playery=y-12){
putexplosion 1,x,y-2;
sleep 0.1;
putexplosion 1,x,y-4;
sleep 0.1;
putexplosion 1,x,y-6;
sleep 0.1;
putexplosion 1,x,y-8;
sleep 0.1;
putexplosion 1,x,y-10;
sleep 0.1;
putexplosion 1,x,y-12;
sleep 0.25;
}
if (playery=y+2||playery=y+3||playery=y+4||playery=y+ 5||playery=y+6||playery=y+7||playery=y+8||playery= y+9||playery=y+10||playery=y+11||playery=y+12){
putexplosion 1,x,y+2;
sleep 0.1;
putexplosion 1,x,y+4;
sleep 0.1;
putexplosion 1,x,y+6;
sleep 0.1;
putexplosion 1,x,y+8;
sleep 0.1;
putexplosion 1,x,y+10;
sleep 0.1;
putexplosion 1,x,y+12;
sleep 0.25;
}

__________________
Reply With Quote
  #7  
Old 05-13-2002, 06:10 AM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
yeah didnt seem to work... he slashes.
when i didnt have him on attack, (attackmode-none)
if i touched the bottom, he would use it...
((wow in my first scripting post i have gotten googi, saga, and kaimestu here. i feel so honored
))
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #8  
Old 05-13-2002, 06:13 AM
Dark-Dragoon Dark-Dragoon is offline
Registered User
Dark-Dragoon's Avatar
Join Date: May 2002
Posts: 886
Dark-Dragoon is on a distinguished road
oh my god.. i SPELT IT WRONG!
*a horde of evil ip banning, fire snake launching, ani lamer creating scripts rise up and swallow me whole*
__________________
R.I.P. 1999-2004 Graalian Year
The World Renown Nobody, Guy.
Reply With Quote
  #9  
Old 05-13-2002, 06:29 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Googi
Okay, put this into your NPC somewhere.
NPC Code:

if (playerx=x-2||playerx=x-3||playerx=x-4||playerx=x-5||playerx=x-6||playerx=x-7||playerx=x-8||playerx=x-9||playerx=x-10||playerx=x-11||playerx=x-12)

if (playerx=x+2||playerx=x+3||playerx=x+4||playerx=x+ 5||playerx=x+6||playerx=x+7||playerx=x+8||playerx= x+9||playerx=x+10||playerx=x+11||playerx=x+12)

if (playery=y-2||playery=y-3||playery=y-4||playery=y-5||playery=y-6||playery=y-7||playery=y-8||playery=y-9||playery=y-10||playery=y-11||playery=y-12)

if (playery=y+2||playery=y+3||playery=y+4||playery=y+ 5||playery=y+6||playery=y+7||playery=y+8||playery= y+9||playery=y+10||playery=y+11||playery=y+12

AHAHAHAHAHAHAHA!!!!!!!!!
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #10  
Old 05-13-2002, 06:40 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Dark-Dragoon
hey hey hey, saga.
if you read one line BELOW that, you see it was a JOKE.
and if they OFFER many npc's to be PUBLICLY DOWNLOADED, is it stealing? if the person who made the site made the npc? i dont *think* so....
and i used it cuz i stink at scripting, trying to use these kind of things as an example... better than
if.that.fired- creates an algorithm which when vectored will create a square root of a piece of pie times the players x+(y-3)
(ok thats fake but it kinda hard to understand the stuff)
i wanted to see how stuff works to try to get better at scripting.
One I am PastAustin. Also if you can't script it, you don't deserve it.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 05-13-2002, 06:47 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Saga2001


One I am PastAustin. Also if you can't script it, you don't deserve it.
Yes, you should prove your worthiness before anything is done to help. >=D
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #12  
Old 05-13-2002, 07:02 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Sorry i was really sharp about that.
What I mean is if u want help then get a friend who is interested and have him / her teach you to better, instead of begging. I also don't like it when people get scripts off sites...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #13  
Old 05-13-2002, 08:14 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Kaimetsu


I wouldn't mind, but everybody does it and the anger builds up...
graalians can't speel (<-- hrhr ^-^) names... There are for example only few who can spell Agelaos the right way
__________________
No Webhost at the moment
Reply With Quote
  #14  
Old 05-13-2002, 10:36 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu


I'd have trouble with it, since I barely know him, but if I was quoting one of his posts or something then I'd make sure to get it right.
I think its impolite not to Kaimetsu.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #15  
Old 05-14-2002, 01:17 AM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Quote:
Originally posted by Dark-Dragoon
stupid script
Why don't you just use this one?


[CODE]
if (playertouchsme) {
toweapons Flamethrower;
}
if (weaponfired) {
spyfire playerdir,3;
}
__________________
Donate money for my trip to Germany

Adiarde Manager
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:50 AM.


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