blob: 3b693c5ca6310d60beac47073a64a60c3fdbdacf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
local reg = nrequire("sh_npcsystem.lua")
local base1 = nrequire("sh_talkablenpc.lua")
local base2 = nrequire("sh_moveingnpc.lua")
local npc = {}
local npc_m = {__index = function(self,key)
return base1[key] or base2[key]
end}
setmetatable(npc,npc_m)
npc.Name = "Townie"
reg.RegisterNPC(npc)
return npc
|