local cfg = {{monsters = {"Pidgey"}, grassChance = 15, timeTo = 10, lvl = 5},
{monsters = {"Rattata"}, grassChance = 10, timeTo = 10, lvl = 2},
{monsters = {"Caterpie"}, grassChance = 5, timeTo = 10, lvl = 4},
}
function onStepIn(cid, 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)
doItemSetAttribute(item, "level", cfg.lvl)
setGlobalStorageValue(14260, os.time() + cfg.timeTo)
end
return true
end