PrankPreparednessKit.lua 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : ItemScripts/PrankPreparednessKit.lua
  3. Script Purpose : Prank Preparedness Kit
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes :
  7. --]]
  8. -- Quest ID's
  9. local HELPING_SOME_FRIENDS = 325 -- was 72
  10. function examined(Item, Player)
  11. conversation = CreateConversation()
  12. AddConversationOption(conversation, "Read instructions.", "ReadInstructions")
  13. StartDialogConversation(conversation, 2, Item, Player, "Inside the Prank Preparedness Kit there are a couple of pies, a note written and signed by Remmy Tumbum, and some instructions from Rondo Roundstew.")
  14. end
  15. function ReadInstructions(Item, Player)
  16. conversation = CreateConversation()
  17. AddConversationOption(conversation, "Read the next page.", "NextPage")
  18. StartDialogConversation(conversation, 2, Item, Player, "Greetings Pranked Preparedness Kit user. If you are reading this you have no doubt offered to help me in one of my amazing prank endeavors. Let me first give you my appreciation for helping me in such an effort. As you no doubt know I am a prankster of some infamy. Because of this, I am unable to perform pranks myself, as anyone I talk to suspects I'm pulling a prank on them (except you, and thank goodness for that).\nThe following pages have your targets and your instructions. The kit itself should hold all its materials.")
  19. end
  20. function NextPage(Item, Player)
  21. conversation = CreateConversation()
  22. AddConversationOption(conversation, "Read about the next target.", "NextTarget")
  23. StartDialogConversation(conversation, 2, Item, Player, "Target: Drundo Parn\n\nSuspected Locations: Tavern\n\nReason for Prank: Drundo stole my pint! He stole my pint and replaced it with some other brew that turned my lips purple for a WEEK! He's a good trickster, he is. I've learned that he's horrible allergic to nuts, however!\n\nPrank: A non-spiced walnut pie could easily be injected with cream and topped with berry frosting and thus disguised. Drundo won't know what hit him, his face will be fatter than a lush's gut on payday!")
  24. end
  25. function NextTarget(Item, Player)
  26. conversation = CreateConversation()
  27. AddConversationOption(conversation, "Read about the next target.", "NextTarget2")
  28. StartDialogConversation(conversation, 2, Item, Player, "Target: Jayla Midhop\n\nSuspected Location: Outside Armorer's Shop\n\nReason for Prank: Tricked me out of twenty silver pieces by using her charm on me! She may have beaten my wit face to face, but when backs are turned I'm betting she won't expect my comback!\n\nPrank: Jayla Midhop - I know she has a thing for Remmy Tumbum. I also know she has a thing for Marybelle's Meadowberry Pie. I ALSO know she does not welcome the advances of Bolo Brassharp. With a little help from Remmy--I know he'd be willing to write a fake note for me--I can set her up for a very uncomfortable situation.")
  29. end
  30. function NextTarget2(Item, Player)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "Read the last page.", "LastPage")
  33. StartDialogConversation(conversation, 2, Item, Player, "Target: Bolo Brassharp\n\nSuspected Location: Outside the Inn\n\nReason for Prank: This guy doesn't know how little everyone thinks of him. A prank won't change his opinion of himself, but if I'm lucky he'll want revenge and he'll be a fellow prankster for a time to come. At the very least everyone will get to laugh at him, which he most certainly deserves.\n\nPrank: Bolo Brassharp - I won't need to trick him into seeing Jayla. But her rejection alone isn't enough. Being rejected after both have had their fill of a Busselberry Bloat Pie will be MOST uncomfortable, however. Properly disguised, the bloat pie will loook just like a meadowberry pie.")
  34. end
  35. function LastPage(Item, Player)
  36. if HasQuest(Player, HELPING_SOME_FRIENDS) and GetQuestStep(Player, HELPING_SOME_FRIENDS) == 1 then
  37. SetStepComplete(Player, HELPING_SOME_FRIENDS, 1)
  38. end
  39. conversation = CreateConversation()
  40. AddConversationOption(conversation, "Put the Prank Preparedness Kit away.", "CloseItemConversation")
  41. StartDialogConversation(conversation, 2, Item, Player, "So there are the targets. Remember, do not let them suspect anything, and do not mention my name!\nGood luck,\nThe Prankster - R.R.")
  42. end