1234567891011121314151617181920212223242526272829303132333435 |
- --[[
- Script Name : SpawnScripts/TheThievesWay_Classic/aDarkbladescoutRoam.lua
- Script Author : LordPazuzu
- Script Date : 2023.12.11 04:12:04
- Script Purpose :
- :
- --]]
- require "SpawnScripts/Generic/NPCModule"
- function spawn(NPC, Spawn)
- NPCModule(NPC, Spawn)
- race(NPC,Spawn)
- RandomMovement(NPC, Spawn, 5, -5, 2, 8, 15)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function race(NPC, Spawn)
- local race = MakeRandomInt(1,6)
- if race == 1 or race == 2 then
- human(NPC, Spawn)
- elseif race == 3 or race == 4 then
- ratonga(NPC, Spawn)
- elseif race == 5 then
- kerra(NPC, Spawn)
- elseif race == 6 then
- darkelf(NPC, Spawn)
- end
- end
|