NebbleUnderroot.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/NebbleUnderroot.lua
  3. Script Author : Zcoretri, premierio015(Update)
  4. Script Date : 2015.07.27
  5. Script Purpose : Nebble Unfderroot dialog
  6. Modified Date : 2020.04.03
  7. Modified by : premierio015
  8. Modified Notes : Added correct VoiceOvers and animation
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. SpawnSet(NPC, "visual_state", 0)
  17. FaceTarget(NPC, Spawn)
  18. math.randomseed(os.time())
  19. choice = math.random(1,2)
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1040.mp3", "", "fishing_reel_in", 0, 0, Spawn)
  21. text = math.random(1,3)
  22. if text == 1 then
  23. Say(NPC, "Mmm, triggerfish pie! I can smell it now.")
  24. elseif text == 2 then
  25. Say(NPC, "Shark fin soup! Maybe I'll get lucky.")
  26. else
  27. Say(NPC, "Got any goods for sale from your adventures?")
  28. end
  29. AddTimer(NPC, 45000, "FishingCast", 1, Spawn)
  30. end
  31. function FishingCast(NPC)
  32. PlayAnimation(NPC, 11539)
  33. AddTimer(NPC, 4000, "ResetState", 1, Spawn)
  34. end
  35. function ResetState(NPC)
  36. SpawnSet(NPC, "visual_state", 11540)
  37. end