OsharGrahl.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/OsharGrahl.lua
  3. Script Author : Rylec
  4. Script Date : 2020.10.16 11:10:34
  5. Script Purpose : Add visual states and say
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 3000, "Animations")
  10. AddTimer(NPC, 3000, "Text")
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function Animations(NPC)
  19. local choice = MakeRandomInt(1,2)
  20. if choice == 1 then
  21. PlayAnimation(NPC, 891)
  22. else
  23. PlayAnimation(NPC, 13008)
  24. end
  25. local time = MakeRandomInt(30000,40000)
  26. AddTimer(NPC, time, "Animations")
  27. end
  28. function Text(NPC)
  29. local choice = MakeRandomInt(1,3)
  30. if choice == 1 then
  31. PlayFlavor(NPC, "", "Night or day, I'll prrrotect you friend.", "flex", 0, 0 )
  32. elseif choice == 2 then
  33. Say(NPC, "")
  34. PlayFlavor(NPC, "", "All this sand in my fur, bah!", "scratch", 0, 0 )
  35. else
  36. Say(NPC, "Our poor home... lost.")
  37. end
  38. local time2 = MakeRandomInt(60000,240000)
  39. AddTimer(NPC, time2, "Text")
  40. end