mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
11 lines
288 B
Lua
11 lines
288 B
Lua
local NPC_CUSTOM = 400119
|
|
local WANDER_RADIUS = 5
|
|
|
|
function CustomNPC_OnSpawn(event, creature)
|
|
creature:SetDefaultMovementType(1)
|
|
creature:SetWanderRadius(WANDER_RADIUS)
|
|
creature:MoveRandom(WANDER_RADIUS)
|
|
end
|
|
|
|
RegisterCreatureEvent(NPC_CUSTOM, 5, CustomNPC_OnSpawn)
|