Ir para conteúdo
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt

gabriel28

Membro
  • Registro em

  • Última visita

Solutions

  1. gabriel28's post in (Resolvido)Erro Na Sourcer OT Caindo [AJUDA] was marked as the answer   
    @KR3 Quero itens VIP no teu server pra ajudar. UAShUAShU
    Brincadeira a parte, segue isso: (Lembrando que é pra TFS 0.4)
     
    Em game.cpp procure por:
    Party* party = player->getParty(); E adicione acima: 
    if (invitedPlayer == player) return false;
  2. gabriel28's post in (Resolvido)Npc Bugando? was marked as the answer   
    @Pifafa 
    Esse tipo de script precisa que o player tenha a moeda normal do jogo na bag pra poder realizar a compra.
    Por exemplo: Se tua moeda em game é a 2160 e tas usando esse NPC pra usar algum token de evento ou algo do tipo, tu vai precisar ter as moedas comuns (2160) dentro da BP pro sistema entender que tu tem dinheiro.
  3. gabriel28's post in (Resolvido)Vocation was marked as the answer   
    @Platinun 
     
    function onUse(cid, item) if (isPremium(cid)) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then doPlayerSendTextMessage(cid,25,"Voce ja foi promovido!") else doRemoveItem(item.uid, 1) -- remove o promotion scroll doPlayerSendTextMessage(cid,25,"Voce foi promovido com sucesso!") doPlayerSetPromotionLevel(cid, 2) end end end  
  4. gabriel28's post in (Resolvido)colocar exaustão nesse item was marked as the answer   
    @Emooooo 
     
    local outfits = {"rat", "ghost", "chicken", "pig"} -- outfits (randomicos) local duration = 45 -- tempo de duraçao dos outfits (em segundos) local breakchance = 90 --chance de perder a varinha magica function onUse(cid, item, fromPosition, itemEx, toPosition) if exhaustion.check(cid, 100020) == true then doPlayerSendCancel(cid, "Wait "..exhaustion.get(cid, 100020).." second(s) to use this item again.") return false else if math.random(100) <= breakchance then doSummonCreature("Mad Sheep",toPosition) doSendMagicEffect(toPosition,CONST_ME_SOUND_BLUE) doRemoveItem(item.uid,1) exhaustion.set(cid, 100020, 3600) return true end if isPlayer(itemEx.uid) == true then doSetMonsterOutfit(itemEx.uid,outfits[math.random(#outfits)],duration*1000) doSendMagicEffect(toPosition,CONST_ME_MAGIC_BLUE) exhaustion.set(cid, 100020, 3600) return true end end end  
  5. gabriel28's post in (Resolvido)Creaturescript de pvp enforced ganhando xp no summon, help pls was marked as the answer   
    @poko360 Se o de cima não funcionar, tenta assim:
     
    function onKill(cid, target, lastHit) local target = getCreatureTarget(cid) if isPlayer(cid) and isPlayer(target) then doSendAnimatedText(getPlayerPosition(cid), "10000000", 215) doPlayerAddExperience(cid, getPlayerExperience(target) / 5000) else return false end return true end  
  6. gabriel28's post in (Resolvido)Ajuda com criação de item que some após uso e aumenta a XP por tempo determinado. was marked as the answer   
    @jakons 
    https://tibiaking.com/forums/topic/54736-double-exp-potion-completa/?tab=comments#comment-321361
  7. gabriel28's post in (Resolvido)Adicionar posição do efeito was marked as the answer   
    @leozincorsair 
     
    local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_PINK) setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 44) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -35.0, 0, -35.8, 0) local function onCastSpell1(cid, var) local target = getCreatureTarget(cid) local monsterpos = getCreaturePosition(target) local position = {x=monsterpos.x+2, y=monsterpos.y+2, z=monsterpos.z} -- muda os valores aqui (valor positivo no 'x', vai pra direita e positivo no 'y' vai pra baixo doSendMagicEffect(position, 29) doCombat(cid, combat1, var) end function onCastSpell(cid, var) for k = 1, 8 do addEvent(function() if isCreature(cid) then addEvent(onCastSpell1, 0, cid, var) end end, 1 + ((k-1) * 275)) end return true end  
  8. gabriel28's post in (Resolvido)Erro load player was marked as the answer   
    @mikaelkelvin 
    Substitui o script por esse:
     
     
  9. gabriel28's post in (Resolvido)Spells que para usar precisa de "X" item was marked as the answer   
    @peterson18 
    local max = 1 local item = xxxx function onCastSpell(cid, var) local dir = getPlayerLookDir(cid) local ppos = getPlayerPosition(cid) if(dir==1)then ppos.x = ppos.x + 1 end local count, pos = #getCreatureSummons(cid), getThingPos(cid) if count == max then doPlayerSendCancel(cid, 'Voce nao pode sumonar mais criaturas.') doSendMagicEffect(pos, CONST_ME_POFF) return false end local summon = getCreatureSummons(cid) local MaximoSummon = 1 if doPlayerRemoveItem(cid, item, 1) then if (table.maxn(summon) < MaximoSummon) then local Monster = doConvinceCreature(cid, doCreateMonster("Monster", ppos)) doPlayerSendTextMessage(cid, 22, "Voce convocou ....!") end else doPlayerSendCancel(cid, "voce precisa do item X pra usar essa spell".) end end  
  10. gabriel28's post in (Resolvido)Erro Ao mudar addon was marked as the answer   
    @mikaelkelvin 
    Na pasta data/xml
  11. gabriel28's post in (Resolvido)Spell was marked as the answer   
    @koringa 
     
     
  12. gabriel28's post in (Resolvido)ERRO Distro 3.0 was marked as the answer   
    @mikaelkelvin 
     
     
  13. gabriel28's post in (Resolvido)[RESOLVIDO] Ajuda Aqui! Magic Wall Rune Em Tibia Nto was marked as the answer   
    Você viu isso no items.xml?
    Por mais que esteja nele e que tenha no object builder, pode ser que esteja errado a id em relação ao arquivo .otb. 
    Recomendo que você abra o arquivo .otb, procure pelo item number que a magic wall está registrada e veja se o cid é igual ao número do Object Builder.
  14. gabriel28's post in (Resolvido)Distro Erro was marked as the answer   
    @mikaelkelvin 
    Os últimos erros são no mapa. Vai nas coordenadas que o erro especifica e vê o que tem de errado.
    Quando aos NPCs, posta o script de apenas um deles, que, pelo que parece, são o mesmo erro.
    E o outro erro ai, é do arquivo main.lua que não existe na pasta lib/npcsystem
  15. gabriel28's post in (Resolvido)Colocar Storage was marked as the answer   
    @gutalo 
    Poem a mesma storage em todas as runas, assim, se o player usar uma, não poderá usar mais nenhuma.
     
    function onUse(cid, item) local magia = "Target Spell" local storage = 827474 local pos = getCreaturePosition(cid) if getPlayerStorageValue(cid, storage) <= 0 then if getPlayerLearnedInstantSpell(cid, magia) then doPlayerSendTextMessage(cid,25,"You already learned everything from this scroll.") elseif doPlayerLearnInstantSpell(cid, magia) then doSendMagicEffect(pos, 0) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid,19,"By reading this ancient scroll you learned the secrets of "..magia..".") end else doPlayerSendCancel(cid, "You already learned one spell from some rune.") end end  
  16. gabriel28's post in (Resolvido)ALGUEM Ensina a botar esse script was marked as the answer   
    @mikaelkelvin 
    Ambos scripts tem pelo fórum. Só pesquisar por 'fraglook system' e 'deathchannel system'.
  17. gabriel28's post in (Resolvido)Vocation voltando para a antiga < was marked as the answer   
    @theeross 
    Ah, esse comando não deixa a vocation fixa mesmo não, teria que modificar ele.
  18. gabriel28's post in (Resolvido)POINTS Ao criar conta was marked as the answer   
    @mikaelkelvin 
    Testa ai:
     
    local Points = 10000 --Serão adicionados 10000 Premium Points doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have received "..Points.." of Premium Points to your account.") db.query("UPDATE `accounts` SET `premium_points` = `premium_points` + "..Points.." WHERE id=" ..getPlayerAccountId(cid))
  19. gabriel28's post in (Resolvido)Não conecta no servidor pela VPS was marked as the answer   
    Resolvido
    Era problema nas portas do Firewall do Google.
     
  20. gabriel28's post in (Resolvido)[PEDIDO] Premium was marked as the answer   
    function onLogin(cid) registerCreatureEvent(cid,"FimPremium") local pos = {x = 32602, y = 34220, z = 7} -- coordenada do templo pra onde o player será mandado if isPremium(cid) then setPlayerStorageValue(cid, 9899, 1) -- storage que será setada caso o jogador seja premium elseif getPlayerStorageValue(cid, 9899) == 1 and not isPremium(cid) then doTeleportThing(cid, pos) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You premium is Over!") setPlayerStorageValue(cid, 9899, -1) end return 1 end Créditos: ?????
  21. gabriel28's post in (Resolvido)Algum Scripter ajuda? was marked as the answer   
    @Jeanzim Testa:
     
     
  22. gabriel28's post in (Resolvido)adicionar effects was marked as the answer   
    @Danxi Em tools.cpp, procura por MagicEffectNames magicEffectNames[] =, vai no final dele e adiciona os efeitos que falta.
  23. gabriel28's post in (Resolvido)Algum Scripter ajuda? was marked as the answer   
    @Jeanzim Não tem de que. Se der pra ajudar, eu ajudo.
    Já agradeceu dando o like. Agora escolhe a resposta lá como a melhor pra fecharem o tópico como resolvido.
    Caso não saiba:

  24. gabriel28's post in (Resolvido)Life e Mana - Subindo muito rápido was marked as the answer   
    Vai no vocation.xml e vê o gainhpticks, gainmanaticks, gainmanaamount e gainhpamount.
    gainmanaamount e gainhpamount, quanto maior o valor, mais mana/hp ele vai ganhar e os outros dois, quanto menos o valor, mais rápido ele ganhará a quantidade de mana/hp que está em gainmanaamount e gainhpamount.
  25. gabriel28's post in (Resolvido)Ajuda Formula was marked as the answer   
    function onGetFormulaValues(cid, level, skill, attack, factor)
        
    min = -(level * 0.5 + skill * 0.5 + attack  * 2) * 1
    max = -(level * 0.5 + skill * 0.5 + attack * 3) * 1
        return min, max
    end
     
    Testa essa formula do jeito que está, pra ver se realmente o ataque da arma, que o player está usando, está contando. Testa o mesmo char com uma arma attack 10 ou menor, e de novo com uma de attack 40 ou maior. Se o valor do attack da arma estiver contando, você vai ver uma diferença grande no dano da skill, dai vai ver que está funcionando certinho, dai você altera pros valores de sua preferência.
    Espero ter sido claro. kkkkk
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt

Informação Importante

Confirmação de Termo