9
3

Vim.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/Vim.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.05.19 12:05:02
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. choice = math.random(0, 3)
  13. FaceTarget(NPC, Spawn)
  14. if choice == 0 then
  15. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_c5d0b965.mp3", "I have some tattered clothes for sale, want to take a look?", "agree", 1974233264, 2156679701)
  16. elseif choice == 1 then
  17. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_6c0c3c22.mp3", "The Far Journey is a beautiful ship, ain't she?", "smirk", 139722646, 2672074756)
  18. elseif choice == 2 then
  19. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_d3204929.mp3", "Looking for something sturdy to wear?", "nod", 696787059, 2593820637)
  20. elseif choice == 3 then
  21. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_187fc6bb.mp3", "I am busy right now...", "no", 1835666244, 487490745)
  22. end
  23. end
  24. function respawn(NPC)
  25. end
  26. function targeted(NPC, Spawn)
  27. if GetDistance(Spawn, NPC) < 10 then
  28. hailed(NPC, Spawn)
  29. end
  30. end