code is bugged, looks like you are using one from 2010~, here's fix:
change this:
elseif msgcontains(msg, "yes") and Topic[talkUser] == 1 and getPlayerStorageValue(cid, storage) == 3 and getPlayerItemCount(cid, 5879) >= 10 then
with this:
elseif msgcontains(msg, "yes") and Topic[talkUser]...