From 03e716c80927253dc10f8dde3783583cc06f0ba1 Mon Sep 17 00:00:00 2001 From: AconiteGodOfSWG Date: Mon, 9 Nov 2020 03:35:46 -0500 Subject: [PATCH] Add removal of Elusive Fish record on CTS --- .../sys.server/compiled/game/script/player/veteran_rewards.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/player/veteran_rewards.java b/sku.0/sys.server/compiled/game/script/player/veteran_rewards.java index c184d9356..f943220cd 100755 --- a/sku.0/sys.server/compiled/game/script/player/veteran_rewards.java +++ b/sku.0/sys.server/compiled/game/script/player/veteran_rewards.java @@ -983,6 +983,7 @@ public class veteran_rewards extends script.base_script int bp = sui.getIntButtonPressed(params); if ((bp == sui.BP_OK) && (isValidLocationForCts(self, true))) { + removeObjVar(self, fishing.OBJVAR_ELUSIVE_FISH_PLAYER_CAUGHT_COUNT); // you can't keep your old galaxy's elusive fish record when you CTS performFreeCts(self, destinationGalaxy, destinationCharacterName); utils.setScriptVar(self, SCRIPTVAR_FREE_CTS_REQUEST_TIMEOUT, getGameTime() + 300); } @@ -1345,6 +1346,7 @@ public class veteran_rewards extends script.base_script if ((bp == sui.BP_OK) && isValidLocationForCts(self, false) && verifyItemForCts(self, item)) { CustomerServiceLog("CharacterTransfer", "requesting ingame CTS for character " + self + " using item " + item); + removeObjVar(self, fishing.OBJVAR_ELUSIVE_FISH_PLAYER_CAUGHT_COUNT); // you can't keep your old galaxy's elusive fish record when you CTS performCts(self, destinationGalaxy, destinationCharacterName); utils.setScriptVar(self, cts.SCRIPTVAR_CTS_ITEM_ID, item); utils.setScriptVar(self, SCRIPTVAR_CTS_REQUEST_TIMEOUT, getGameTime() + 300);