SergeantatArmsUthros.lua 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/SergeantatArmsUthros.lua
  3. Script Purpose : Sergeant at Arms Uthros
  4. Script Author : John Adams
  5. Script Date : 2008.09.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. ProvidesQuest(NPC, 1)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. conversation = CreateConversation()
  14. choice = math.random(1,2)
  15. if choice == 1 then
  16. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0)
  17. else
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0)
  19. end
  20. if HasCompletedQuest(Spawn, 1) then
  21. else
  22. AddConversationOption(conversation, "I'm intent on staying.", "dlg_0_1")
  23. AddConversationOption(conversation, "Perhaps I should play it safe and go back to the village.")
  24. StartConversation(conversation, NPC, Spawn, "Watch your step, friend. Many adventurers get injured because they don't know the dangers that lurk here. These grounds are home to the ruins of the old mage academy. It was destroyed during the wars that raged centuries ago. And aside from the already dangerous inhabitants of these ruins, elemental servants of mages lurk about. Scared yet? ... If you're intent on staying in Qeynos, I suppose we can use your help.")
  25. end
  26. if convo==1 then
  27. AddConversationOption(conversation, "Perhaps I should play it safe and go back to the village.", "dlg_1_1")
  28. StartConversation(conversation, NPC, Spawn, "Watch your step, friend. Many adventurers get injured because they don't know the dangers that lurk here. These grounds are home to the ruins of the old mage academy. It was destroyed during the wars that raged centuries ago. And aside from the already dangerous inhabitants of these ruins, elemental servants of mages lurk about. Scared yet? ... If you're intent on staying in Qeynos, I suppose we can use your help.")
  29. end
  30. if convo==14 then
  31. AddConversationOption(conversation, "I have taken care of the vermin.", "dlg_14_1")
  32. AddConversationOption(conversation, "Perhaps I should play it safe and go back to the village.")
  33. StartConversation(conversation, NPC, Spawn, "Watch your step, friend. Many adventurers get injured because they don't know the dangers that lurk here. These grounds are home to the ruins of the old mage academy. It was destroyed during the wars that raged centuries ago. And aside from the already dangerous inhabitants of these ruins, elemental servants of mages lurk about. Scared yet? ... If you're intent on staying in Qeynos, I suppose we can use your help.")
  34. end
  35. end
  36. function dlg_0_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "Sounds good.", "dlg_0_2")
  40. StartConversation(conversation, NPC, Spawn, "Well, then, make yourself useful and kill some of the nasty vermin who live in this area. And if you need something to do later, come on back, I always need help!")
  41. end
  42. function dlg_14_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "Sure.", "dlg_14_2")
  46. AddConversationOption(conversation, "Not right now. ")
  47. StartConversation(conversation, NPC, Spawn, "Hey! Great work on the vermin. Can you spare more time to help Qeynos?")
  48. end
  49. function dlg_14_2(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. AddConversationOption(conversation, "You bet.", "dlg_14_3")
  53. StartConversation(conversation, NPC, Spawn, "Great! Then go and kill more vermin.")
  54. end