Hi, how can I at the same time use Jiddos NPC system and have the NPC greeted by the LUA script?
I mean like putting:
inside the script without ruin the other functions...
I mean like putting:
PHP:
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hi, ' .. getCreatureName(cid) .. '.')
talk_state = 0