Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-11-2003, 09:37 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
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?
Reply With Quote
  #2  
Old 09-11-2003, 09:47 PM
marcoR marcoR is offline
Registered User
Join Date: Jul 2003
Posts: 1,349
marcoR is on a distinguished road
I don't know much about actionprojectile... but could I have some more info on your script?
__________________
If this is your account, contact me.
- loriel
email, jabber: [email protected]
icq: 67530805
aim: lorielvictrix
Reply With Quote
  #3  
Old 09-11-2003, 09:52 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
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...
Reply With Quote
  #4  
Old 09-11-2003, 10:03 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I believe you need to set the shoot params.

It's in newfeatures2002.txt
Reply With Quote
  #5  
Old 09-11-2003, 10:24 PM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
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;
__________________
Knuckles
"They say 60% of the time, it works everytime!"
Reply With Quote
  #6  
Old 09-11-2003, 10:53 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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!
Reply With Quote
  #7  
Old 09-11-2003, 11:02 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
Re: Re: Re: need help

Quote:
Originally posted by DustyPorViva


>:O

Dusty not DustEy!
Is that so important to post again? X_x
__________________
"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
  #8  
Old 09-14-2003, 01:46 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 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.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #9  
Old 09-14-2003, 11:37 PM
bashjgovers bashjgovers is offline
Registered User
Join Date: Aug 2003
Posts: 31
bashjgovers is on a distinguished road
the arrow isnt a default arrow, but a gani from shoot command
Reply With Quote
  #10  
Old 09-15-2003, 07:09 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 bashjgovers
the arrow isnt a default arrow, but a gani from shoot command
Guess you'll have to do it the Era way.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #11  
Old 09-15-2003, 11:40 PM
Riot-Starter Riot-Starter is offline
Registered User
Join Date: Aug 2001
Location: Central Florida, USA
Posts: 79
Riot-Starter is on a distinguished road
Send a message via AIM to Riot-Starter
Quote:
Originally posted by GoZelda
Guess you'll have to do it the Era way.
Hrm? The "Era" way?
Reply With Quote
  #12  
Old 09-16-2003, 06:49 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 Riot-Starter

Hrm? The "Era" way?
"shoot" command.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #13  
Old 09-16-2003, 07:42 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to 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 Possibillities = Endless. As long as you have the ideas, that is.
__________________
-Chrisz
Reply With Quote
  #14  
Old 09-16-2003, 08:23 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 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 Possibillities = Endless. As long as you have the ideas, that is.
omfg you forgot the shoot command XD
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #15  
Old 09-17-2003, 04:09 AM
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
Quote:
NPC Code:
...
//Icearrow stuff here OR IceArrow(); function depends what
...

Thats where the shoot command is.
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 04:12 AM.


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