Graal Forums

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

darkreign3 06-12-2004 04:22 AM

Iam not to great at Scripting ill just stick to my level makeing and Pixel art ;)

osrs 06-12-2004 07:38 AM

Quote:

Originally Posted by Python523
why use getplayer when you can do players[index]...

Hm, indeed.

EsCanavi 06-12-2004 08:23 AM

1 thing don't work Clientside try it server side command still not working
maybe cause its an offline mode command like few other but most of them work serverside/clientside

Lance 06-12-2004 09:37 AM

Quote:

Originally Posted by Malinko
Hey, I just skimmed over the post, not my fault I said five =P.

If you care enough to make a reply, you should care enough to read. Otherwise, you should withhold your extremely witty reply for a thread you actually pay attention to. I could also point out that whatever you post to this forum is, in fact, 'your fault'.

Quote:

Originally Posted by darkreign3
Iam not to great at Scripting ill just stick to my level makeing and Pixel art ;)

You know, I was going through this thread, and I didn't see your name in it. These are forums, not AIM. Don't spam.

falco10291029 06-12-2004 08:48 PM

Ok....its new to me cus for the past 2 years ive made single player adventure games so its new for me.....also with(index) is thhe correct format right not with(players[index])

Loriel 06-12-2004 09:35 PM

No, not really.

osrs 06-12-2004 09:44 PM

Quote:

Originally Posted by falco10291029
Ok....its new to me cus for the past 2 years ive made single player adventure games so its new for me.....also with(index) is thhe correct format right not with(players[index])

NPC Code:

with(players[index]){
//do action
}



There are a bunch of others players[index] variables too, not only .id;
Learning scripting is just an act of read, comprehend and test.

Loriel 06-12-2004 10:13 PM

... at which you apparently fail. with (players[i]).

osrs 06-12-2004 10:15 PM

Quote:

Originally Posted by Loriel
... at which you apparently fail. with (players[i]).

So will you put the .id outside the ()'s? :\

Loriel 06-12-2004 10:22 PM

Nope. :)

Python523 06-12-2004 11:20 PM

Quote:

Originally Posted by osrs
So will you put the .id outside the ()'s? :\

No. You will learn proper syntax though. :)

osrs 06-12-2004 11:58 PM

Sorry for my wrong information falco10291029, next time i will make sure to post correct things. :)
Quote:

Originally Posted by Python523
No. You will learn proper syntax though. :)

Living and learning... :)
And i knew it wasn't possible to put the .id outside the ()'s, i was being sarcastic.

falco10291029 06-13-2004 12:10 AM

ok yeh i testes after i posted and i was wrong so now i get it i still have some problems with such things but im learning by either geuss and chack or by looking at other scripts that i know what they do thewn seeing how they do it, and absorbing that info into my mind to use. When i first started scripting, i didnt even know how to make weps lol.


All times are GMT +2. The time now is 08:39 PM.

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