PlurppBogthumb.lua 963 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/PlurppBogthumb.lua
  3. Script Purpose : Plurpp Bogthumb
  4. Script Author : theFoof
  5. Script Date : 2013.10.30
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 15, "InRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. local choice = math.random(1,4)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "", "", "hello", 1689589577, 4560189, Spawn)
  23. elseif choice == 2 then
  24. PlayFlavor(NPC, "", "Please spare me your 'green thumb' jokes.", "", 1689589577, 4560189, Spawn)
  25. elseif choice == 3 then
  26. PlayFlavor(NPC, "", "A little love is all this sapling requires.", "", 1689589577, 4560189, Spawn)
  27. else
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1017.mp3", "", "", 0, 0, Spawn)
  29. end
  30. end