45
« Last post by Ryan on March 25, 2012, 10:53:36 pm »
#Created by Ryan, not to be reproduced without permission unless used for Pkxile.def dialogue_1000(player) player.npcMessage("Hello adventurer. Is there any chance that you've seen any bows around here soemwhere?", 648, "King Roald") player.nextChat = 1001 def dialogue_1001(player) player.npcMessage("Sorry, I haven't. Why?") player.nextChat = 1002def dialogue_1002(player) player.npcMessage("Well, it was just that I need them for my army. I'm trying to get them to use archery as a tactic more often.", 648, "King Roald") player.nextChat = 1003 def dialogue_1003(player) player.npcMessage("Well what type of bows were they? Maybe I could help you find them!") player.nextChat = 1004 player.q1 = 1 player.quest.SendQuests() def dialogue_1004(player) player.npcMessage("Could you? That's fantastic news! So let's see.. I had 15 Normal Shortbows, 25 Oak Shortbows, 40 Willow Longbows and 50 Maple Longbows.", 648, "King Roald") player.nextChat = 1005 def dialogue_1005(player) player.npcMessage("I should be able to get them, but I don't know how to make them!") player.nextChat = 1006def dialogue_1006(player) player.npcMessage("Well, it is quite simple. First, buy a knife and axe from Bob, he is in Edgeville. Then, cut down the respective logs and use the knife on them. You won't be able to make the bows straight away, so you'll need to start with Arrow Shafts.", 648, "King Roald") player.nextChat = 1007 def dialogue_1007(player) player.npcMessage("I'll wish you the best of luck adventurer!", 648, "King Roald") player.nextChat = 1008 def dialogue_1008(player) player.npcMessage("Okay, thank you; I'll be off now!") player.nextChat = 1009###################################The player goes to get the items###################################def dialogue_1009(player) player.npcMessage("Alas adventurer! You are back! Have you got the bows for me?", 648, "King Roald") player.nextChat = 1010 def dialogue_1010(player) player.npcMessage("Yes, I have them here, take a look.") player.nextChat = 1011def dialogue_1011(player) if player.questStage = 1 if player.getItems().playerHasItem(842, 15) and player.getItems().playerHasItem(844, 25) and player.getItems()playerHasItem(848, 40) and player.getItems().playerHasItem(852, 50) player.npcMessage("Wonderful! That's all I need. Thank you, brave adventurer!", 648, "King Roald") player.nextChat = 1012 else : player.npcMessage("You don't have the items, you need 15 Shortbows, 25 Oak Shortbows, 40 Willow Longbows and 50 Maple Longbows.", 648, "King Roald")def delete_items(player) if player.getItems().playerHasItem(842, 15) and player.getItems().playerHasItem(844, 25) and player.getItems()playerHasItem(848, 40) and player.getItems().playerHasItem(852, 50) player.getItems().deleteItem(842, 15) and player.getItems().deleteItem(844, 25) and player.getItems().deleteItem(848, 40) and player.getItems().deleteItem(852,50) def dialogue_1012(player) player.npcMessage("Please accept this money as a reward for your efforts.", 648, "King Roald") def reward(player) if player.getFunction()checkSpace(1): player.addItem(995, 15000000) else: player.sendMessage("Congratulations! Quest complete.")