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 11-01-2008, 12:48 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
ActionProjecTile2(params)?

what are the params of actionprojectile2()?

Quote:
Originally Posted by wiki
actionprojectile2 a projectile has landed (client-side) (#p(0),#p(1)are x,y; #p(2),#p(3) are params)
yeah i know x and y is params0 and params1'
but the others?

for example i cant do :
PHP Code:
setShootParams(this.xthis.y,  2); 
and when on the function
PHP Code:
function onActionProjecTile2(xxyyid)
{
  if (
id == 2)
  {
    
putLeaps4xxyy ); 
  } 
no leaps.

thanks.
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you

Last edited by Deas_Voice; 11-01-2008 at 10:49 PM..
Reply With Quote
  #2  
Old 11-01-2008, 01:10 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by Deas_Voice View Post
what are the params of actionprojectile2()?



yeah i know x and y is params1 and params2'
but the others?

for example i cant do :
PHP Code:
setShootParams(this.xthis.y,  2); 
and when on the function
PHP Code:
function onActionProjecTile2(xxyyid)
{
  if (
id == 2)
  {
    
putLeaps4xxyy ); 
  } 
no leaps.

thanks.
Why not just do echo(params); and determine what causes it? In your above example, your 'id' is actually relative to this.x in setShootParams. Basically, the first two are predefined. The next after those are the shoot parameters you specified. Try replacing id in your if statement to params[4] and see if that works.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #3  
Old 11-01-2008, 01:13 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
not to be picky but it's hilarious that you capitalized the T in projectile
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #4  
Old 11-01-2008, 02:16 AM
Shotoo2 Shotoo2 is offline
Mange
Shotoo2's Avatar
Join Date: Nov 2004
Location: Pennsylvania
Posts: 819
Shotoo2 will become famous soon enough
Send a message via AIM to Shotoo2 Send a message via MSN to Shotoo2
Quote:
Originally Posted by Tigairius View Post
not to be picky but it's hilarious that you capitalized the T in projectile
he did it in honor of you Tig
Reply With Quote
  #5  
Old 11-01-2008, 09:17 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Shotoo2 View Post
he did it in honor of you Tig
haha good 1
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #6  
Old 11-01-2008, 09:18 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Programmer View Post
Why not just do echo(params); and determine what causes it? In your above example, your 'id' is actually relative to this.x in setShootParams. Basically, the first two are predefined. The next after those are the shoot parameters you specified. Try replacing id in your if statement to params[4] and see if that works.
yeah ok i'll try that
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #7  
Old 11-01-2008, 10:56 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
hmm'
seem like there is no params 2 and 3'

so i guess its like this:
PHP Code:
setShootParams(xyparams[4],params[5],ect ); 
havent tested after params 5 tho'

so on the ActionProjectile2() params would look like this:
PHP Code:
function onActionProjectile2(xxyy, var, var2iddmg
var and var2 is empty.

seems odd, no params 2 or params 3'

it dident echo anything'
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #8  
Old 11-02-2008, 12:52 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by Deas_Voice View Post
hmm'
seem like there is no params 2 and 3'

so i guess its like this:
PHP Code:
setShootParams(xyparams[4],params[5],ect ); 
havent tested after params 5 tho'

so on the ActionProjectile2() params would look like this:
PHP Code:
function onActionProjectile2(xxyy, var, var2iddmg
var and var2 is empty.

seems odd, no params 2 or params 3'

it dident echo anything'
Please use the edit button rather than triple-posting. Try this:

PHP Code:
setShootParams("foo");
//...

function onActionProjectile2()
{
echo(
params);
//...

See what comes up.
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #9  
Old 11-02-2008, 01:38 AM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Programmer View Post
Please use the edit button rather than triple-posting. Try this:

PHP Code:
setShootParams("foo");
//...

function onActionProjectile2()
{
echo(
params);
//...

See what comes up.
well i solved my problem but sure i can test that
Edit: noting gets echod on your example!
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you

Last edited by Deas_Voice; 11-02-2008 at 01:41 AM.. Reason: o...o
Reply With Quote
  #10  
Old 11-02-2008, 02:16 AM
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 Deas_Voice View Post
well i solved my problem but sure i can test that
Edit: noting gets echod on your example!
I'm not sure if you can use params as an array. I think it might be required to use params[0], params[1], params[2] etc. I could be wrong, though.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
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 01:49 AM.


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