aQeynosianscout(rescue).lua 987 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/aQeynosianscout.lua
  3. Script Purpose : a Qeynosian scout
  4. Script Author : John Adams/Scatman
  5. Script Date : 2009.01.11
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 30, "InRange", "LeaveRange")
  10. end
  11. function hailed(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Player)
  17. choice = math.random(1, 3)
  18. if choice == 1 then
  19. PlayFlavor(NPC, "", "A little help here! How did I get myself into this mess?", "", 1689589577, 4560189, Player)
  20. elseif choice == 2 then
  21. PlayFlavor(NPC, "", "Devil dogs! Those were my best pair of pants!", "", 1689589577, 4560189, Player)
  22. else
  23. Say(NPC, "They took my armor, but they'll never take my pride!", Player)
  24. end
  25. end
  26. function casted_on(NPC, Spawn, Message)
  27. if Message == "Help down" then
  28. SpawnByLocationID(GetZone(NPC), 1584992)
  29. Despawn(NPC)
  30. end
  31. end