Ir para conteúdo

lucasmourahere

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Haha
    lucasmourahere deu reputação a L3K0T em Teleporte Summon tfs 0.3.6   
    TUTORIAL - TELEPORTE SUMMON
    Introdução:
    Fala pessoal, hoje vim aqui liberar um código para que futuros criadores de pokemon não usem GLOBALEVENTS ou MOVEMENTS para teleportar seus pokemons a distancia... hoje irei ensinar a você não usar mais esses scripts que aonde da maioria da vezes crash o servidores em WINDOWS em testes.
     
    Sobre o Sistema:
    Esse sistema tem a função de teleportar seu pokemon a certos sqm, tipo assim, você tem um pokemon e a distancia dele é 7 sqm, ao passar os 7 sqm ele teleporta para você, seja em qualquer lugar até de baixo da terra ou lugares super longe (Não se preocupe o problema do pokemon Morrer com source novas será removido e assim ele não vai morrer)
     
     
     
    Creature.cp
    Tutorial:
    Vá em sua source procure por creature.cpp e abra com algum editor de texto e ache:
    if(!summons.empty()) { std::list<Creature*>::iterator cit; std::list<Creature*> despawnList; for(cit = summons.begin(); cit != summons.end(); ++cit) { const Position pos = (*cit)->getPosition(); if((std::abs(pos.z - newPos.z) > 2) || (std::max(std::abs(( newPos.x) - pos.x), std::abs((newPos.y - 1) - pos.y)) > 30)) despawnList.push_back((*cit)); } for(cit = despawnList.begin(); cit != despawnList.end(); ++cit) g_game.removeCreature((*cit), true); } Mude para:
    /*if(!summons.empty()) { std::list<Creature*>::iterator cit; std::list<Creature*> despawnList; for(cit = summons.begin(); cit != summons.end(); ++cit) { const Position pos = (*cit)->getPosition(); if((std::abs(pos.z - newPos.z) > 2) || (std::max(std::abs(( newPos.x) - pos.x), std::abs((newPos.y - 1) - pos.y)) > 30)) despawnList.push_back((*cit)); } for(cit = despawnList.begin(); cit != despawnList.end(); ++cit) g_game.removeCreature((*cit), true); }*/ Agora salve ctrl+s e feche.
     
    Monster.cpp
    Tutorial:
    Agora procure por Monster.cpp e ache:
    void Monster::onThink(uint32_t interval) abaixo de:
    if(teleportToMaster && doTeleportToMaster()) teleportToMaster = false; coloque:
    if(getMaster()){ if(!Position::areInRange<6,6,0>(getPosition(), getMaster()->getPosition())) doTeleportToMaster(); } salve ctrl+s e revompila no modo rebuilde não esqueça de habilitar as opções em config.lua
        -- Summons     maxPlayerSummons = 1     teleportAllSummons = true     teleportPlayerSummons = true  
    lembre se de remover qualquer scripts que teleporta seu pokemon a distancia.
    Créditos:
    By L3K0T
     
  2. Gostei
    lucasmourahere recebeu reputação de XGaduX em [DxP] Exclusivo Poketibia OpenSource+Cliente+Site+DB   
    Alguém sabe algo sobre o pokemon não salvar no depot ao reiniciar o servidor, por exemplo?
  3. Gostei
    lucasmourahere recebeu reputação de PokeZika em Open Source ? PDA ?   
    pega uma versão mais atual de servidor com source.
  4. Gostei
    lucasmourahere recebeu reputação de PokeZika em Open Source ? PDA ?   
    Cara, não estou muito atualizado do que ta rolando e as atualizações que estão aparecendo, porém, vi que postaram um servidor chamado DxP, parecer ser bom para uma base séria.
     
    Segue o Link:
     
     
  5. Gostei
    lucasmourahere deu reputação a Ayron5 em (Resolvido)Pokemons Iniciais   
    As tags do actions.xml   os  itemid você coloca de acordo com seu gosto  
     Script: boxB
    Script: boxC
    Script: boxS
    Feito isso vá na pasta mods do seu servidor e abra o arquivo firstitems. 
    aonde tiver assim >     storage = 30001,
                items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 2547}  vc coloca os numeros dos ids das box ex: ficaria assim >  items = {1988, 1987, 2382, 2120, 2580, 2550, 7385, 2395, 2547, 7884, 7885, 7886} 
    Bom espero ter ajudado  
  6. Gostei
    lucasmourahere deu reputação a NighteyeTV em Order System   
    Acredito que todo servidor de pokemon já venha com esse sistema, oq deu no seu ?
     
  7. Gostei
    lucasmourahere deu reputação a lazarocp em Order System   
    Actions > 
    #getCreatureSummons(cid) == 0 then return true end if getCreatureSpeed(getCreatureSummons(cid)[1]) == 0 then doPlayerSendCancel(cid, "Você não pode pedir o seu pokemon para se mover agora.") return true end if getPlayerStorageValue(getCreatureSummons(cid)[1], 12) == 1 then doPlayerSendCancel(cid, "Você não pode pedir o seu pokemon para se mover agora.") return true end doPlayerSay(cid, ""..getCreatureName(getCreatureSummons(cid)[1])..", move!", 1) doChangeSpeed(getCreatureSummons(cid)[1], -getCreatureSpeed(getCreatureSummons(cid)[1])) setPlayerStorageValue(getCreatureSummons(cid)[1], 12, 1) local function move(params) if isCreature(params.cid) then if isCreature(getCreatureSummons(params.cid)[1]) then if getPlayerStorageValue(getCreatureSummons(params.cid)[1], 12) == 0 then return true end if getDistanceBetween(getThingPos(getCreatureSummons(params.cid)[1]), topos) == 0 then if getCreatureSpeed(getCreatureSummons(params.cid)[1]) == 0 then local function speeed(params) if isCreature(params.sum) then if getCreatureSpeed(params.sum) == 0 then doChangeSpeed(params.sum, getCreatureBaseSpeed(params.sum)) end end end addEvent(speeed, 600, {sum = getCreatureSummons(params.cid)[1]}) end setPlayerStorageValue(getCreatureSummons(params.cid)[1], 12, 0) setPlayerStorageValue(cid, etudao, -1) return true end local dire = getDirectionTo(getThingPos(getCreatureSummons(cid)[1]), params.topos) if dire >= 0 and dire <= 7 then if dire == NORTHWEST then if math.random(1,100) >= 51 then dire = NORTH if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = NORTH else dire = WEST end else dire = WEST if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = WEST else dire = NORTH end end elseif dire == SOUTHWEST then if math.random(1,100) >= 51 then dire = SOUTH if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = SOUTH else dire = WEST end else dire = WEST if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = WEST else dire = SOUTH end end elseif dire == SOUTHEAST then if math.random(1,100) >= 51 then dire = SOUTH if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = SOUTH else dire = EAST end else dire = EAST if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = EAST else dire = SOUTH end end elseif dire == NORTHEAST then if math.random(1,100) >= 51 then dire = NORTH if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = NORTH else dire = EAST end else dire = EAST if isWalkable(getPosByDir(getThingPos(getCreatureSummons(params.cid)[1]), dire), params.ccid, 0, 0) then dire = EAST else dire = NORTH end end end local dire = dire if getCreatureSpeed(getCreatureSummons(params.cid)[1]) == 0 then doChangeSpeed(getCreatureSummons(params.cid)[1], getCreatureBaseSpeed(getCreatureSummons(params.cid)[1])) doPushCreature(getCreatureSummons(params.cid)[1], dire, 1, 0) doChangeSpeed(getCreatureSummons(params.cid)[1], -getCreatureSpeed(getCreatureSummons(params.cid)[1])) else doPushCreature(getCreatureSummons(params.cid)[1], dire, 1, 0) doChangeSpeed(getCreatureSummons(params.cid)[1], -getCreatureSpeed(getCreatureSummons(params.cid)[1])) end end end end end local function voltarnormal(params) if isCreature(params.cid) then if isCreature(getCreatureSummons(params.cid)[1]) then setPlayerStorageValue(cid, etudao, -1) if getCreatureSpeed(getCreatureSummons(params.cid)[1]) == 0 then local function speeed(params) if isCreature(params.sum) then if getCreatureSpeed(params.sum) == 0 then doChangeSpeed(params.sum, getCreatureBaseSpeed(params.sum)) end end end addEvent(speeed, 0, {sum = getCreatureSummons(params.cid)[1]}) end setPlayerStorageValue(getCreatureSummons(params.cid)[1], 12, 0) end end end local pois = getThingPos(item2.uid) local speed = getCreatureBaseSpeed(getCreatureSummons(cid)[1]) local temk = 1000 -(2.3 * speed) local SummonPos = getThingPos(getCreatureSummons(cid)[1]) local travelx = math.abs((topos.x) - (SummonPos.x)) local travely = math.abs((topos.y) - (SummonPos.y)) local travel = ((travelx) + (travely)) addEvent(move, 0, {cid = cid, ccid = getCreatureSummons(cid)[1], topos = pois, item2 = item2.uid}) for i = 1, travel-1 do addEvent(move, temk*i, {cid = cid, ccid = getCreatureSummons(cid)[1], topos = pois, item2 = item2.uid}) end addEvent(voltarnormal, temk*travel, {cid = cid}) exhaustion.set(cid, etudao, travel) return true end Coloca isso na Lib
    function doPushCreature(uid,direction,distance,time) if isCreature(uid) == TRUE then local rand = (2*math.random(0,1))-1 local rand2 = math.random(-1,0) if direction == 0 then signal = {0,rand,-rand,rand,-rand,0,-1,-1,-1,0,0,0} elseif direction == 1 then signal = {1,1,1,0,0,0,0,rand,-rand,rand,-rand,0} elseif direction == 2 then signal = {0,rand,-rand,rand,-rand,0,1,1,1,0,0,0} elseif direction == 3 then signal = {-1,-1,-1,0,0,0,0,rand,-rand,rand,-rand,0} elseif direction == 4 then signal = {-1,rand2,(-rand2)-1,0,1,rand2+1,rand2,0} elseif direction == 5 then signal = {1,-rand2,-((-rand2)-1),0,1,rand2+1,rand2,0} elseif direction == 6 then signal = {-1,rand2,(-rand2)-1,0,-1,(-rand2)-1,rand2,0} else signal = {1,-rand2,-((-rand2)-1),0,-1,(-rand2)-1,rand2,0} end local pos = getThingPos(uid) nsig = #signal nvar = 0 repeat nvar = nvar+1 newpos = {x=pos.x+(signal[nvar]),y=pos.y+(signal[(nsig/2)+nvar]),z=pos.z} newtile = {x=newpos.x,y=newpos.y,z=newpos.z,stackpos=0} until getTileThingByPos(newtile).uid ~= 0 and hasProperty(getTileThingByPos(newtile).uid,3) == FALSE and queryTileAddThing(uid,newpos) == 1 or nvar == (nsig/2) if distance == nil or distance == 1 then doTeleportThing(uid,newpos,TRUE) else distance = distance-1 doTeleportThing(uid,newpos,TRUE) if time ~= nil then addEvent(doPushCreature,time,uid,direction,distance,time) else addEvent(doPushCreature,500,uid,direction,distance,500) end end end end  
  8. Gostei
    lucasmourahere deu reputação a L3K0T em [C++] doCreatureSetNick Função   
    Sorte sua que estava num fórum.. não sei se serve, salvei até no favorito, mais ta ai rsrs achei hoje sem querer >> VER
  9. Gostei
    lucasmourahere deu reputação a MaxxSilva em (Resolvido)Teleport sumon   
    em creaturescripts/scripts/poketele.lua voce vai achar o seguinte:
    se não for isso me perdoe
     
    local max = 6 -- distancia max entre o pokemon e o player
  10. Gostei
    lucasmourahere deu reputação a MaxxSilva em (Resolvido)Teleport sumon   
    tenta esse:


  11. Gostei
    lucasmourahere deu reputação a MaxxSilva em (Resolvido)Teleport sumon   
    é nois lek qualquer coisa tamo aê pra fecha o tópico só vc escolhe a melhor resposta que te ajudo pra fica com a tag resolvido vlw
  12. Gostei
    lucasmourahere deu reputação a Valakinhas em Pokemon Dash v6 Reupload by Valakinhas   
    • Menu:
    ├ Informações; ├ Lista dos sistemas; ├ Erros; ├ Erros Solved; ├ Prints; ├ Download; └ Creditos.   • Informações; Sem level system Base Dash v6  Source      • Lista dos sistemas    
     
     
    • Erros
     
     
     
     
    • Erros Fixed
     
     
      • Prints  
     
     
     
    Detalhes adicionais
     
     
     
     
     
    Conta do GOD
     
     
     
     
    Download e Scanner
     
     
     
     
     
    Creditos
     
    Bruno123
    aberos
    snix 

Informação Importante

Confirmação de Termo