Ir para conteúdo
  • Cadastre-se

Celulose

Membro
  • Total de itens

    647
  • Registro em

  • Última visita

  • Dias Ganhos

    7

Tudo que Celulose postou

  1. @Jeff Delay function onStepOut(cid, item, position, fromPosition) if(getTileInfo(position).creatures > 0) then return true end local newPosition = {x = position.x, y = position.y, z = position.z} if(isInArray(verticalOpenDoors, item.itemid)) then newPosition.x = newPosition.x + 1 else newPosition.y = newPosition.y + 1 end doRelocate(position, newPosition) local tmpPos = position tmpPos.stackpos = -1 local i, tmpItem, tileCount = 1, {uid = 1}, getTileThingByPos(tmpPos) while(tmpItem.uid ~= 0 and i < tile
  2. posta seu game.cpp não é o diagonal que tu está querendo ?:
  3. Poem meus créditos, quem passou essa base pra 8.60 foi eu ! e fora alguns sistemas!
  4. @KyureJL addEvent(doSendDistanceShoot, 1, getCreaturePosition(cid), {x = poz.x, y = poz.y-2, z = poz.z}, 46) 46 = efeito addEvent(doSendDistanceShoot, 400, {x = poz.x, y = poz.y-2, z = poz.z}, pos, 136) 136 = efeito addEvent(doSendMagicEffect, 300, {x = poz.x+1, y = poz.y-1, z = poz.z}, 186) 186 = efeito addEvent(doSendMagicEffect, 600, {x = pos.x+2, y = pos.y, z = pos.z}, 235) 235 = efeito addEvent(doSendMagicEffect, 1600, {x = pos.x+1, y = pos.y+1, z = pos.z}, 82) 82 = efeito
  5. Aumenta em vocation.xml um valor alto e vê se ocorre a queda de cpu outra forma player.cpp procura por uint32_t Player::getAttackSpeed() const uint32_t Player::getAttackSpeed() const { int32_t SpeedAttack; SpeedAttack = getSkill(SKILL_FIST, SKILL_LEVEL); if(SpeedAttack < 10) SpeedAttack = 3000; else if(SpeedAttack >= 10 && SpeedAttack < 20) SpeedAttack = 2800; else if(SpeedAttack >= 20 && SpeedAttack < 30) SpeedAttack = 2600; else if(SpeedAttack >= 30 && SpeedAttack < 40) SpeedAtta
  6. tu pode corrigir isso com diversas forma .. 1: otimizar seus script. 2: otimizar distro. a otx github corrigiu alguns bugs que aumentava muito a cpu . agora tu usa tfs não tem mais att, tenta migrar pra otx. antigamente eu tinha esses problema trabalhei nas otimização uso um vps de 10gb e já peguei 439 players (Derivado) e cpu ficava 60% hoje com 150 fica 33%
  7. @mateuscorrea <event type="combat" name="SummonAntKillPlayer" event="script" value="SummonAntKillPlayer.lua"/> <event type="combat" name="PlayerAntKillSummon" event="script" value="PlayerAntKillSummon.lua"/> SummonAntKillPlayer.lua function onCombat(cid, target) if isInArray(getCreatureSummons(target), cid) then return false end return true end PlayerAntKillSummon.lua function onCombat(cid, target) if cid == getCreatureMaster(target) then doPlayerSendCancel(cid, "Voce nao pode matar seu summon.") return false end return true end log
  8. local configs = { players_db = {}, save_delay = 5, -- Segundos } function savePlayer() if isPlayer(cid) then if #configs.players_db > 0 then doPlayerSave(configs.players_db[1]) table.remove(configs.players_db, 1) return addEvent(savePlayer, configs.save_delay * 1000) end return true end end function onThink(interval) for _, cid in ipairs(getPlayersOnline()) do table.insert(configs.players_db, cid) end savePlayer() return true end
  9. Usa esse mod cria um arquivo bank.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Custom Bank" version="1.0" author="slawkens - edited by: mattyx14" contact="[email protected]" enabled="yes"> <!-- Bank Command --> <config name="command-bank-config"><![CDATA[ transferDisabledVocations = {0} -- disable non vocation characters ]]></config> <talkaction words="!bank;/bank" event="script"><![CDATA[ domodlib('command-bank-config') local config = { transferDisabledVocations = transferDisabledVocations } local funct
  10. creaturescript algum script onThink exemplo: function onThink(cid, interval) local itemid = 13496 local outfit = {lookType = 501} if isPlayer(cid) and getPlayerItemCount(cid, itemid) >= 1 and getPlayerStorageValue(cid, 30023) >= 1 then doPlayerSetVocation(cid, 535) doPlayerRemoveItem(cid, itemid, 1) doCreatureChangeOutfit(cid, outfit) addEvent(doRemoveCreature, 1, cid) elseif isPlayer(cid) and getPlayerItemCount(cid, itemid) >= 1 then doPlayerSetVocation(cid, 530) doPlayerRemoveItem(cid, itemid, 1) doCreatureChangeOutfit(cid, outfit) addEvent(doRemoveCreatu
  11. @Phineasz <outfit id="2" storageId="8000" storageValue="1" premium="no" default="0"> <list gender="0-3" lookType="501" name="Goku Instinct"/> </outfit>
  12. @KOLISAO top, vê se não vende esse baiak e posta aqui também. vai saber né WESLEY
  13. Testei na otx e está funcionando Na 0.3 era pra funcionar Estou pelo celular agora, assim que eu chegar vou olhar Salva o msg.lua em ansi Fórum está bugando, se tiver em utf vai bugar
  14. algo bem simples porém funcional kk @Spooky Ghost se tu deixar em login.lua não vai mandar a mensagem precisa ser feito a verificação dentro do script local channels = { [4] = {txt = "(Game-Chat) Este canal é apenas para CONVERSAS CASUAIS e SOCIALIZAÇÃO. Negociações e spam/flood são proibidas neste canal, respeito e educação são essenciais. Siga as regras para não ser mutado"}, -- GameChat [5] = {txt = "(TRADE) Este canal é apenas para TROCAS de itens relacionados ao jogo. Qualquer coisa além disso pode ocasionar um mute ou banimento."}, -- Trade [9] = {txt = "(H
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo