Leldwana.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Leldwana.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.15 09:03:39
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 406 -- Filling the Coffers
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1047.mp3", "", "", 0, 0, Spawn)
  14. if GetQuestStep(Spawn, QUEST) == 6 then
  15. conversation = CreateConversation()
  16. AddConversationOption(conversation, "Your taxes.", "Option1")
  17. StartConversation(conversation, NPC, Spawn, "What do you want?")
  18. else
  19. local choice = MakeRandomInt(1, 2)
  20. if choice == 1 then
  21. PlayFlavor(NPC,"", "Leave, please, unless you have a business.", "", 0, 0, Spawn)
  22. else
  23. PlayFlavor(NPC,"", "I would invite you to stay, but...", "", 0, 0, Spawn)
  24. end
  25. end
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. SetStepComplete(Spawn, QUEST, 6)
  30. conversation = CreateConversation()
  31. AddConversationOption(conversation, "You should probably be more careful in the future.")
  32. StartConversation(conversation, NPC, Spawn, "Oh no! I forgot! I'm so sorry. Here, take it, I have it right here.")
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end