Ir para conteúdo
  • Cadastre-se

Yinko Yan San

Membro
  • Total de itens

    15
  • Registro em

  • Última visita

Posts postados por Yinko Yan San

  1. Em 20/08/2020 em 22:17, H3ITORR disse:

    Alguem me ajuda nessa script: Coloquei pra ler 2 storage uma de ficar invisivel como se fosse ghost igual adm nao aparece nick nem life so um effect e levar para mundo igual do tobirama do nto ultimate mais esta dando um erro 

    Esse seria o erro \/

    error.thumb.png.f0d5c672f457d6b141372afa5b7b2920.png

    Poste o seu lib / 032-position.lua em lua deixa eu ver

  2. local config = { 
    storage = 91813, 5981765,
    cooldown = 30,  --- tempo entre um uso e outro
    duration = 15, --- duração
    effect1 = 14 -- efeito que sai ao falar a spell
    } 
    
    local function visible(cid)
       if not isPlayer(cid) then return true end
       doCreatureSetHideHealth(cid, false)
       doChangeSpeed(cid, getCreatureSpeed(cid) - config.speed)
    end
    
    local outfit = createConditionObject(CONDITION_INVISIBLE, config.duration * 1000, false)
    
    function onCastSpell(cid, var)
    local pos = getCreaturePosition(cid)
    local target = getCreatureTarget(cid)
    local targetpos = getCreaturePosition(target)
    local kokua = {x=1904, y=735, z=7}
    local alvo = {x=1904, y=735, z=7}
    local from1,to1 = {x=1897, y=731, z=7},{x=1909, y=742, z=7}
    local from2,to2 = {x=979, y=911, z=7},{x=994, y=918, z=7}
    local from3,to3 = {x=1897, y=731, z=7},{x=1909, y=742, z=7}
    local from4,to4 = {x=1019, y=921, z=5},{x=1033, y=924, z=5}
    local from5,to5 = {x=663, y=1098, z=7},{x=685, y=1104, z=7}
    local from6,to6 = {x=965, y=1483, z=7},{x=979, y=1494, z=7}
    local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7}
    local from8,to8 = {x=984, y=578, z=7},{x=1044, y=652, z=7} -- shinobi war
    local from9,to9 = {x=1243, y=725, z=6},{x=1255, y=738, z=6}
    
      if os.time() - getPlayerStorageValue(cid, 55611) >= config.cooldown then
      if os.time() - getPlayerStorageValue(cid, 55689) >= config.cooldown then
    setPlayerStorageValue(cid, 55611, os.time())
    setPlayerStorageValue(cid, 55689, os.time())
    doSendMagicEffect(getCreaturePosition(cid), config.effect1)
    setPlayerStorageValue(cid, config.storage, os.time() + config.duration)
    doCreatureSay(cid,"", 19)
    doAddCondition(cid, outfit)
    
        doCreatureSetHideHealth(cid, true)
        doChangeSpeed(cid, getCreatureSpeed(cid) + config.speed)
        
        setPlayerStorageValue(cid, config.storage , os.time() + config.duration)
        addEvent(visible, config.duration*1000, cid)
    
    doPlayerSendTextMessage(cid, 27, "You have now ".. config.duration .." seconds of invulnerability.")
    
     else
    
    doPlayerSendCancel(cid, "Your skill is in cooldown, you must wait "..(config.cooldown - (os.time() - getPlayerStorageValue(cid, 55611))).." seconds.")
    doPlayerSendCancel(cid, "Your skill is in cooldown, you must wait "..(config.cooldown - (os.time() - getPlayerStorageValue(cid, 55689))).." seconds.")
     return false
    
    end
    end
    end
    
    if isInRange(pos, from1, to1) then
    doPlayerSendCancel(cid, "Você ja esta dentro do Kokuangyou no Jutsu!")
    return FALSE
    end
    
    if isInRange(pos, from2, to2) or isInRange(pos, from3, to3) or isInRange(pos, from4, to4) or isInRange(pos, from5, to5) or isInRange(pos, from6, to6) or isInRange(pos, from7, to7) or isInRange(pos, from8, to8) or isInRange(pos, from9, to9) then
    doPlayerSendCancel(cid, "Você nao pode usar o Kokuangyou no Jutsu aqui!")
    return FALSE
    end
    
    if getTileInfo(getThingPos(cid)).pvp then
    doPlayerSendCancel(cid, "Você nao pode usar o Tsukuyomi World aqui!")
    return FALSE
    end
    
    if getTileInfo(getThingPos(cid)).pvp then
    doPlayerSendCancel(cid, "Você nao pode usar o Kamui no Jutsu aqui!")
    return FALSE
    end
    
    if exhaustion.check(cid, 13132) == TRUE then
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 13132) .. " segundos para usar novamente.")
    return FALSE
    end
    
    local function Teleport_Player(cid)
    doTeleportThing(cid, pos)
    end
    
    local function Teleport_Target(target)
    doCreatureSetNoMove(target, 0)
    doTeleportThing(target, targetpos)
    end
    
    local function Teleport_Player_Emergency()
    for x = from1.x, to1.x do
    for y = from1.y, to1.y do
    local mob_player = getTopCreature({x=x, y=y, z=from1.z}).uid
    if mob_player ~= 0 and isPlayer(mob_player) then
    doTeleportThing(cid, pos)
    end
    end
    end
    end
    
    local function Teleport_Target_Emergency()
    for x = from1.x, to1.x do
    for y = from1.y, to1.y do
    local mob_target = getTopCreature({x=x, y=y, z=from1.z}).uid
    if mob_target ~= 0 and isPlayer(mob_target) then
    doCreatureSetNoMove(target, 0)
    doTeleportThing(target, targetpos)
    end
    end
    end
    end
    
    if isPlayer(target) then
    exhaustion.set(cid, 13132, 40)
    doCreatureSetNoMove(target, 1)
    doTeleportThing(cid,kokua)
    doTeleportThing(target,alvo)
    doSendMagicEffect(alvo, 0)
    doCreatureSay(cid, "", TALKTYPE_MONSTER)
    addEvent(Teleport_Player, 15000, cid)
    addEvent(Teleport_Target, 15000, target)
    addEvent(Teleport_Player_Emergency, 20000)
    addEvent(Teleport_Target_Emergency, 20000)
    else
    doPlayerSendCancel(cid, "Use apenas em players.")
    end

    testa assim ae

  3. 6 horas atrás, wevertonvrb disse:

    gente eu estou seguindo o tutorial como eu posso, mas um dos linkds que leva pro visual c++ esta off eu estou tentando usar o 2015 mas o tutorial manda eu fazer coisas que eu não encontro então eu fico garrado sem saber oque fazer
    aqui esta o servidor
    github.com/Qwizer/realmap11
     ele ja vem com a source, mas eu n consigo compilar por favor me ajudem

     

    você ja configurou em lib e boost vc15?

  4. 40 minutos atrás, H3ITORR disse:

    Boa noite estou precisando de ajuda passar meu servidor 8.54 base nto Server para 8.60, já tentei de várias formas mais nunca consegui, se alguém conseguir me ajudar ficarei muito grato. 

     

    Se você tem source tfs 0.4 então fazer compila o visual studo 2010 , atualiza items e mapa versão 8.54 para 8.60 Então Basicamente

  5. 3 horas atrás, Yinko Yan San disse:

    Foi quase compilado afinal completo, eu corrigido os erros items.cpp e item.cpp. e agora só um erro game.cpp xd. Utilizando Source OTX 2 Server

    game.cpp: In member function ‘bool Game::combatChangeMana(Creature*, Creature*, int32_t, CombatType_t, bool)’:
    game.cpp:5132:18: error: ‘manaLoss’ was not declared in this scope
          lifeLeech = manaLoss * (attacker->getPlayer()->getLifeLeech() * 0.01);
                      ^
    game.cpp:5141:18: error: ‘manaLoss’ was not declared in this scope
          manaLeech = manaLoss * (attacker->getPlayer()->getManaLeech() * 0.01);
                      ^
    game.cpp:5154:19: error: ‘manaLoss’ was not declared in this scope
          lifeAbsorb = manaLoss * (target->getPlayer()->getLifeAbsorb() * 0.01);
                       ^
    game.cpp:5163:19: error: ‘manaLoss’ was not declared in this scope
          manaAbsorb = manaLoss * (target->getPlayer()->getManaAbsorb() * 0.01);
                       ^
    Makefile:567: recipe for target 'game.o' failed

    Resolvido erros vários Utilizando OTX2 Server Rev está feito. <3

    items.cpp, items.h, item.cpp, item.h, player.cpp, player.h ,game.cpp

    spacer.png

  6. Foi quase compilado afinal completo, eu corrigido os erros items.cpp e item.cpp. e agora só um erro game.cpp xd. Utilizando Source OTX 2 Server

    game.cpp: In member function ‘bool Game::combatChangeMana(Creature*, Creature*, int32_t, CombatType_t, bool)’:
    game.cpp:5132:18: error: ‘manaLoss’ was not declared in this scope
          lifeLeech = manaLoss * (attacker->getPlayer()->getLifeLeech() * 0.01);
                      ^
    game.cpp:5141:18: error: ‘manaLoss’ was not declared in this scope
          manaLeech = manaLoss * (attacker->getPlayer()->getManaLeech() * 0.01);
                      ^
    game.cpp:5154:19: error: ‘manaLoss’ was not declared in this scope
          lifeAbsorb = manaLoss * (target->getPlayer()->getLifeAbsorb() * 0.01);
                       ^
    game.cpp:5163:19: error: ‘manaLoss’ was not declared in this scope
          manaAbsorb = manaLoss * (target->getPlayer()->getManaAbsorb() * 0.01);
                       ^
    Makefile:567: recipe for target 'game.o' failed

  7. Spoiler

    In file included from item.h:28:0,
                     from tile.h:23,
                     from map.h:26,
                     from creature.h:28,
                     from player.h:23,
                     from actions.cpp:24:
    items.h:168:28: error: redeclaration of ‘int32_t ItemType::criticalHitChance’
       int32_t criticalHitChance, dodgeChance, lifeAbsorb, manaAbsorb, lifeLeech, manaLeech;
                                ^
    items.h:161:19: note: previous declaration ‘int32_t ItemType::criticalHitChance’
       int32_t attack, criticalHitChance, extraAttack, defense, extraDefense, armor, breakChance, hitCha
                       ^
    In file included from tile.h:23:0,
                     from map.h:26,
                     from creature.h:28,
                     from player.h:23,
                     from actions.cpp:24:
    item.h:122:2: error: redefinition of ‘ATTR_CRITICALHITCHANCE’
      ATTR_CRITICALHITCHANCE = 44,
      ^
    item.h:116:2: note: ‘ATTR_CRITICALHITCHANCE’ previously defined here
      ATTR_CRITICALHITCHANCE = 44,
      ^
    In file included from tile.h:23:0,
                     from map.h:26,
                     from creature.h:28,
                     from player.h:23,
                     from actions.cpp:24:
    item.h:269:11: error: ‘int32_t Item::getCriticalHitChance() const’ cannot be overloaded
       int32_t getCriticalHitChance() const;
               ^
    item.h:265:11: error: with ‘int32_t Item::getCriticalHitChance() const’
       int32_t getCriticalHitChance() const;
               ^
    item.h:461:16: error: redefinition of ‘int32_t Item::getCriticalHitChance() const’
     inline int32_t Item::getCriticalHitChance() const
                    ^
    item.h:411:16: note: ‘int32_t Item::getCriticalHitChance() const’ previously defined here
     inline int32_t Item::getCriticalHitChance() const
                    ^
    In file included from actions.cpp:24:0:
    player.h:493:19: error: ‘virtual int32_t Player::getCriticalHitChance() const’ cannot be overloaded
       virtual int32_t getCriticalHitChance() const;
                       ^
    player.h:491:19: error: with ‘virtual int32_t Player::getCriticalHitChance() const’
       virtual int32_t getCriticalHitChance() const;
                       ^
    Makefile:567: recipe for target 'actions.o' failed
    make[1]: *** [actions.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory '/home/srcteste'
    Makefile:418: recipe for target 'all' failed
    make: *** [all] Error 2

    eu pensei que tinha errado algo, mas refiz tudo do zero com mais atenção e deu novamente o mesmo erro, estou usando OTX2 :v

    Em 26/07/2020 em 15:05, Senju uchira disse:

    image.thumb.png.165c1bb480d975b1ac06fd6df9503b84.png

     

     

    estou com esse erro ao compila

    estou mesmo problema erro ao compila linux

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo