Vondorinsarnoo.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Vondorinsarnoo.lua
  3. Script Purpose : Vondorinsarnoo
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local SOBERING_REMEDY = 246
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, SOBERING_REMEDY)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1008.mp3", "", "", 0, 0, Spawn)
  20. if CanReceiveQuest(Spawn, SOBERING_REMEDY) then
  21. AddConversationOption(conversation, "What's wrong with him? ", "dlg_59_1")
  22. AddConversationOption(conversation, "Guess some people handle their liquor better than others. Good day!")
  23. StartConversation(conversation, NPC, Spawn, "We are coping with the recent events... some in better ways than others. Take that poor drunk, Hubert, across the way for instance...")
  24. elseif HasQuest(Spawn, SOBERING_REMEDY) and GetQuestStep(Spawn, SOBERING_REMEDY) == 4 then
  25. SetStepComplete(Spawn, SOBERING_REMEDY, 4)
  26. Say(NPC, "Sorry we don't have the turn in test")
  27. end
  28. end
  29. function dlg_59_1(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. AddConversationOption(conversation, "I'll help you, seems to be a worthy cause.", "OfferQuestSoberingRemedy")
  33. AddConversationOption(conversation, "Best of luck to you. I'll be off to pursue other interests.")
  34. StartConversation(conversation, NPC, Spawn, "His faith is shaken, and he's suffered insurmountable hardships and loss. I could help this poor soul, but first, I must remove him from his drunken stupor.")
  35. end
  36. function OfferQuestSoberingRemedy(NPC, Spawn)
  37. OfferQuest(NPC, Spawn, SOBERING_REMEDY)
  38. end
  39. function dlg_59_3(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "I'll be back soon.")
  43. StartConversation(conversation, NPC, Spawn, "He'll speak more clearly with that rotgut out of his stomach.")
  44. end