Hello,I created script which removing Player Health and mana to 1
(it's very very simple) and I have a one problem,when I'm adding this line to talkactions.xml
and when I'm saying "noob",the script works fine,but when I say "lol,noob" it isn't work,how to fix it?
Lua:
function onSay(cid, words, param)
doCreatureAddHealth(cid,-(getCreatureHealth(cid))+1)
doCreatureAddMana(cid,-(getCreatureMana(cid))+1)
return TRUE
end
Code:
<talkaction words="noob" script="onehpandmana.lua" />
Last edited: