server/scripts/example/rules.lua
2010-08-08 01:14:01 -07:00

8 lines
159 B
Lua

function item_canuse(u, iname)
local race = u.race
if iname=="greatbow" then
-- only elves use greatbow
return race=="elf"
end
return true
end