Grepp.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/TheHiddenVillageofKugup/Grepp.lua
  3. Script Purpose : Grepp
  4. Script Author : neatz09
  5. Script Date : 2023.04.03
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function waypoints(NPC)
  15. MovementLoopAddLocation(NPC, -69.93, 13.63, 154.28, 1, 0)
  16. MovementLoopAddLocation(NPC, -70.07, 13.64, 155.49, 1, 0)
  17. MovementLoopAddLocation(NPC, -69.17, 13.65, 156.1, 1, 0)
  18. MovementLoopAddLocation(NPC, -67.52, 13.64, 153.7, 1, 10)
  19. MovementLoopAddLocation(NPC, -69.17, 13.65, 156.1, 1, 0)
  20. MovementLoopAddLocation(NPC, -70.07, 13.64, 155.49, 1, 0)
  21. MovementLoopAddLocation(NPC, -69.93, 13.63, 154.28, 1, 0)
  22. end
  23. function hailed(NPC, Spawn)
  24. RandomGreeting(NPC, Spawn)
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,3)
  28. if choice == 1 then
  29. PlayFlavor(NPC, "", "I see you have returned. I hope you brought your appetite. If there is anything you need to eat we sell it right here.", "wave", 0, 0, Spawn, 0)
  30. elseif choice == 2 then
  31. PlayFlavor(NPC, "", "Welcome back friend the stew was most excellent.", "happy", 0, 0, Spawn, 0)
  32. elseif choice == 3 then
  33. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1028.mp3", 0, 0, Spawn)
  34. end
  35. end