Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   All players have a negative ID and index? (https://forums.graalonline.com/forums/showthread.php?t=7855)

Tyhm 07-22-2001 04:44 PM

All players have a negative ID and index?
 
Right, try this:

if(playerenters) toweapons Tester;
if(weaponfired){
for(this.i=1;this.i<playerscount;this.i++){
if(((playerx-players[this.i].x)^2)+((playery-players[this.i].y)^2)<9) hitplayer this,i,1,playerx+1,playery+1.5;
}
}

It will only work on NPCs. Why?
It's not hitplayer, you can put anything in there, setplayerprop #c,#n(this.i); for example, it absolutely refuses to work on Players and only since the last release. Weapons like Leapfrog, simple, even detects players[this.i].id<0, now ONLY work on NPCs, whose .ids should ALWAYS be < 0, but absolutely REFUSES to work on a player.

I mean, have I completely lost my marbles, or is something indeed wrong?

Tyhm 07-23-2001 05:06 AM

*cough* I wonder if Stefan has a Bugs Admin anymore.

grim_squeaker_x 07-23-2001 05:17 AM

Hmm... Just wondering but it also probably doesn't work if you use:
[for (i=0;i<0-playerscount;i--) ?

Tyhm 07-23-2001 08:42 AM

Haven't tried going 0 to negative playerscount. Might work. Might blow up. Not willing to risk it on Classic. I have, of course, tried going from playerscount-1 to 0, with a similar lack of effect.

Hulk Hogan 07-23-2001 10:37 AM

Quote:

Originally posted by Tyhm
*cough* I wonder if Stefan has a Bugs Admin anymore.
Godspeed is I think.

Tyhm 07-24-2001 11:01 AM

I heard he's been gone for weeks, which means if Stefan doesn't notice this thread on his own, it never gets fixed. Which means I have to find a workaround and put it in EVERY NPCW and NPC Character that recognizes multiple players in Classic. Which would be a pain, but I'll do it if it's only once...

Knightoffrost 07-24-2001 11:07 AM

Quote:

Originally posted by Tyhm
I heard he's been gone for weeks, which means if Stefan doesn't notice this thread on his own, it never gets fixed. Which means I have to find a workaround and put it in EVERY NPCW and NPC Character that recognizes multiple players in Classic. Which would be a pain, but I'll do it if it's only once...
God Speed is back now

DarkPyro_2001 07-24-2001 11:10 PM

Um, yay?

Tyhm 08-04-2001 02:10 PM

It has not been fixed in the new version...I wonder if Stefan even knows about this. Or maybe I'm just halucenating it somehow...


All times are GMT +2. The time now is 02:33 AM.

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