Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Question! (https://forums.graalonline.com/forums/showthread.php?t=66477)

contiga 06-05-2006 01:07 PM

Question!
 
Hello folks,

How to get the angle that my projectile is shot with inside the gani? Ehh.. what I mean is:

1. I use:
temp.a = getangle( vecx( player.dir), vecy( player.dir));
shoot( player.x, player.y, player.z, temp.a, 0, 0, "e_spell_fireball", "");

2. What I now want is getting the angle that I shot with, inside the
e_spell_fireball.gani's script.. like:
SCRIPT
findImg( 1).text = gani.angle;
SCRIPTEND
Should show a message with the angle...

Anyone can help me?

contiga 06-05-2006 07:46 PM

Hummm I need some help... !! :P

Yen 06-05-2006 08:01 PM

This is coming from the person who managed to script perfectly lagless baddies?

P.S. params, retard.

xXziroXx 06-05-2006 08:43 PM

Quote:

Originally Posted by Yen
This is coming from the person who managed to script perfectly lagless baddies?

P.S. params, retard.


No, actually, a friend of mine (Drakilor) scripted them for him. He made even more ownage baddies on Mythic.

Yen 06-05-2006 10:05 PM

Quote:

Originally Posted by xXziroXx
No, actually, a friend of mine (Drakilor) scripted them for him. He made even more ownage baddies on Mythic.

I was being sarcastic.
If your baddy is active and using less than .0004% of the server, something's wrong.

ApothiX 06-05-2006 10:22 PM

Quote:

Originally Posted by Yen
I was being sarcastic.
If your baddy is active and using less than .0004% of the server, something's wrong.

Or they are clientside. (Although I suppose that would fall into the 'something's wrong' category)

contiga 06-06-2006 04:03 PM

Noobnoob
 
Quote:

Originally Posted by xXziroXx
No, actually, a friend of mine (Drakilor) scripted them for him. He made even more ownage baddies on Mythic.

Lol, actually.. this Drakilor guy didn't, Ziro... he only made the Endora baddies less laggy. (which he did by removing or changing less than 5 lines..) The Esteria baddies are entirely new.

When do people stop talking **** so fast, while they don't even know wheater its true or false! ^^

---

Quote:

Originally Posted by Yen
This is coming from the person who managed to script perfectly lagless baddies?

P.S. params, retard.

I added temp.angle before, instead of "" in the shooting part.. then I setted the rotation of the particles to params[ 0] and it refused to work =P

ApothiX 06-06-2006 04:49 PM

Quote:

Originally Posted by contiga
Lol, actually.. this Drakilor guy didn't, Ziro... he only made the Endora baddies less laggy. (which he did by removing or changing less than 5 lines..) The Esteria baddies are entirely new.

When do people stop talking **** so fast, while they don't even know wheater its true or false! ^^

---



I added temp.angle before, instead of "" in the shooting part.. then I setted the rotation of the particles to params[ 0] and it refused to work =P

Echo params[0] and see if it set right. If it didn't, then that's your problem. If it did, then post some particle code.

contiga 06-06-2006 07:51 PM

Step 1 --> shoot( player.x, player.y, player.z, temp.a, 0, 0, spell.anim, temp.a);
Step 2 --> Inside the gani (e_spellball_fireball.gani): echo( params[ 0]);
Step 3 --> Pressing F2 and seeing nothing!

Any comments?

Ps. It's not that temp.a isn't loading or so (I also tested with this., thiso., etc..).

xXziroXx 06-06-2006 07:54 PM

Are you sure echo() works in a gani? You could try to set the players chat to params[0].

contiga 06-06-2006 08:16 PM

I did echo( "Debug: " @ params[ 0]); and all that showed up was "Debug:"... so yes it works ;)

Yen 06-06-2006 09:13 PM

The problem's in the way you scripted the gani. GG.

contiga 06-07-2006 02:39 PM

Then give me an example of what would work please? :)

contiga 06-11-2006 07:38 PM

