Пример #1
0
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)
Пример #2
0
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
Пример #3
0
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;     
Пример #4
0
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
Пример #5
0
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
Пример #6
0
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.")
Пример #7
0
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
Пример #8
0
def quest_button_3(player):
    quest_name = 'Lost City'
    quest_stage = player.getQuest(3).getStage()
    if quest_stage == 0:
        QuestHandler.startInfo(
            player, quest_name,
            "I can start this quest by speaking to the @dre@Adventurers@dbl@ in",
            "@dre@Lumbridge swamp@dbl@. I need @dre@31 Crafting@dbl@, @dre@36 Woodcutting@dbl@, and",
            "be able to defeat a @dre@level 101@dbl@ Tree spirit.",
            "This quest takes roughly @dre@5@dbl@ minutes to complete.")
    elif quest_stage == 1:
        QuestHandler.startInfo(
            player, quest_name,
            "I need to find the @dre@Leprechaun@dbl@, it must know more about how",
            "I can find @dre@Zanaris@dbl@.", "", "")
    elif quest_stage == 2:
        QuestHandler.startInfo(
            player, quest_name,
            "I need to chop a @dre@Dramen tree@dbl@ to obtain a staff made",
            "from Dramenwood, the @dre@Leprechaun@dbl@ said I could find such wood",
            "in a cave on the island of @dre@Entrana@dbl@.", "")
    elif quest_stage == 3:
        QuestHandler.startInfo(
            player, quest_name,
            "I must use the @dre@Dramenwood staff@dbl@ obtained from @dre@Entrana@dbl@",
            "to enter the city of @dre@Zanaris@dbl@ via the shed",
            "in @dre@Lumbridge swamp@dbl@.", "")
    elif quest_stage == 4:
        QuestHandler.startInfo(
            player, quest_name,
            "I have completed @dre@" + quest_name + "@bla@.", "", "", "")
Пример #9
0
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)
Пример #10
0
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)
Пример #11
0
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
Пример #12
0
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)
Пример #13
0
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)
Пример #14
0
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
Пример #15
0
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
Пример #16
0
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);
Пример #17
0
def quest_button_2(player):
    quest_stage = player.getQuest(2).getStage()
    if quest_stage == 0: 
        QuestHandler.startInfo(player, quest_name, "@blu@Festive Fortunes" ,"@bla@I can start this quest" , "during the month of December" , "and by talking to @dre@Santa in Edgeville.")
    elif quest_stage == 1:
        player.boxMessage("I should investigate Santa's storeroom in East Ardougne")
    elif quest_stage == 2:
        player.boxMessage("I should travel to West Ardougne to find @dre@Santa's @bla@stolen items")
    elif quest_stage == 3:
        player.boxMessage("I should return to @dre@Santa @bla@to claim my reward.")
    elif quest_stage == 4:
        player.boxMessage("I need to have Santa's sled in my inventory to" , "complete the quest.")
    elif quest_stage == 6:
        player.boxMessage("Merry Christmas from everyone at Runecessor." , "You have completed @blu@Festive Fortunes.")    
Пример #18
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.")
Пример #19
0
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)
Пример #20
0
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)
Пример #21
0
def quest_button_7(player):
    quest_name = 'Vampire Slayer'
    quest_stage = player.getQuest(7).getStage()
    if quest_stage == 0:
        QuestHandler.startInfo(
            player, quest_name,
            "I can start this quest by speaking to @dre@Morgan@dbl@ who is in",
            "@dre@Draynor Village@dbl@.",
            "Must be able to kill a level 34 @dre@Vampire@dbl@",
            "This quest takes roughly @dre@10@dbl@ minutes to complete.")
    elif quest_stage == 1 or quest_stage == 2 or quest_stage == 3:
        QuestHandler.startInfo(
            player, quest_name,
            "I should travel to the @dre@Blue Moon Inn@dbl@ in @dre@Varrock@dbl@ and",
            "speak to @dre@Dr Harlow@dbl@.", "", "")
    elif quest_stage == 4:
        QuestHandler.startInfo(
            player, quest_name,
            "I need to go to the basement in @dre@Draynor Manor@dbl@ and ",
            "kill the @dre@Vampire@dbl@!", "", "")
    elif quest_stage == 5:
        QuestHandler.startInfo(player, quest_name,
                               "I have completed @dre@Vampire Slayer@dbl@.",
                               "", "", "")
Пример #22
0
def quest_button_0(player):
    quest_name = 'The Nut Hunt'
    quest_stage = player.getQuest(0).getStage()
    if quest_stage == 0:
        QuestHandler.startInfo(
            player, quest_name,
            "I can start The Nut Hunt by talking to @dre@The Monkey's Nan@dbl@",
            "in Edgeville.", "There are no requirements to start this quest.",
            "This quest takes roughly @dre@20@dbl@ minutes to complete.")
    elif quest_stage == 1:
        QuestHandler.startInfo(
            player, quest_name,
            "I need to bring @dre@1000 noted Monkey nuts@dbl@ for @dre@The Monkey's Nan@dbl@.",
            "", "", "")
    elif quest_stage == 2:
        QuestHandler.startInfo(player, quest_name,
                               "I have completed @dre@The Nut Hunt@dbl@.", "",
                               "", "")
Пример #23
0
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;
Пример #24
0
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;
Пример #25
0
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)
Пример #26
0
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;
Пример #27
0
def chat_7634715(player):
    player.getDH().sendPlayerChat("You have a good point.", 591)
    player.getQuest(2).setStage(2)
    QuestHandler.updateAllQuestTab(player);
Пример #28
0
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)
Пример #29
0
def chat_70006(player):
    player.getDH().sendPlayerChat("I'd better head to the sawmill then.", 591)
    player.getQuest(2).setStage(4)
    QuestHandler.updateAllQuestTab(player);
Пример #30
0
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)