Pues eso, no hay mucho que decir
quest cofre begin
state start begin
when 38056.use begin
local items = {
{19, 1},
{29, 1},
{39, 1},
{49, 1}
}
local mobid = {
{101},
{102},
{103},
{104}
}
local items2 = math.random(table.getn(items))
local mobid2 = math.random(table.getn(mobid))
local intercambio = math.random(1,2)
if intercambio == 1 then
pc.give_item2(items[items2][1], items[items2][2])
pc.remove_item(38056,1)
elseif intercambio == 2 then
pc.give_poly_marble(mobid[mobid2][1])
chat("Has recibido "..mob_name(mobid[mobid2][1]).." bola polimorfa.")
pc.remove_item(38056,1)
end end end end