PrukSkullpound.lua 974 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/PrukSkullpound.lua
  3. Script Purpose : Pruk Skullpound <Guard>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function InRange(NPC, Spawn)
  9. choice = math.random(1,3)
  10. if choice == 1 then
  11. PlayFlavor(NPC, "", "Burn the tents!", "", 1689589577, 4560189, Spawn)
  12. elseif choice == 2 then
  13. PlayFlavor(NPC, "", "Bring em back! We'll pound em into the dirt.", "", 1689589577, 4560189, Spawn)
  14. else
  15. PlayFlavor(NPC, "", "I'm gonna take a souvenir back to Freeport. Maybe a new set of ears! Hahaha.", "", 1689589577, 4560189, Spawn)
  16. end
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end
  23. function spawn(NPC, Spawn)
  24. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
  25. end
  26. function respawn(NPC, Spawn)
  27. spawn(NPC, Spawn)
  28. end