Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   need help (https://forums.graalonline.com/forums/showthread.php?t=47894)

bashjgovers 09-11-2003 09:37 PM

need help
 
who can help me....

im making some different arrows and they have differen actions..
i made it like this

if (playerenters) {
toweapons *arrow;
}
if (actionprojectile) {
///actions here
}

it works for 1 arrow but on this way i can only use 1 arrow
:(

can someone help me to make it that u can use more arrows?

marcoR 09-11-2003 09:47 PM

I don't know much about actionprojectile... but could I have some more info on your script?

bashjgovers 09-11-2003 09:52 PM

i just used the shoot script in the bow NPC, and the bow and arrow works.

My arrow is a ice arrow, if it hits the player, the player will be frozen.

Now i also wanna make a Fire arrow, but if a also just use a shoot function, it will has the same actions as the ice arrow...

DustyPorViva 09-11-2003 10:03 PM

I believe you need to set the shoot params.

It's in newfeatures2002.txt

Knuckles 09-11-2003 10:24 PM

Re: need help
 
Quote:

Originally posted by bashjgovers
who can help me....

im making some different arrows and they have differen actions..
i made it like this

if (playerenters) {
toweapons *arrow;
}
if (actionprojectile) {
///actions here
}

it works for 1 arrow but on this way i can only use 1 arrow
:(

can someone help me to make it that u can use more arrows?

That wouldn't even work at all...
And do what dustey said, and read up on the following:

setshootparams params;
shoot x,y,z,angle,zangle,power,gani;

DustyPorViva 09-11-2003 10:53 PM

Re: Re: need help
 
Quote:

Originally posted by Knuckles


That wouldn't even work at all...
And do what dustey said, and read up on the following:

setshootparams params;
shoot x,y,z,angle,zangle,power,gani;

>:O

Dusty not DustEy!

osrs 09-11-2003 11:02 PM

Re: Re: Re: need help
 
Quote:

Originally posted by DustyPorViva


>:O

Dusty not DustEy!

Is that so important to post again? X_x

GoZelda 09-14-2003 01:46 PM

Quote:

Originally posted by DustyPorViva
I believe you need to set the shoot params.

It's in newfeatures2002.txt

Maybe, just maybe, you can use
arrows[index].x
and
arrows[index].y
to have a triggeraction at the position of the arrow, which can then be used in a system npc to freeze the player.

bashjgovers 09-14-2003 11:37 PM

the arrow isnt a default arrow, but a gani from shoot command

GoZelda 09-15-2003 07:09 PM

Quote:

Originally posted by bashjgovers
the arrow isnt a default arrow, but a gani from shoot command
Guess you'll have to do it the Era way.

Riot-Starter 09-15-2003 11:40 PM

Quote:

Originally posted by GoZelda
Guess you'll have to do it the Era way.
Hrm? The "Era" way?

GoZelda 09-16-2003 06:49 PM

Quote:

Originally posted by Riot-Starter

Hrm? The "Era" way?

"shoot" command.

Chrisz 09-16-2003 07:42 PM

;) We defined a standard. Well since I made the scripts ill help you.

You say you have a shoot?? well

NPC Code:

setshootparams typeofarrow;
//Your shootstuffhere

if (actionprojectile) {
if (strequals(#p(0),icearrow)) {
//Icearrow stuff here OR IceArrow(); function depends what you want. :)
}
}


And you can easily add fire arrows to that, explosive arrows, all kinds :D Possibillities = Endless. As long as you have the ideas, that is.

GoZelda 09-16-2003 08:23 PM

Quote:

Originally posted by Chrisz
;) We defined a standard. Well since I made the scripts ill help you.

You say you have a shoot?? well

NPC Code:

setshootparams typeofarrow;
//Your shootstuffhere

if (actionprojectile) {
if (strequals(#p(0),icearrow)) {
//Icearrow stuff here OR IceArrow(); function depends what you want. :)
}
}


And you can easily add fire arrows to that, explosive arrows, all kinds :D Possibillities = Endless. As long as you have the ideas, that is.

omfg you forgot the shoot command XD

SaijinGohan 09-17-2003 04:09 AM

Quote:

NPC Code:
...
//Icearrow stuff here OR IceArrow(); function depends what
...


Thats where the shoot command is.


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

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