9
3

avagrantsquatterComplainer.lua 912 B

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : SpawnScripts/TheRuins_Classic/avagrantsquatterComplainer.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.07.10 03:07:27
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. human(NPC)
  12. IdleAngry(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if not IsInCombat(NPC)then
  19. choice = MakeRandomInt(1,4)
  20. if choice ==1 then
  21. Say(NPC, "Don't touch me!")
  22. elseif choice ==2 then
  23. Say(NPC, "Help! Militia! I'm being harassed!")
  24. elseif choice ==3 then
  25. Say(NPC, "Mind your own damn business! I have a right to be here, I'm not bothering nobody.")
  26. elseif choice ==4 then
  27. SendMessage(Spawn,"The vagrant squatter soils themself and continues arguing with the sky.","white")
  28. end
  29. end
  30. end