9
3

aDervishcraftsman.lua 847 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/aDervishcraftsman.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.19 04:05:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange")
  10. end
  11. function InRange(NPC, Spawn)
  12. local choice = MakeRandomInt(1, 3)
  13. if choice == 1 then
  14. PlayFlavor(NPC, "", "This is Dervish territory. Leave while you still can.", "brandish", 0, 0, Spawn)
  15. elseif choice == 2 then
  16. PlayFlavor(NPC, "", "I only do business with Dervs. Go away!", "no", 0, 0, Spawn)
  17. else
  18. PlayFlavor(NPC, "", "Who would ever think that a Smithson would end up being an evil pounder to the bandits", "whome", 0, 0, Spawn)
  19. end
  20. end
  21. function hailed(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end