SplorpyQuagmarr_(pet).lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/SplorpyQuagmarr_(pet).lua
  3. Script Purpose : the Splorply Quagmarr pet from the quest "Little Lost Froglok"
  4. Script Author : theFoof
  5. Script Date : 2013.05.22
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 5000, "chatswitch")
  10. AddTimer(NPC, 600000, "depop")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function chatswitch(NPC)
  16. choice = math.random(1,6)
  17. if choice == 1 then
  18. Say(NPC, "Did you fight those with your bare hands?")
  19. elseif choice == 2 then
  20. Say(NPC, "It's cold out here!")
  21. elseif choice == 3 then
  22. Say(NPC, "I have to go to the bathroom.")
  23. elseif choice == 4 then
  24. Say(NPC, "Do you know where you are going?")
  25. elseif choice == 5 then
  26. Say(NPC, "I wonder if I'll get to see Mithaniel Marr!")
  27. elseif choice == 6 then
  28. Say(NPC, "That bear was eating a dead pilgrim!")
  29. end
  30. AddTimer(NPC, math.random(15000,30000), "chatswitch")
  31. end
  32. function depop(NPC, Spawn)
  33. Despawn(NPC)
  34. end