Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Is there any way to... (https://forums.graalonline.com/forums/showthread.php?t=29046)

Dark-Dragoon 05-13-2002 05:17 AM

Is there any way to...
 
Make an npc baddy use a npcw?
like if i could get a npc baddy to use the flamethrower

Googi 05-13-2002 05:20 AM

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.

Dark-Dragoon 05-13-2002 05:32 AM

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

Saga2001 05-13-2002 05:43 AM

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...x_x. People really are dumb sometimes.

Dark-Dragoon 05-13-2002 05:46 AM

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.

Googi 05-13-2002 05:57 AM

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;
}


Dark-Dragoon 05-13-2002 06:10 AM

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
;) ))

Dark-Dragoon 05-13-2002 06:13 AM

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*
:p

BBflat 05-13-2002 06:29 AM

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!!!!!!!!!

Saga2001 05-13-2002 06:40 AM

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.

BBflat 05-13-2002 06:47 AM

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

Saga2001 05-13-2002 07:02 AM

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...x_x

TDO2000 05-13-2002 08:14 PM

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 ;)

Saga2001 05-13-2002 10:36 PM

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. ;)

mhermher 05-14-2002 01:17 AM

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;
}

Despo1 05-14-2002 01:37 AM

or :)
NPC Code:

if(weaponfired){
setani shoot,;
freezeplayer .3;
for(i=5; i<10; i++){
putexplosion 1,x+(-1)+vecx(playerdir)*i,y+(-1)+vecy(playerdir
*i;
sleep 0.05;
}
}


Dark-Dragoon 05-14-2002 02:22 AM

ok, ok
 
ok sorry everyone. for sa...er...pastaustin, sorry. none of my (few) friends like graal. i was only joking... (guess its a character flaw)so sorry for whatever. but one thing... pastaustin, when did i [I]beg?/I]
Oh and for the last 2 or 3 posters, we were trying to get the "flamethrower" to work with an NPC baddy, not me. it works with me with the original script

Saga2001 05-14-2002 04:17 AM

Quote:

Originally posted by Despo1
or :)
NPC Code:

if(weaponfired){
setani shoot,;
freezeplayer .3;
for(i=5; i<10; i++){
putexplosion 1,x+(-1)+vecx(playerdir)*i,y+(-1)+vecy(playerdir
*i;
sleep 0.05;
}
}


I like this one more personally.

Falcor 05-14-2002 04:55 AM

I like weapons that do not have to use putexplosion.

Saga2001 05-14-2002 06:09 AM

Quote:

Originally posted by Falcor
I like weapons that do not have to use putexplosion.
I would to, but flamethrower would be better w/putexp

Googi 05-14-2002 11:15 PM

Quote:

Originally posted by Dark-Dragoon

googi

Quote:

Originally posted by Dark-Dragoon
i feel so honored
...

WTF

Googi 05-14-2002 11:16 PM

Quote:

Originally posted by Kaimetsu


Don't you make me stab you, Googi.

NPC Code:

temp=playerx-x;
if(int(temp)==temp){
if(temp<-1&&temp>-13){
blah;
}
}


Yes, I know, just for some reason I didn't think of that...like when I made that dumb script and used like 5 vars and timeouts instead of just using the sleep command x_x


All times are GMT +2. The time now is 11:51 PM.

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