PrinterLUA/FORGOTTENSERVER-ORTS — pull request #390 by att3 (2014-04-30 22:10:14+00:00)
Title: fix bug?

Made pull request since if I am not wrong this is major bug.
Example this;
if(item.actionid == 2215 and getPlayerStorageValue(cid, 2215) < 1) then --anni
doPlayerAddExp(cid, 100000, true, true)
end

Bottom of the file;
result = "You have found " .. result .. "."
setPlayerStorageValue(cid, storage, 1)
end

Because right now = player doesn't have cap or room in his backpack hes storage id won't become (2215, 1) correct? = he will get the experience from the chest as many times as he wants.

Ofc, by adding setPlayerStorageValue(cid,2215, 1) to the file would be "quick fix", but not a proper one.

Well.. or just add the "addExp" here.
else
result = "You have found " .. result .. "."
setPlayerStorageValue(cid, storage, 1)
doPlayerAddExp(uhm, became more difficult than thought)
end