Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   -FooL- Player Indexed bombs/arrows/etc. (https://forums.graalonline.com/forums/showthread.php?t=27608)

Saga2001 04-17-2002 03:46 AM

-FooL- Player Indexed bombs/arrows/etc.
 
-FooL-

Unless there's another way to do this, these would be helpful commands to have:

players[i].explo
players[i].arrow
players[i].bomb
etc.

So you could check which explosion/arrow/bombs belonged to which player.

Spanko 04-17-2002 04:36 AM

Wouldn't bombs[i].owner (etc.) be more useful?
Though I guess it doesn't really matter much.

Saga2001 04-17-2002 05:42 AM

That or it could be an array in explos, or bombs[i].owner and player[i].explos = {ids}

Slaktmaster 04-17-2002 01:16 PM

It'd have to be message codes since strings doesn't work with variables.

Tyhm 04-17-2002 02:00 PM

Not if you go with the player's id, that's an integer.

Falcor 04-17-2002 07:42 PM

Yes but having only and ID would work w/ limitations to non-p2p. Messagecodes would be better so you dont have to check the account name. You could always get the person's ID but you rarely need it on most servers. Unless you are doing allplayers.

Tyhm 04-18-2002 02:49 AM

Erm, huh?

On non-P2P, you can only see your own #a...

if(bombs[this.i].pid=playerid){ //it is my bomb
if(arrows[this.i].pid>-1&&!arrows[this.i].pid==playerid){ //it is not my arrowif(explos[this.i].pid<0){ //it is nobody's explosion/caused by a room-based NPC

Psyker 04-18-2002 04:21 AM

I wish I understood this stuff.

Slaktmaster 04-18-2002 04:31 AM

Quote:

Originally posted by Tyhm
Not if you go with the player's id, that's an integer.
Silly me, please poke me in the eye. :(

Spanko 04-20-2002 07:18 PM

Quote:

Originally posted by Slaktmaster

Silly me, please poke me in the eye. :(

*Pokes Archaon in the eye*


All times are GMT +2. The time now is 07:52 AM.

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