Ir para conteúdo
Banner com Efeitos

dirso

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    dirso recebeu reputação de Tchuka em (Resolvido)Action Health   
  2. Gostei
    dirso recebeu reputação de Gnius em (Resolvido)PISO QUE DA DANO ALEATORIO   
    Tenta assim bródi
     
    Instruções em vermelho:
    -- {Fator de Porcentagem, efeito} conforme o cód sugerido pelo Sttorm, bem otimizado por ele :D local danos = { {0.1, 3}, {0.2, 6}, {0.3, 5}} function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end local dmg = danos[math.random(1, #danos)] local damage = dmg[1] * getCreatureMaxHealth(cid) -- Calculo otimizado com apenas 1 multiplicação, otimizado por mim :D doSendMagicEffect(getThingPos(cid), dmg[2]) doSendAnimatedText(getThingPos(cid), '- ' .. damage, TEXTCOLOR_LIGHTBLUE) doCreatureAddHealth(cid, - damage) return true end  
  3. Gostei
    dirso deu reputação a Storm em (Resolvido)PISO QUE DA DANO ALEATORIO   
    @Gnius 
    local danos = { {10, 3}, {20, 6}, {30, 5}} -- {Porcentagem, effect} function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end local dmg = danos[math.random(1, #danos)] local damage = math.ceil((tonumber(dmg[1])* 0.01) * getCreatureMaxHealth(cid)) doSendMagicEffect(getThingPos(cid), dmg[2]) doSendAnimatedText(getThingPos(cid), '- ' .. damage, TEXTCOLOR_LIGHTBLUE) doCreatureAddHealth(cid, - damage) return true end  
  4. Curtir
    dirso recebeu reputação de tataboy67 em Guild Dungeon Lever (Com tempo)   
    Você colocou as Posições foram colocadas corretamente?

    em:
    needPos = { [1] = Position(1447, 915, 7), -- Position (where the player will click on the lever) and back position. [2] = Position(1449, 914, 7) },
  5. Gostei
    1. Atacar com a arma e usar runa ao mesmo tempo.
     
    Em player.cpp, procure por:
    else if((!weapon->hasExhaustion() || !hasCondition(CONDITION_EXHAUST, EXHAUST_COMBAT)) && weapon->useWeapon(this, tool, attackedCreature)) Troque por:
    else if(!weapon->hasExhaustion() && weapon->useWeapon(this, tool, attackedCreature)) 2. Usar runa enquanto corre.
     
    Em player.cpp, remova essa linha:
    setNextAction(OTSYS_TIME() + getStepDuration(dir)); Créditos: Xellath
  6. Gostei
    dirso deu reputação a luanluciano93 em (Resolvido)Items nao passam no teleport (tp)   
    local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2124 then --Ankrahmun setPlayerStorageValue(cid,100109, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2125 then --Carlin setPlayerStorageValue(cid,100110, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2126 then --Darashia setPlayerStorageValue(cid,100111, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2127 then --Edron setPlayerStorageValue(cid,100112, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2128 then --Kazordoon setPlayerStorageValue(cid,100113, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2129 then --Liberty Bay setPlayerStorageValue(cid,100114, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2130 then --Port Hope setPlayerStorageValue(cid,100115, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2131 then --Svargrond setPlayerStorageValue(cid,100116, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2132 then --Thais setPlayerStorageValue(cid,100117, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2133 then --Venore setPlayerStorageValue(cid,100118, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2134 then --Yalahar setPlayerStorageValue(cid,100119, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) end return true end
  7. Gostei
    dirso deu reputação a Jamison Collins em (Resolvido)Items nao passam no teleport (tp)   
    local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) pos.stackpos = 255 local object = getThingFromPos(pos) if isMovable(object.uid) then doTeleportThing(object.uid,train) doSendMagicEffect(getThingPos(object.uid),CONST_ME_TELEPORT) return true end if isPlayer(cid) then doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1) elseif item.actionid == 2124 then --Ankrahmun setPlayerStorageValue(cid,100109, 1) elseif item.actionid == 2125 then --Carlin setPlayerStorageValue(cid,100110, 1) elseif item.actionid == 2126 then --Darashia setPlayerStorageValue(cid,100111, 1) elseif item.actionid == 2127 then --Edron setPlayerStorageValue(cid,100112, 1) elseif item.actionid == 2128 then --Kazordoon setPlayerStorageValue(cid,100113, 1) elseif item.actionid == 2129 then --Liberty Bay setPlayerStorageValue(cid,100114, 1) elseif item.actionid == 2130 then --Port Hope setPlayerStorageValue(cid,100115, 1) elseif item.actionid == 2131 then --Svargrond setPlayerStorageValue(cid,100116, 1) elseif item.actionid == 2132 then --Thais setPlayerStorageValue(cid,100117, 1) elseif item.actionid == 2133 then --Venore setPlayerStorageValue(cid,100118, 1) elseif item.actionid == 2134 then --Yalahar setPlayerStorageValue(cid,100119, 1) end end return true end Verifique se há algum erro no distro após a tentativa do uso do script.
  8. Gostei
    dirso deu reputação a henriqerocha em [Resolvido] [AJUDA] IMAGENS LOGO GUILD   
    Já resolvi o problema, pra quem tiver o mesmo problema e usar Linux, ai vai a solução.
    bati muito a cabeça por pouca coisa, apenas dê a permissão 777 para a sua pasta Guilds, dentro de var/www.
    Abraços.
    Podem fechar o tópico.

Informação Importante

Confirmação de Termo