Ich habe etwa 100 dieser if-Anweisungen, könnte ich das besser machen?
function onSay (cid, words, param)
mark = string.lower(param)
if mark == "kojo" then
moveTo(cid, {x=32838, y=31926, z=7})
sendEffect({x=32838, y=31926, z=7}, 10)
elseif mark == "habala" then
moveTo(cid, {x=32838, y=31926, z=7})
sendEffect({x=32838, y=31926, z=7}, 10)
end
-- and so on.....
end