9
3

alostscout.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/alostscout.lua
  3. Script Purpose : a lost scout
  4. Script Author : John Adams
  5. Script Date : 2008.09.20
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function Speak(NPC)
  14. local choice = math.random(1,4)
  15. if choice == 1 then
  16. PlayFlavor(NPC, "", "Wha... what happened? I should get back to the colony!", "", 1689589577, 4560189, spawn)
  17. elseif choice == 2 then
  18. PlayFlavor(NPC, "", "Whe... where am I? I should get back to the colony!", "", 1689589577, 4560189, spawn)
  19. elseif choice == 3 then
  20. PlayFlavor(NPC, "", "Whew, thank you! I couldn't hold on much longer.", "", 1689589577, 4560189, spawn)
  21. else
  22. PlayFlavor(NPC, "", "Ahhhhh! I must escape!", "", 1689589577, 4560189, spawn)
  23. end
  24. AddTimer(NPC, 1000, "Run")
  25. end
  26. function Run(NPC)
  27. MoveToLocation(NPC, 216.86, -3.46, 141.55, 4, "Run2")
  28. end
  29. function Run2(NPC)
  30. MoveToLocation(NPC, 185.83, -3.20, 149.79, 4, "Vanish")
  31. end
  32. function Vanish(NPC)
  33. Despawn(NPC)
  34. end