Ehh.. no one knows how? :S

ApothiX 06-12-2006 05:44 AM

Quote:

Originally Posted by contiga
Ehh.. no one knows how? :S

I've decided I'm going to boycott helping anyone who uses that annoying and pointless style where you put a space between the opening parenthesis and the first parameter, but leave the last parameter intact with the closing parenthesis. (or in the extreme cases, do it for array indices aswell.)

contiga 06-12-2006 05:08 PM

Everyone has his own style.. we don't have to do it all your way, do we?

calani 06-18-2006 03:40 PM

No, you do it in a way that's legible, looks nice, and isn't horribly stupid. like capitalizing every word. -that- gets on my nerves. but that's beside the point.

contiga 06-18-2006 05:41 PM

Quote:

Originally Posted by calani
No, you do it in a way that's legible, looks nice, and isn't horribly stupid. like capitalizing every word. -that- gets on my nerves. but that's beside the point.

As long as my scripts are working proper, and are constructed in a good way, joo must **** :eek:

ApothiX 06-18-2006 09:58 PM

Quote:

Originally Posted by contiga
As long as my scripts are working proper, and are constructed in a good way, joo must **** :eek:

Formatting is part of the construction. Therefor the condition for calani to '****' is not met.
Calani is right, your formatting is far from legible and it's annoying as hell to read. You are the only person on the face of the earth that uses that type of formatting, I'm sure. You must be wondering why no one else uses it. (You remind me of NaS on Unholy Nation who intialises arrays like: this.mykewlarray = "\"one\",\"two\",\"three\""; because he thinks it makes him look like a good scripter.)

contiga 06-19-2006 08:46 AM

Quote:

Originally Posted by ApothiX
Formatting is part of the construction. Therefor the condition for calani to '****' is not met.
Calani is right, your formatting is far from legible and it's annoying as hell to read. You are the only person on the face of the earth that uses that type of formatting, I'm sure. You must be wondering why no one else uses it. (You remind me of NaS on Unholy Nation who intialises arrays like: this.mykewlarray = "\"one\",\"two\",\"three\""; because he thinks it makes him look like a good scripter.)

I just do my arrays like this.mykewlarray = { 1, { 2, 3}, { { 4, 5}, 6}, 7};
And not a silly way like that.. and actually, I don't care what you think about my scripting style! Also this is a little going off thread, so please answer my question from the first post, or stop posting.

ApothiX 06-19-2006 08:04 PM

Quote:

Originally Posted by contiga
I just do my arrays like this.mykewlarray = { 1, { 2, 3}, { { 4, 5}, 6}, 7};

It was an example, genius.

contiga 06-20-2006 09:44 AM

Quote:

Originally Posted by ApothiX
It was an example, genius.

Whatever. Now please reply thread-related, I had a question.. which no one replied on in 2 pages.... reply on it, or leave the thread.

ApothiX 06-20-2006 04:19 PM

Quote:

Originally Posted by contiga
Whatever. Now please reply thread-related, I had a question.. which no one replied on in 2 pages.... reply on it, or leave the thread.

I can post wherever I feel like posting. I can also make witty remarks like that aswell: Fix your style or leave the scripting forums.

contiga 06-20-2006 10:13 PM

Could anyone close this thread please? I already fixed the problem.
(For people who want to know the solution: put a sleep( .05); before loading params inside the gani script).

Yen 06-20-2006 11:02 PM

Quote:

Originally Posted by contiga
(For people who want to know the solution: put a sleep( .05); before loading params inside the gani script).

ROFL!!! XD
I fell off my chair laughing.

contiga 06-21-2006 10:19 AM

It's silly, I know ;) What made me realise it.. is your floating text on VS:CONFLICT >_< I saw you loaded params from a showani or setani also, and echo'd from where they'd load, and the first time in the loop it didn't load, second and so on, it did ( after a sleep( 0.05); ) x_x


All times are GMT +2. The time now is 03:42 AM.

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