mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-10-17 08:02:55 -04:00
Prevent players from receiving tokens from another instance
Using client side modifications could allow players to move between instances, being in "range" of the next instance would provide the reward without ending the exploting player's timer
This commit is contained in:
@@ -705,6 +705,15 @@ public class player_instance extends script.base_script
|
||||
}
|
||||
public int handleAwardtoken(obj_id self, dictionary params) throws InterruptedException
|
||||
{
|
||||
obj_id instanceController = instance.getAreaInstanceController(self);
|
||||
if (!isIdValid(instanceController))
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
if (!instance.isPlayerInPlayerList(self, instance.getPlayerList(instanceController)))
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
int tokenIndex = params.getInt("tokenIndex");
|
||||
int count = 1;
|
||||
if (params.containsKey("tokenCount"))
|
||||
|
||||
Reference in New Issue
Block a user