Marshmello 270 Posted October 20, 2018 Share Posted October 20, 2018 Fala Jovens , Vi muitas pessoas falando sobre o system de zorua, então decidir trazer pra vocês Lembrando : Testado em PDA TFS 0.3.6 SEM Level System Então Vamos lá Em CreatureScript/ Spawn.lua Em baixo de Citar local function doShiny(cid) if isCreature(cid) then if isSummon(cid) then return true end if getPlayerStorageValue(cid, 74469) >= 1 then return true end if getPlayerStorageValue(cid, 22546) >= 1 then return true end if isNpcSummon(cid) then return true end if getPlayerStorageValue(cid, 637500) >= 1 then return true end --alterado v1.9 if isInArray(shinys, getCreatureName(cid)) then --alterado v1.9 \/ chance = 0.1 --1% chance elseif isInArray(raros, getCreatureName(cid)) then --n coloquem valores menores que 0.1 !! chance = 0.1 --1% chance else return true end if math.random(1, 1000) <= chance*10 then doSendMagicEffect(getThingPos(cid), 18) local name, pos = "Shiny ".. getCreatureName(cid), getThingPos(cid) doRemoveCreature(cid) local shi = doCreateMonster(name, pos, false) setPlayerStorageValue(shi, 74469, 1) else setPlayerStorageValue(cid, 74469, 1) end --/\ else return true end end Colé Isso local function doZorua(cid) if isCreature(cid) then if isSummon(cid) then return true end if getPlayerStorageValue(cid, 74469) >= 1 then return true end if getPlayerStorageValue(cid, 22546) >= 1 then return true end if isNpcSummon(cid) then return true end if getPlayerStorageValue(cid, 637500) >= 1 then return true end --alterado v1.9 if os.date("%X") >= "00:00:00" and os.date("%X") <= "03:00:00" then chance = 0.75 elseif os.date("%X") >= "03:01:00" and os.date("%X") <= "05:00:00" then chance = 1.50 elseif os.date("%X") >= "05:01:00" and os.date("%X") <= "07:00:00" then chance = 1 elseif os.date("%X") >= "07:00:00" and os.date("%X") <= "12:00:00" then chance = 0.20 elseif os.date("%X") >= "12:01:00" and os.date("%X") <= "16:00:00" then chance = 0.10 elseif os.date("%X") >= "16:01:00" and os.date("%X") <= "18:00:00" then chance = 0.10 elseif os.date("%X") >= "18:01:00" and os.date("%X") <= "20:00:00" then chance = 0.15 elseif os.date("%X") >= "20:01:00" and os.date("%X") <= "22:00:00" then chance = 0.18 elseif os.date("%X") >= "22:01:00" and os.date("%X") <= "23:59:59" then chance = 0.30 else chance = 0 end local test = math.random(1,20000) if test <= chance*5 then doSendMagicEffect(getThingPos(cid), 18) local lvl = math.random(10, 30) local name, pos = "Zorua", getThingPos(cid) local shi = doCreateMonster(name, pos , false) doSetCreatureOutfit(shi, getCreatureOutfit(cid), -1) doCreatureSetNick(shi, getCreatureName(cid)) doRemoveCreature(cid) setPlayerStorageValue(shi, 74469, 1) print("Um " .. name .. " foi spawnado em X=" .. pos.x .. " Y=" .. pos.y .. " Z=" .. pos.z) else setPlayerStorageValue(cid, 74469, 1) end --/\ else return true end end Continuando Em Spawn.lua Em Baixo De addEvent(doShiny, 10, cid) Adicione addEvent(doZorua, 10, cid) ============================================================================== -----------CONFIGURANDO------------------------ Em if os.date("%X") >= "00:00:00" and os.date("%X") <= "03:00:00" then chance = 0.75 Cada Horario tem uma X Chance De Spawn Pode ser trocadas ----------------------------- local name, pos = "Zorua", getThingPos(cid) No Local Name , Seria o poke que ira spawnar e ficara escondido no meio de outros Pokes --------------------------------------------------------------------- Então e Isso Galera , Bom proveito do System Gostou Deixe Aquele REP+ raulcdj, FlamesAdmin, Mixlortt and 4 others 4 3 Link to comment Share on other sites More sharing options...
Marcellotibiano 0 Posted October 20, 2018 Share Posted October 20, 2018 Nice REP+ Link to comment Share on other sites More sharing options...
Benny 735 Posted October 20, 2018 Share Posted October 20, 2018 Obrigado pelo conteúdo, @Marshmello Link to comment Share on other sites More sharing options...
Marshmello 270 Posted October 20, 2018 Author Share Posted October 20, 2018 @Benny ❤️ Link to comment Share on other sites More sharing options...
Ayron5 40 Posted October 21, 2018 Share Posted October 21, 2018 Muito bom ? rep! Link to comment Share on other sites More sharing options...
Marcellotibiano 0 Posted October 21, 2018 Share Posted October 21, 2018 Uma duvida se eu fizer tudo isso q vc passou o system ja vai funcionar ? Ou tenho que alterar algo ? Link to comment Share on other sites More sharing options...
Marshmello 270 Posted October 21, 2018 Author Share Posted October 21, 2018 1 minuto atrás, Marcellotibiano disse: 4 horas atrás, Marshmello disse: ? Link to comment Share on other sites More sharing options...
Marcellotibiano 0 Posted October 21, 2018 Share Posted October 21, 2018 Agora, Marshmello disse: (Mals bugou) eu tenho uma dúvida, se eu fizer o passo a passo o system vai funcionar de boas ou eu preciso alterar algo ? Link to comment Share on other sites More sharing options...
Marshmello 270 Posted October 21, 2018 Author Share Posted October 21, 2018 5 minutos atrás, Marcellotibiano disse: 6 minutos atrás, Marshmello disse: (Mals bugou) eu tenho uma dúvida, se eu fizer o passo a passo o system vai funcionar de boas ou eu preciso alterar algo ? Só fazer passo a passo que n da nenhum erro Link to comment Share on other sites More sharing options...
Duhisback 29 Posted October 21, 2018 Share Posted October 21, 2018 @Marshmello como que funciona esse system? nunca vi em funcionamento hehe Link to comment Share on other sites More sharing options...
Recommended Posts