Rootka.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/Rootka.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.03.15 05:03:16
  5. Script Purpose :
  6. :
  7. --]]
  8. local QUEST = 406 -- Filling the Coffers
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1031.mp3", "", "", 0, 0, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. if GetQuestStep(Spawn, QUEST) == 4 then
  15. conversation = CreateConversation()
  16. AddConversationOption(conversation, "Your taxes weren't all in your mailbox.", "Option1")
  17. StartConversation(conversation, NPC, Spawn, "What you wants with Rootka?")
  18. else
  19. local choice = MakeRandomInt(1, 2)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "", "Those kerrans always making such smells.", "", 0, 0, Spawn)
  22. Emote(NPC, "makes a stinky face.")
  23. else
  24. PlayFlavor(NPC, "", "Rootka's home, not yours!", "", 0, 0, Spawn)
  25. end
  26. end
  27. end
  28. function Option1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. AddConversationOption(conversation, "It appears to be working.", "Option2")
  32. StartConversation(conversation, NPC, Spawn, "Someone takes them, then! Tries to make Rootka looks bad!")
  33. end
  34. function Option2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. AddConversationOption(conversation, "There was only half in your mailbox.", "Option3")
  38. StartConversation(conversation, NPC, Spawn, "Fine, fine! Rootka understands. How much?")
  39. end
  40. function Option3(NPC, Spawn)
  41. SetStepComplete(Spawn, QUEST, 4)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. AddConversationOption(conversation, "Thank you, Rootka.")
  45. StartConversation(conversation, NPC, Spawn, "Here, take it. Rootka likes living more than money anyway.")
  46. end
  47. function respawn(NPC)
  48. spawn(NPC)
  49. end