Kayan
Active Member
I need um function to log all who players talk with NPC.
Example: Player say "Hi" it'll be logged at a file.. I need something like this.
Repp++
Example: Player say "Hi" it'll be logged at a file.. I need something like this.
Code:
function onCreatureSay(cid, type, msg)
doWriteLogFile("data/logs/npc.txt", getCreatureName(cid) + onCreatureSay")
npcHandler:onCreatureSay(cid, type, msg) end
Repp++