9
3

GetheHuggs.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name: GetheHuggs.lua
  3. Script Purpose: Collections for evil island
  4. Script Author: John Adams
  5. Script Date: 2008.09.02
  6. Script Notes: Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local GetheHuggs = 2780039
  9. function spawn(NPC)
  10. MovementLoopAddLocation(NPC, 5.65, -6.50, 208.26, 2, 10, "Gather")
  11. MovementLoopAddLocation(NPC, 0.71, -5.83, 198.18, 2, 10, "Gather")
  12. MovementLoopAddLocation(NPC, 10.66, -6.90, 200.55, 2, 10, "Gather")
  13. MovementLoopAddLocation(NPC, 18.65, -6.87, 194.36, 2, 10, "Gather")
  14. MovementLoopAddLocation(NPC, 26.80, -6.86, 187.05, 2, 10, "Gather")
  15. MovementLoopAddLocation(NPC, 31.08, -6.24, 197.45, 2, 10, "Gather")
  16. MovementLoopAddLocation(NPC, 9.11, -6.80, 206.29, 2, 10, "Gather")
  17. -- return to spawn point and hang out.
  18. MovementLoopAddLocation(NPC, -6.18, -4.96, 218.46, 2, 0)
  19. MovementLoopAddLocation(NPC, -5.91, -4.96, 218.24, 2, 30)
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. --[[ random greeting?
  25. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1003.mp3", "", "", 0, 0, Spawn)
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1003.mp3", "", "", 0, 0, Spawn)
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1003.mp3", "", "", 0, 0, Spawn)
  28. --]]
  29. -- No Collections Completed
  30. AddConversationOption(conversation, "I don't have any at the moment.", "dlg_1_1")
  31. StartConversation(conversation, NPC, Spawn, "Hello there! If you have any collections that you've completed, I can take them off your hands and reward you for your time. I'm just crazy for collections!")
  32. -- Collection(s) to hand in
  33. --AddConversationOption(conversation, "I have a collection for you.", "dlg_8_1")
  34. --AddConversationOption(conversation, "I don't have any at the moment.")
  35. --StartConversation(conversation, NPC, Spawn, "Hello there! If you have any collections that you've completed, I can take them off your hands and reward you for your time. I'm just crazy for collections!")
  36. end
  37. function dlg_8_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. -- no playflavor()
  41. AddConversationOption(conversation, "Okay, bye!")
  42. StartConversation(conversation, NPC, Spawn, "This is a magnificent find! Here, take this for all your hard work.")
  43. end
  44. function Gather(NPC)
  45. GatherSpawn = GetSpawn(NPC, GetheHuggs ) -- Get Gethe Huggs
  46. SpawnSet(GatherSpawn, "visual_state", "2809") -- Start gathering
  47. AddTimer(NPC, 5000, "stop_gathering") -- for 5 seconds, then stop
  48. end
  49. function stop_gathering(NPC)
  50. GatherSpawn = GetSpawn(NPC, GetheHuggs ) -- get Gethe Huggs
  51. SpawnSet(GatherSpawn, "visual_state", "0") -- Stop her from gathering
  52. end