DNA Extractor will be removed from inventory on login if the player has completed the relevant quest

This commit is contained in:
CekisSWG
2020-02-05 01:43:23 -05:00
parent 71e368bb75
commit 9ebe916c35
2 changed files with 8 additions and 0 deletions

View File

@@ -1656,6 +1656,10 @@ public class base_player extends script.base_script
outparams.put("player", self);
messageTo(cityHall, "msgCheckMyCityMotd", outparams, 0, false);
}
if(groundquests.hasCompletedQuest(self, "u16_nym_themepark_miner_dna_collection") && utils.playerHasStaticItemInBankOrInventory(self, "item_nym_themepark_dna_extractor")) {
obj_id dna_extractor = utils.getStaticItemInBankOrInventory(self, "item_nym_themepark_dna_extractor");
if(isValidId(dna_extractor)) utils.destroyObject(dna_extractor);
}
return SCRIPT_CONTINUE;
}
public int disconnectPlayerCtsCompletedOrInProgress(obj_id self, dictionary params) throws InterruptedException

View File

@@ -0,0 +1,4 @@
package script.systems.veteran_reward;
public class character_respec_reset_device {
}