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_3017(player): player.getDH().sendItemChat("", "You give a beer to Dr Harlow.", 1917, 200, 14, 0) ItemAssistant.deleteItemFromInventory(player, beer, 1) player.getQuest(7).setStage(3) QuestHandler.updateAllQuestTab(player) player.nextDialogue = 3018
def chat_20017(player): player.getDH().sendNpcChat( "Indeed. If you need any assistance " + str(player.playerName) + ", pop back here", "and I'll be willing to help.", 591) player.getQuest(6).setStage(1) QuestHandler.updateAllQuestTab(player) player.nextDialogue = 20018
def kill_npc_1443(player): stage = player.getQuest(5).getStage() if stage == 5: player.getQuest(5).setStage(6) QuestHandler.updateAllQuestTab(player); player.getDH().sendPlayerChat("I'd better update the King on what's happened.", 591) player.getPA().sendMessage("I'd better update the King on what's happened.")
def kill_npc_3481(player): player.getQuest(7).setStage(5) QuestHandler.updateAllQuestTab(player) amount = 4825 * Skilling.getBaseExperience(player, ServerConstants.ATTACK) reward = QuestReward("3 Quest Points", "" + str(amount) + " Attack XP") player.completeQuest("Vampire Slayer", reward, stake) Skilling.addSkillExperience(player, 4825, ServerConstants.ATTACK, False)
def chat_6209(player): player.setNpcType(7425) player.getDH().sendNpcChat( "I'd better be heading off myself. It's almost time", "for my prayers. Safe travels!", 588) player.getQuest(1).setStage(13) QuestHandler.updateAllQuestTab(player)
def chat_6062(player): player.getDH().sendNpcChat( "Good. Now that we have established that, we need to", "find a way to get into that trap door.", 591) player.getQuest(1).setStage(7) QuestHandler.updateAllQuestTab(player) player.nextDialogue = 6063
def chat_6054(player): player.getDH().sendNpcChat( "Never mind, it must be done. I had better be off " + player.getPlayerName() + ".", "Tell him that i will meet him there", "Take care out there, may Zamorak be in your stride!", 605) player.getQuest(1).setStage(5) QuestHandler.updateAllQuestTab(player)
def chat_6040(player): player.getDH().sendNpcChat( "I need you to find a zamorakian wizard that could help", "with summoning the monster.", 590) player.getQuest(1).setStage(4) QuestHandler.updateAllQuestTab(player) player.nextDialogue = 6041
def chat_1756093869(player): player.getDH().sendNpcChat("A pleasure doing business with you, have fun", "being an ape. Don't let the real apes catch", "you though! Ha ha ha.", 591) stage = player.getQuest(5).getStage() if stage == 2: player.getQuest(5).setStage(3) QuestHandler.updateAllQuestTab(player); if not ItemAssistant.hasItemAmountInInventory(player, 4024, 1): ItemAssistant.addItem(player, 4024, 1)
def finish_quest(player): player.getQuest(3).setStage(4) quest_name = "Lost City" QuestHandler.updateAllQuestTab(player) reward = QuestReward("3 Quest Points", "Access to Zanaris", "Ability to wield some Dragon weapons") player.completeQuest("" + quest_name + "", reward, 772) player.qp += 3
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 chat_200154(player): player.getDH().sendNpcChat( "Well done, " + str(player.playerName) + ", eggcellent work!", "These are exactly how I would make them.", 591) player.getQuest(6).setStage(2) QuestHandler.updateAllQuestTab(player) ItemAssistant.deleteItemFromInventory(player, chocolate_egg, 10) player.nextDialogue = 200155
def chat_352058(player): player.getDH().sendNpcChat( "Ye.. uh, no. No, not at all. And even if he did - which", "he doesn't - he DEFINITELY ISN'T hiding in some", "trees around here. Nope, definitely. Honestly.", 591) player.nextDialogue = 352059 player.getQuest(3).setStage(1) QuestHandler.updateAllQuestTab(player)
def first_click_object_11636(player): # trapdoor quest_stage = player.getQuest(1).getStage() if quest_stage == 9: ObjectEvent.climbDownLadder(player, 3788, 9226, 0); player.getQuest(1).setStage(10) QuestHandler.updateAllQuestTab(player); elif quest_stage == 10: ObjectEvent.climbDownLadder(player, 3788, 9226, 0); elif quest_stage == 11: ObjectEvent.climbDownLadder(player, 3788, 9226, 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 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_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_70006(player): player.getDH().sendPlayerChat("I'd better head to the sawmill then.", 591) player.getQuest(2).setStage(4) QuestHandler.updateAllQuestTab(player);
def chat_6205(player): player.getDH().sendPlayerChat("Here you go.", 591) player.getQuest(1).setStage(12) QuestHandler.updateAllQuestTab(player); ItemAssistant.deleteItemFromInventory(player, bones, 1) player.nextDialogue = 6207;
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_6037(player): player.getDH().sendNpcChat("Ah, very good " + player.getPlayerName() + ", very good indeed.", 591) player.getQuest(1).setStage(3) QuestHandler.updateAllQuestTab(player); player.nextDialogue = 6038;
def chat_5016(player): player.getDH().sendPlayerChat("Now you're talking!", "I'll get right on it.", 605) player.getQuest(0).setStage(1) QuestHandler.updateAllQuestTab(player)
def chat_43849114(player): player.getDH().sendNpcChat("Please hurry! Christmas depends on you "+ str(player.playerName) +".", 591) player.getQuest(2).setStage(1) QuestHandler.updateAllQuestTab(player); player.nextDialogue = 43849115;
def chat_6171(player): Teleport.startTeleport(player, 3543, 3466, 0, "ARCEUUS") player.getDH().sendStatement("You are teleported to the Haunted woods.") player.getQuest(1).setStage(6) QuestHandler.updateAllQuestTab(player);
def chat_352069(player): player.getDH().sendNpcChat( "...or some such. There would probably be a good place", "for an elephant like yer to be starting looking I reckon.", 591) player.getQuest(3).setStage(2) QuestHandler.updateAllQuestTab(player)
def chat_6026(player): player.getDH().sendNpcChat("Don't be too long, I don't want to come looking for you.", 594) player.nextDialogue = 6025; player.getQuest(1).setStage(1) QuestHandler.updateAllQuestTab(player);
def chat_7634715(player): player.getDH().sendPlayerChat("You have a good point.", 591) player.getQuest(2).setStage(2) QuestHandler.updateAllQuestTab(player);
def chat_82137103(player): player.getDH().sendNpcChat("Well done, "+ str(player.playerName) +", where did you find it?", 591) player.getQuest(2).setStage(6) QuestHandler.updateAllQuestTab(player); player.nextDialogue = 82137104;
def chat_6160(player): player.getDH().sendPlayerChat("Sounds like a plan. I'll be back shortly!", 591) player.getQuest(1).setStage(6) QuestHandler.updateAllQuestTab(player);