Vim.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/Vim.lua
  3. Script Author : Cynnar
  4. Script Date : 2018.10.14 09:10:43
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[
  9. Script Name : SpawnScripts/OutpostoftheOverlord/Vim.lua
  10. Script Purpose : Vim
  11. Script Author : Cynnar
  12. Script Date : 2018.10.14
  13. Script Notes : Auto-Generated Conversation from PacketParser Data
  14. --]]
  15. function spawn(NPC)
  16. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function InRange(NPC, Spawn)
  22. end
  23. function LeaveRange(NPC, Spawn)
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. local choice = math.random(1,2)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_481beac8.mp3", "I love traveling the seas... Oh! Did you need something?", "sniff", 2187888771, 2112320089, Spawn)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_187fc6bb.mp3", "I am busy right now...", "no", 1835666244, 487490745, Spawn)
  32. else
  33. end
  34. end