for i = 1, 10 do
if spr == (10 * i) and getCreatureStorage(cid, 123321 + ((i - 1) * 200)) == EMPTY_STORAGE then
db.query('UPDATE `accounts` SET `premium_points` = `premium_points` + 200 WHERE `id` = '.. getPlayerAccountId(cid) ..';')
doCreatureSetStorage(cid, 123321 + ((i - 1) * 200), 1)...