LUA:
-- Custom message matching callback function for requesting trade messages.
function ShopModule.messageMatcher(keywords, message)
for i, word in pairs(keywords) do
if type(word) == "string" then
if string.find(message, word) and not string.find(message, "[%w+]" .. word) and not string.find(message, word .. "[%w+]") then
return true
end
end
end
return false
end
It's a npc function and I need to get the player, self or cid. But I can't.. Can some one help?
To get npc I know that uses: Creature(getNpcCid())
Buw How to get the player? ...
Please someone help me.
It's possible?