GuardVivian.lua 877 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/GuardVivian.lua
  3. Script Purpose : Guard Vivian <Guard>
  4. Script Author : Scatman
  5. Script Date : 2009.05.14
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. local choice = math.random(1, 4)
  16. if choice == 1 then
  17. PlayFlavor(NPC, "", "I hate working this shift! If the gnolls don't attack now I may die of boredom.", "grumble", 0, 0, Spawn)
  18. elseif choice == 2 then
  19. PlayFlavor(NPC, "", "Duty above all else citizen, except honor!", "scold", 0, 0, Spawn)
  20. elseif choice == 3 then
  21. PlayFlavor(NPC, "", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 0, 0, Spawn)
  22. elseif choice == 4 then
  23. PlayFlavor(NPC, "", "Good day to you citizen, all preserve Queen Antonia.", "salute", 0, 0, Spawn)
  24. end
  25. end