9
3

TobelPatadash.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/EnchantedLands/TobelPatadash.lua
  3. Script Purpose : Tobel Patadash <Prophet of Bristlebane>
  4. Script Author : Cynnar
  5. Script Date : 2015.02.24
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "tobel_patadash/_exp03/deity/bristlebane/tobel/tobel_patadash001.mp3", "", "", 1450539429, 1133241398, Spawn)
  22. AddConversationOption(conversation, "You know I couldn't agree more. I love the thrill of pulling off a good prank.", "dlg_0_1")
  23. AddConversationOption(conversation, "Sorry, you've mistaken me for someone else. Good day.")
  24. StartConversation(conversation, NPC, Spawn, "Why hello there. The name's Patadash, Tobel Patadash. I'm the true prophet of Bristlebane, I am. Say, judging by that gleam in your eye, I'd venture to guess that you enjoy having fun, maybe even at the expense of others. A joke here, a ribbing there; all in good fun, of course. Nothing beats a carefully executed practical joke!")
  25. end
  26. function dlg_0_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. AddConversationOption(conversation, "I have indeed!", "dlg_0_2")
  30. AddConversationOption(conversation, "No thank you!")
  31. StartConversation(conversation, NPC, Spawn, "Well then, it seems we're both on the same proverbial page now, aren't we? If that's the case, have you come to devote yourself to the King of Thieves, the Master of Mischief, the Prince of Prank himself, Fizzlethorpe Bristlebane?")
  32. end
  33. function dlg_0_2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. -- there is a pop up box saying "Would you like to accept Bristlebane as your deity?" with yes and no
  37. AddConversationOption(conversation, "OK then. Bye.")
  38. -- This is the start conversation that comes next in the dialog "Excellent then, let us begin the initiation!"
  39. StartConversation(conversation, NPC, Spawn, "Great! Come back another time to accept Bristlebane as you deity.")
  40. end
  41. function dlg_0_3(NPC, Spawn) -- the dialog for no in dlg_0_2
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. AddConversationOption(conversation, "Nevermind. I'm not really interested.")
  45. StartConversation(conversation, NPC, Spawn, "Well, yes, of course there's an initiation process. I hope you didn't think I just wave a magic wand over your head, hand you a squirting flower and suddenly you're a true believer in Bristlebane. There's work to be done first.")
  46. end