cnecesito su ayuda para hacer que cada pokemon nasca con nivel diferente ejemplo que butterfly nasca nivel 30, metapod lvl 10, caterpie 5
Spoiler
local cfg = { monsters = {"Butterfly", "Metapod", "Caterpie", "Pidgey", "Beedrill", "Meowth", "Pidgeotto"}, grassChance = 25, -- % chance create monster timeTo = 5, -- Seconds so you can use them again } function onStepIn(cid, item, pos) if not isPlayer(cid) then return true end if getGlobalStorageValue(14260) > os.time() then return true end if math.random(100) <= cfg.grassChance then doCreateMonster(cfg.monsters[math.random(1, #cfg.monsters)], getCreaturePosition(cid)) addEvent(doSendMagicEffect, 1 * 1000, getCreaturePosition(cid), 14) setGlobalStorageValue(14260, os.time() + cfg.timeTo) end return true end