9
3

TipsyTina.lua 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/TipsyTina.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.24 03:10:49
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. choice = MakeRandomInt(1,4)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "voiceover/english/human_eco_evil_drunk/ft/eco/evil/human_eco_evil_drunk_guard_gf_153d5a3.mp3", "Let's have a drink together and forget that we ever met.", "happy", 698745754, 2682390289, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "voiceover/english/human_eco_evil_drunk/ft/eco/evil/human_eco_evil_drunk_guard_gf_b5bfa487.mp3", "Look sir, I had just one ale an hour ago with dinner.", "whome", 2226920057, 694300008, Spawn)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "voiceover/english/human_eco_evil_drunk/ft/eco/evil/human_eco_evil_drunk_hail_gf_965fb709.mp3", "Oooh... I don't feel so good.", "gag", 1225424963, 2991477373, Spawn)
  20. elseif choice == 4 then
  21. PlayFlavor(NPC, "voiceover/english/human_eco_evil_drunk/ft/eco/evil/human_eco_evil_drunk_guard_gf_c874c635.mp3", "I know I shouldn't drink! Forgive me sir!", "wince", 718370281, 20784543, Spawn)
  22. end
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function Drink(NPC)
  28. PlayFlavor(NPC,"","","drinking_idle",0,0)
  29. AddTimer(NPC,8000, "Drink2")
  30. end
  31. function Drink2(NPC)
  32. choice = math.random(1,3)
  33. if choice == 1 then
  34. PlayFlavor(NPC,"","","yawn",0,0)
  35. elseif choice == 2 then
  36. PlayFlavor(NPC,"","","drinking_idle",0,0)
  37. else
  38. PlayFlavor(NPC,"","","happy",0,0)
  39. end
  40. AddTimer(NPC,6000, "Drink3")
  41. end
  42. function Drink3(NPC)
  43. PlayFlavor(NPC,"","","drinking_idle",0,0)
  44. end
  45. function waypoints(NPC)
  46. MovementLoopAddLocation(NPC, 683.65, -20.64, 72.01, 2, 1)
  47. MovementLoopAddLocation(NPC, 683.65, -20.64, 72.01, 2, 22,"Drink")
  48. MovementLoopAddLocation(NPC, 683.96, -20.64, 62.55, 2, 1)
  49. MovementLoopAddLocation(NPC, 668.03, -20.64, 57.65, 2, 22,"Drink")
  50. MovementLoopAddLocation(NPC, 692.58, -20.64, 72.18, 2, 1)
  51. MovementLoopAddLocation(NPC, 692.58, -20.64, 72.18, 2, 22,"Drink")
  52. MovementLoopAddLocation(NPC, 672.17, -20.64, 62.42, 2, 1)
  53. MovementLoopAddLocation(NPC, 672.17, -20.64, 62.42, 2, 22,"Drink")
  54. MovementLoopAddLocation(NPC, 674.2, -20.64, 44.57, 2, 1)
  55. MovementLoopAddLocation(NPC, 674.2, -20.64, 44.57, 2, 22,"Drink")
  56. MovementLoopAddLocation(NPC, 682.52, -20.64, 72.1, 2, 6)
  57. MovementLoopAddLocation(NPC, 674.2, -20.64, 44.57, 2, 1)
  58. MovementLoopAddLocation(NPC, 674.2, -20.64, 44.57, 2, 22,"Drink")
  59. MovementLoopAddLocation(NPC, 672.17, -20.64, 62.42, 2, 1)
  60. MovementLoopAddLocation(NPC, 672.17, -20.64, 62.42, 2, 22,"Drink")
  61. MovementLoopAddLocation(NPC, 692.58, -20.64, 72.18, 2, 1)
  62. MovementLoopAddLocation(NPC, 692.58, -20.64, 72.18, 2, 22,"Drink")
  63. MovementLoopAddLocation(NPC, 668.03, -20.64, 57.65, 2, 1)
  64. MovementLoopAddLocation(NPC, 668.03, -20.64, 57.65, 2, 22,"Drink")
  65. MovementLoopAddLocation(NPC, 683.96, -20.64, 62.55, 2, 1)
  66. MovementLoopAddLocation(NPC, 683.96, -20.64, 62.55, 2, 22,"Drink")
  67. MovementLoopAddLocation(NPC, 683.65, -20.64, 72.01, 2, 1)
  68. MovementLoopAddLocation(NPC, 683.65, -20.64, 72.01, 2, 22,"Drink")
  69. end