Laena.lua 729 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/Laena.lua
  3. Script Purpose : Laena
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange")
  10. end
  11. function InRange(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. choice = math.random(1,3)
  14. if choice == 1 then
  15. PlayFlavor(NPC, "", "For the Queen!", "combat_enter", 1689589577, 4560189, Spawn)
  16. elseif choice == 2 then
  17. PlayFlavor(NPC, "", "Die, Freeport scum!", "threaten", 1689589577, 4560189, Spawn)
  18. elseif choice == 3 then
  19. PlayFlavor(NPC, "", "To the gray fields with them!", "", 1689589577, 4560189, Spawn)
  20. end
  21. end