I made some changes to the script to do what I wanted.
and it was working normally, but out of nowhere it stopped working.
and I do not know what could be.
the script has a life of its own kkkkkkk
and it was working normally, but out of nowhere it stopped working.
and I do not know what could be.
the script has a life of its own kkkkkkk
Lua:
function onSay(cid, words, param)
if getPlayerItemCount(cid, 17156) < 100 and getPlayerItemCount(cid, 17174) < 100 then
return doPlayerSendTextMessage(cid, 20, "Precisa de 100 Apricorns vermelhos e 100 Ferros.") and true
end
if getPlayerItemCount(cid, 17156) >= 100 and getPlayerItemCount(cid, 17174) >= 100 then
doPlayerAddItem(cid, 15677, 100)
doPlayerRemoveItem(cid, 17156, 100)
doPlayerRemoveItem(cid, 17174, 100)
doPlayerSendTextMessage(cid, 20, "Voce Craftou 100 Magu Ball")
return true
end
end