![]() |
Adding players EXP once baddy killed
Ok this is serverside and it happens once the baddy is dead
PHP Code:
|
Just keep track of the player who last hit it, no reason to use findNearestPlayers.
|
have it send the players account as a parameter every time the player attacks as you would with damage then have it check to see if it is dead everytime it takes damage and if it is either have it join a class for player functions or join it to the player directly. then do addExp(amount); you can also do some checks to see if they are in a party and if so evenly distribute it throught the party.
|
Quote:
|
Quote:
|
class
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Unless your baddies are completely clientside (different for each player), there's no excuse for doing checks on clientside like that. If he's using triggers he can handle those serverside.
|
Quote:
|
Quote:
PHP Code:
PHP Code:
PHP Code:
|
But where?
|
| All times are GMT +2. The time now is 01:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.