def chat_555555(player): player.getDH().sendItemChat("", "You search the drawers and find the broken sled.", broken_sled, 200, 20, 0); player.getQuest(2).setStage(3) QuestHandler.updateAllQuestTab(player); player.startAnimation(832) ItemAssistant.addItemToInventoryOrDrop(player, broken_sled, 1) player.nextDialogue = 70000;
def chat_82137114(player): player.getQuest(2).setStage(7) QuestHandler.updateAllQuestTab(player); Skilling.addSkillExperience(player, 1500000, ServerConstants.THIEVING, True); ItemAssistant.addItemToInventoryOrDrop(player, 20834, 1) ItemAssistant.addItemToInventoryOrDrop(player, 20836, 1) reward = QuestReward("Santa's sled", "Sack of presents", "Giant present", "The ability to unlock bonus rewards", "1.5m Thieving XP") player.completeQuest("Festive Fortunes",reward, 4084) #Sled id
def first_click_object_7194(player): stage = player.getQuest(2).getStage()#If player loses sled before they finish quest they can get another. if stage == 2: player.getDH().sendDialogues(555555) elif stage >=3 and stage <=6 and not ItemAssistant.hasItemInInventory(player, broken_sled): player.getDH().sendItemChat("", "You search the drawers and find the broken sled.", broken_sled, 200, 20, 0); player.startAnimation(832) ItemAssistant.addItemToInventoryOrDrop(player, broken_sled, 1) else: player.getDH().sendStatement("The drawers are empty.")
def handleEggMaking(player): if ItemAssistant.hasItemInInventory( player, egg_mould) and ItemAssistant.hasItemInInventory( player, bucket_of_chocolate): ItemAssistant.deleteItemFromInventory(player, bucket_of_chocolate, 1) ItemAssistant.addItemToInventoryOrDrop(player, 1925, 1) ItemAssistant.addItemToInventoryOrDrop(player, chocolate_egg, 1) player.getDH().sendItemChat( "", "You pour some chocolate into the mould. Somehow, it", "sets straight away and you are able to make a", "chocolate egg.", chocolate_egg, 200, 20, 0)
def HandleSledRepair(player): stage = player.getQuest(2).getStage() #Added a check in for quest stage, players were getting bugged by trading plank over from main if stage == 4: if ItemAssistant.hasItemInInventory(player, hammer) and ItemAssistant.hasItemInInventory(player, plank): ItemAssistant.deleteItemFromInventory(player, plank, 1) ItemAssistant.deleteItemFromInventory(player, broken_sled, 1) ItemAssistant.addItemToInventoryOrDrop(player, sled, 1) player.getDH().sendItemChat("", "@blu@Congratulations, you just advanced a Sled fixing level!", "", "Your Sled fixing level is now 73.", "", 4084, 200, 20, 0); player.getPA().sendMessage("<col=0008f7>You should take the sled back to Santa.") player.gfx100(199) player.getQuest(2).setStage(5) QuestHandler.updateAllQuestTab(player); else: player.getPA().sendMessage("You need a hammer and a plank to fix the sled.") else: player.getPA().sendMessage("I should speak with the sawmill operator first before doing this.")
def handle_staff_making(player): player.getPA().sendMessage("You carve the branch into a staff.") ItemAssistant.deleteItemFromInventory(player, 771, 1) ItemAssistant.addItemToInventoryOrDrop(player, 772, 1)
def chat_200161(player): player.getQuest(6).setStage(3) QuestHandler.updateAllQuestTab(player) if Misc.random(300) == 1: ItemAssistant.addItemToInventoryOrDrop(player, 1037, 1) ItemAssistant.addItemToInventoryOrDrop(player, 13663, 1) ItemAssistant.addItemToInventoryOrDrop(player, 13664, 1) ItemAssistant.addItemToInventoryOrDrop(player, 13182, 1) ItemAssistant.addItemToInventoryOrDrop(player, 1962, 15) reward = QuestReward("Bunny ears", "Bunny top", "Bunny legs", "Bunny feet", "5 Easter eggs") player.completeQuest("the 2018 Easter Event", reward, 1037) else: ItemAssistant.addItemToInventoryOrDrop(player, 21214, 1) ItemAssistant.addItemToInventoryOrDrop(player, 22351, 1) ItemAssistant.addItemToInventoryOrDrop(player, 22353, 1) ItemAssistant.addItemToInventoryOrDrop(player, 1962, 5) reward = QuestReward("Easter egg helm", "Eggshell platebody", "Eggshell platelegs", "5 Easter eggs", "") player.completeQuest("the 2018 Easter Event", reward, 21214)
def chat_200106(player): player.getDH().sendItemChat("", "You are handed an egg mould.", egg_mould, 200, 20, 0) ItemAssistant.addItemToInventoryOrDrop(player, egg_mould, 1) player.nextDialogue = 200107
def chat_6212(player): player.getQuest(1).setStage(14) QuestHandler.updateAllQuestTab(player); if Misc.random(300) == 1: ItemAssistant.addItemToInventoryOrDrop(player, mask, 1) ItemAssistant.addItemToInventoryOrDrop(player, top, 1) ItemAssistant.addItemToInventoryOrDrop(player, robe, 1) ItemAssistant.addItemToInventoryOrDrop(player, knife, 1) ItemAssistant.addItemToInventoryOrDrop(player, black_ween, 1) reward = QuestReward("Banshee outfit", "Hunting knife", "Black h'ween mask", "") player.completeQuest("Runecessor's Halloween Event 2017", reward, mask) else: ItemAssistant.addItemToInventoryOrDrop(player, mask, 1) ItemAssistant.addItemToInventoryOrDrop(player, top, 1) ItemAssistant.addItemToInventoryOrDrop(player, robe, 1) ItemAssistant.addItemToInventoryOrDrop(player, knife, 1) ItemAssistant.addItemToInventoryOrDrop(player, bracelet, 1) reward = QuestReward("Banshee outfit", "Hunting knife", "Bone bracelet", "") player.completeQuest("Runecessor's Halloween Event 2017", reward, mask)
def chat_6182(player): player.getDH().sendItemChat("", "He hands you a spade.", 16099, 200, 14, 0); player.getQuest(1).setStage(8) QuestHandler.updateAllQuestTab(player); ItemAssistant.addItemToInventoryOrDrop(player, 16099, 1)
def chat_3023(player): player.getDH().sendItemChat("", "Dr Harlow hands you a stake.", stake, 200, 14, 0) ItemAssistant.addItemToInventoryOrDrop(player, stake, 1) player.nextDialogue = 3024
def chat_15007(player): player.getDH().sendItemChat("", "You are handed a Veteran cape!", 14013, 200, 14, 0) ItemAssistant.addItemToInventoryOrDrop(player, 14013, 1)