Example #1
0
def chat_5061(player):
    amount = ItemAssistant.getItemAmount(player, special_monkey_nuts)
    totalprice = 500000 * amount
    if ItemAssistant.hasItemAmountInInventory(player, special_monkey_nuts,
                                              amount):
        ItemAssistant.deleteItemFromInventory(player, special_monkey_nuts,
                                              amount)
        ItemAssistant.addItem(player, 995, totalprice)
        ItemAssistant.resetItems(player, 3214)  # Update inventory.
        player.getDH().sendNpcChat("Ah, wonderful, thanks for these!", 591)
Example #2
0
def chat_73753(player):
    if ItemAssistant.hasItemInInventory(player, logs):
        amount = ItemAssistant.getItemAmount(player, logs)
        if ItemAssistant.hasItemAmountInInventory(player, logs, amount):
            ItemAssistant.deleteItemFromInventory(player, logs, amount)
            ItemAssistant.addItem(player, plank, amount)
            player.getDH().sendNpcChat("There you go sir.", 591)
            player.getPA().sendMessage("<col=0008f7>You should use the plank on the sled to repair it.")
    else:
        player.getDH().sendNpcChat("You don't have any logs for me to cut." , "I'm not a magician!", 591)
Example #3
0
def first_click_npc_5270(player):
    quest_stage = player.getQuest(0).getStage()
    if quest_stage == 0:
        player.getDH().sendDialogues(5000)
    elif quest_stage == 1 and ItemAssistant.hasItemAmountInInventory(
            player, noted_monkey_nuts, 1000):
        player.getDH().sendDialogues(5017)
    elif quest_stage == 1:
        player.getDH().sendNpcChat("Hurry up and get my nuts!", 595)
    elif quest_stage == 2:
        player.getDH().sendDialogues(5554)
    else:
        player.getDH().sendPlayerChat("He looks pretty grumpy,",
                                      "I better not disturb him.", 610)
Example #4
0
def chat_6031(player):
    if ItemAssistant.hasItemAmountInInventory(
            player, soul_rune, 500) and ItemAssistant.hasItemInInventory(
                player, pot) and ItemAssistant.hasItemInInventory(
                    player, air) and ItemAssistant.hasItemInInventory(
                        player, water) and ItemAssistant.hasItemInInventory(
                            player,
                            earth) and ItemAssistant.hasItemInInventory(
                                player,
                                fire) and ItemAssistant.hasItemInInventory(
                                    player, mould):
        player.getDH().sendDialogues(6036)
    else:
        player.getDH().sendDialogues(6035)
Example #5
0
def option_one_20020(player):
    if ItemAssistant.hasItemAmountInInventory(player, chocolate_egg, 10):
        player.getDH().sendDialogues(200150)
    else:
        player.getDH().sendDialogues(20021)
Example #6
0
def option_two_5555(player):
    if ItemAssistant.hasItemAmountInInventory(player, special_monkey_nuts, 1):
        player.getDH().sendDialogues(5060)
    else:
        player.getDH().sendDialogues(5049)