コード例 #1
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;     
コード例 #2
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
コード例 #3
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
コード例 #4
0
ファイル: monkey_madness.py プロジェクト: audotika/runecessor
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.")
コード例 #5
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)
コード例 #6
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)
コード例 #7
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
コード例 #8
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)
コード例 #9
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
コード例 #10
0
ファイル: monkey_madness.py プロジェクト: audotika/runecessor
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)
コード例 #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_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
コード例 #13
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
コード例 #14
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)
コード例 #15
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);
コード例 #16
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.")
コード例 #17
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)
コード例 #18
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)
コード例 #19
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);
コード例 #20
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;
コード例 #21
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)
コード例 #22
0
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;
コード例 #23
0
ファイル: the_nut_hunt.py プロジェクト: audotika/runecessor
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)
コード例 #24
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;
コード例 #25
0
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);
コード例 #26
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)
コード例 #27
0
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);
コード例 #28
0
def chat_7634715(player):
    player.getDH().sendPlayerChat("You have a good point.", 591)
    player.getQuest(2).setStage(2)
    QuestHandler.updateAllQuestTab(player);
コード例 #29
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;
コード例 #30
0
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);