Usa loop
Citarfor k,v in pairs(tab_stores) do
if not(getPlayerStorageValue(cid,k) == v)then
return msg " voce nao tem a store bla bla bla..."
end
end
Põe as stores em uma tabela
Citartab_stores = {
-- [storeid] = store value
[1020]=1,
[1030]=125
-- etc etc etc....
}


info
Grupo: Herói
Registrado: 31/05/06
Posts: 1.1k
Reputação: +164
Gênero: Masculino
Vou usar esse script para que o player só passe pelo sqm se tiver todos storageid. Mas está montado da forma errada...
function onStepIn(cid, item, pos)local position = {x = 830, y = 70, z = 7}local position2 = {x = 830, y = 69, z = 7}if (getPlayerStorageValue(cid, 10274, 10275, 10276, 10277, 10278, 10279, 10280) == 1 thendoTeleportThing(cid, position)doSendMagicEffect(position,10)elsedoTeleportThing(cid, position2)doSendMagicEffect(position2,10)endend