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 12-15-2008, 01:48 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
shoot

'TServerLevel.shoot(float, float, float, float, float, float, str, str) - shoots a projectile with x,y,z,angle,zangle,strength,ani,aniparams'

What's the aniparams called in the gani script file? I've tried this.attr[0-5] and nothing is still showing... any ideas?
Reply With Quote
  #2  
Old 12-15-2008, 01:51 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Have you tried this.params[]?
Reply With Quote
  #3  
Old 12-15-2008, 02:36 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Yeah, no fix. :[
Reply With Quote
  #4  
Old 12-15-2008, 03:04 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by http://wiki.graal.net/index.php/Creation/Dev/Script/Client/TGaniObject
aniparams - string (read only)
That maybe?
Reply With Quote
  #5  
Old 12-15-2008, 04:07 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
rofl, love you crow!! xx
Reply With Quote
  #6  
Old 12-23-2008, 06:12 AM
[email protected] zeektheman2@hotmail.com is offline
SirZeek
Join Date: May 2008
Posts: 37
zeektheman2@hotmail.com is on a distinguished road
since this thread it open. Lets just say i am useing the function shoot() i have the angle at 0.9 im trying to find the distance from the player to my mouse. somthing like an arrow script, any ideas. If im not explaining this right please tell me.
Reply With Quote
  #7  
Old 12-23-2008, 09:57 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by [email protected] View Post
since this thread it open. Lets just say i am useing the function shoot() i have the angle at 0.9 im trying to find the distance from the player to my mouse. somthing like an arrow script, any ideas. If im not explaining this right please tell me.
You would need to use the distance formula

PHP Code:
distance = ((endx startx) ^ + (endy starty) ^ 2) ^ .5
... I think I got that right
__________________
Reply With Quote
  #8  
Old 01-02-2009, 03:24 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
If you just want to shoot a projectile to your mouse.. like Maloria:

use "getangle(mousex - player.x, mousey - player.y)"
Reply With Quote
  #9  
Old 01-02-2009, 04:37 PM
Cloven Cloven is offline
Delteria
Cloven's Avatar
Join Date: Dec 2006
Location: Florida, United States
Posts: 542
Cloven has a spectacular aura about
Send a message via AIM to Cloven
Quote:
Originally Posted by Pelikano View Post
use "getangle(mousex - player.x, mousey - player.y)"
Which of course isn't completely accurate simply leaving it like this.
Reply With Quote
  #10  
Old 01-02-2009, 05:01 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
why not? xD
Reply With Quote
  #11  
Old 01-02-2009, 06:32 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Pelikano View Post
why not? xD
Because it's not.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #12  
Old 01-02-2009, 10:23 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Pelikano View Post
why not? xD
I believe Cloven is implying how the player's coordinates are not at its center.
Quote:
Originally Posted by xXziroXx View Post
Because it's not.
Leaving out an explanation is a legitimate reason to be ignored. And it's unhelpful and annoying.

Made you look.
__________________
Reply With Quote
  #13  
Old 01-03-2009, 04:19 AM
Cloven Cloven is offline
Delteria
Cloven's Avatar
Join Date: Dec 2006
Location: Florida, United States
Posts: 542
Cloven has a spectacular aura about
Send a message via AIM to Cloven
Quote:
Originally Posted by Inverness View Post
I believe Cloven is implying how the player's coordinates are not at its center.
Indeed.
Reply With Quote
  #14  
Old 01-03-2009, 04:55 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Inverness View Post
Leaving out an explanation is a legitimate reason to be ignored. And it's unhelpful and annoying.
The way I see it, if he's interested in actually knowing the answer, he'll ask again - and then I can answer properly.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #15  
Old 01-03-2009, 03:35 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Thanks for your answers.
I see.
Reply With Quote
  #16  
Old 01-03-2009, 06:32 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by xXziroXx View Post
The way I see it, if he's interested in actually knowing the answer, he'll ask again - and then I can answer properly.
You are your joking...
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #17  
Old 01-04-2009, 11:19 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
No, he's soooo smart you know, you have to ask his majesty twice to get an answer.

I can understand him tho, his parent's bought him too much **** when he was a child :f
Reply With Quote
  #18  
Old 01-04-2009, 12:37 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by LoneAngelIbesu View Post
You are your joking...


Quote:
Originally Posted by Pelikano View Post
No, he's soooo smart you know, you have to ask his majesty twice to get an answer.
Yes. Indeed. More like being tired by having people like GULTHEX etc. posting things like this:

Quote:
GULTHEX: y dosnt this scrpt wörk???
Person 1: Because you're doing this and that wrong and should change that.
Person 2: *points out the exact flaws*
GULTHEX: soooo uuuuh y dosnt it work????
It happened a lot a while back.

Quote:
Originally Posted by Pelikano View Post
I can understand him tho, his parent's bought him too much **** when he was a child :f
Trying to make fun of superiorly intelligent persons on the forums only makes you look bad, you know. Not that it matters, but I've only had one parent my entire life and that one was pretty much broke.
__________________
Follow my work on social media post-Graal:Updated august 2025.
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 12:14 AM.


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