9
3

PelleShinkicker.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/PelleShinkicker.lua
  3. Script Author : Rylec
  4. Script Date : 2021.03.13 03:03:31
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. Fishing(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. SpawnSet(NPC, "visual_state", 0)
  13. FaceTarget(NPC, Spawn)
  14. local choice = MakeRandomInt(1,2)
  15. if choice == 1 then
  16. PlayFlavor(NPC, "voiceover/english/pelle_shinkicker/qey_elddar/100_quest_pelle_shinkicker_hail_f015f9a0.mp3", "Shoo shoo! I'm too busy to speak with you now!", "heckno", 1998455291, 633133163, Spawn)
  17. else
  18. local voice = MakeRandomInt(1,3)
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1024.mp3", "", "", 0, 0, Spawn)
  20. Say(NPC, "Oh, what is it now? Bristlebane's no doubt playing tricks on me again, causing all this interruption! Is there something meaningful I can help you with, or are you just going to gawk?")
  21. end
  22. end
  23. function respawn(NPC)
  24. spawn(NPC)
  25. end
  26. function Fishing(NPC)
  27. SpawnSet(NPC, "visual_state", 11540)
  28. local CastTimer = MakeRandomInt(15000,25000)
  29. AddTimer(NPC, CastTimer, "FishingReelIn")
  30. end
  31. function FishingReelIn(NPC)
  32. SpawnSet(NPC, "visual_state", 0)
  33. PlayAnimation(NPC, 11541)
  34. AddTimer(NPC, 1500, "FishingCast")
  35. end
  36. function FishingCast(NPC)
  37. SpawnSet(NPC, "visual_state", 0)
  38. PlayAnimation(NPC, 11539)
  39. AddTimer(NPC, 4000, "Fishing")
  40. end