Ir para conteúdo
Banner com Efeitos

PepeHanc

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    PepeHanc deu reputação a Wakon em enchanting action   
    Tente assim:
    local config = { manaCost = 300, soulCost = 2, } local spheres = { [7759] = 7, [7760] = 5, [7761] = 6, [7762] = 8 } local enchantableGems = {2147, 2146, 2149, 2150} local enchantableItems = {2383, 7383, 7384, 7406, 7402, 2429, 2430, 7389, 7380, 2454, 2423, 2445, 7415, 7392, 2391, 2544, 8905} local enchantingAltars = { {7504, 7505, 7506, 7507}, {7508, 7509, 7510, 7511}, {7516, 7517, 7518, 7519}, {7512, 7513, 7514, 7515} } local enchantedGems = {7760, 7759, 7761, 7762} local enchantedItems = { [2383] = {7744, 7763, 7854, 7869}, [7383] = {7745, 7764, 7855, 7870}, [7384] = {7746, 7765, 7856, 7871}, [7406] = {7747, 7766, 7857, 7872}, [7402] = {7748, 7767, 7858, 7873}, [2429] = {7749, 7768, 7859, 7874}, [2430] = {7750, 7769, 7860, 7875}, [7389] = {7751, 7770, 7861, 7876}, [7380] = {7752, 7771, 7862, 7877}, [2454] = {7753, 7772, 7863, 7878}, [2423] = {7754, 7773, 7864, 7879}, [2445] = {7755, 7774, 7865, 7880}, [7415] = {7756, 7775, 7866, 7881}, [7392] = {7757, 7776, 7867, 7882}, [2391] = {7758, 7777, 7868, 7883}, [2544] = {7840, 7839, 7850, 7838}, [8905] = {8906, 8907, 8909, 8908} } function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) -- The Elemental Spheres by MaXwEllDeN if itemEx.actionid == 4119 and isInArray({7759, 7760, 7761, 7762}, item.itemid) then if spheres[item.itemid] ~= player:getVocation():getId() then return false end if isInArray({8894, 8895}, itemEx.itemid) then -- Mudar ID Ligado doCreatureSay(cid, "Turn off the machine first.", TALKTYPE_MONSTER_SAY) return false end local sto = player:getStorageValue(60026) == -1 and 1 or player:getStorageValue(60026) + 1 if sto == 21 then return false end toPosition:sendMagicEffect(12) player:setStorageValue(60026, sto) Item(item.uid):remove(1) return true end -- ###### if item.itemid == 2147 and itemEx.itemid == 2342 then local targetItem = Item(itemEx.uid) targetItem:transform(2343) targetItem:decay() Item(item.uid):remove(1) toPosition:sendMagicEffect(CONST_ME_MAGIC_RED) return true end if item.itemid == 7760 and isInArray({9934, 10022}, itemEx.itemid) then Item(itemEx.uid):transform(9933) Item(item.uid):remove(1) toPosition:sendMagicEffect(CONST_ME_MAGIC_RED) return true end if isInArray(enchantableGems, item.itemid) then local subtype = item.type if subtype == 0 then subtype = 1 end local mana = config.manaCost * subtype if player:getMana() < mana then player:sendCancelMessage(RETURNVALUE_NOTENOUGHMANA) return false end local soul = config.soulCost * subtype if player:getSoul() < soul then player:sendCancelMessage(RETURNVALUE_NOTENOUGHSOUL) return false end local targetId = table.find(enchantableGems, item.itemid) if targetId == nil or not isInArray(enchantingAltars[targetId], itemEx.itemid) then return false end player:addMana(-mana) player:addSoul(-soul) Item(item.uid):transform(enchantedGems[targetId]) player:addManaSpent(mana * configManager.getNumber(configKeys.RATE_MAGIC)) player:getPosition():sendMagicEffect(CONST_ME_HOLYDAMAGE) return true end if item.itemid == 7761 and isInArray({9949, 9954}, itemEx.itemid) then local targetItem = Item(itemEx.uid) targetItem:transform(itemEx.itemid - 1) targetItem:decay() Item(item.uid):remove(1) toPosition:sendMagicEffect(CONST_ME_MAGIC_GREEN) return true end if isInArray(enchantedGems, item.itemid) then if not isInArray(enchantableItems, itemEx.itemid) then fromPosition:sendMagicEffect(CONST_ME_POFF) return false end local targetId = table.find(enchantedGems, item.itemid) if targetId == nil then return false end local subtype = itemEx.type if not isInArray({2544, 8905}, itemEx.itemid) then subtype = 1000 end local targetItem = Item(itemEx.uid) targetItem:transform(enchantedItems[itemEx.itemid][targetId], subtype) targetItem:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED) Item(item.uid):remove(1) return true end return false end
  2. Gostei
    PepeHanc deu reputação a psychonaut em (Resolvido)remover item   
    Ah, tem que por depois do end, muda
    doSummonCreature("Prince Drazzak", {x = 33523, y = 32334, z = 12}) end Pra:
    end doSummonCreature("Prince Drazzak", {x = 33523, y = 32334, z = 12})
  3. Gostei
    PepeHanc deu reputação a Pedro. em Raid Automatica   
    Entendi, então eu uso dessa forma no meu servidor, porém é aleatorio, não tem dia/hora.
    Acho dahora, a pessoa ir checar as invasões que não aparecem em default
  4. Gostei
    PepeHanc deu reputação a bearsoft em (Resolvido)valor website   
    Bom para arrumar isto vai até o diretório que o xampp ou outro programa que você usa está falando e abra o arquivo, bom após isso você coloca este código acima do
     
    <?php
     
    Coloque este código
    <?php error_reporting(E_ALL || ~E_WARNING); ?>  Se eu ajudei, por favor.
    REP+
  5. Gostei
    PepeHanc deu reputação a psychonaut em (Resolvido)remover item   
    Muda
    doRemoveItem(cid, itemX, quantidadeX)
     
    Pra
    doPlayerRemoveItem(cid, itemX, quantidadeX)
     
    E apaga essa linha:
    doRemoveItem(cid, item.itemid)
  6. Gostei
    PepeHanc recebeu reputação de luanluciano93 em [projeto] Real Map   
    opa bora la
     
     


    adicionado raid de gaz'haragoth 
     

  7. Gostei
    PepeHanc recebeu reputação de luanluciano93 em [projeto] Real Map   
    Ola , vou começar um projeto real map tentando deixar ele muito parecido com global , arrumando todas quest e botando tudo pra funcionar , bora la galera , mãos a obra
     
     
     
     


    Npc para criar item ( tentar a sorte ) funcionando
     


    Terofar adicionado  . . .
     
     


    acabado os 3 bosses que precisam de prison key
     



    Muito obrigado elton123 que me ajudou com o script
    enfim
     

     
     
    adicionado Prince Drazzak , precisara de 5 players e uma golden prison key para matar ele
  8. Gostei
    PepeHanc recebeu reputação de Vodkart em [projeto] Real Map   
    Ola , vou começar um projeto real map tentando deixar ele muito parecido com global , arrumando todas quest e botando tudo pra funcionar , bora la galera , mãos a obra
     
     
     
     


    Npc para criar item ( tentar a sorte ) funcionando
     


    Terofar adicionado  . . .
     
     


    acabado os 3 bosses que precisam de prison key
     



    Muito obrigado elton123 que me ajudou com o script
    enfim
     

     
     
    adicionado Prince Drazzak , precisara de 5 players e uma golden prison key para matar ele
  9. Gostei
    PepeHanc deu reputação a Caronte em usar lavanca e remover x item da bp   
    http://www.tibiaking.com/forum/topic/57238-teleporter-cristal-10-11/
  10. Gostei
    PepeHanc recebeu reputação de anderson de souza em Como mudar versao do server   
    Por exemplo meu server é 10.10
     
    queria deixar ele 10.40 ou 10.50 
     
    alguem teria como me explicar como fazer esse procedimento  ?  valeu
  11. Gostei
    PepeHanc deu reputação a Thiago Rulexz em (Resolvido)tudo on , menos ..   
    verifique se o ip no config.lua está correto (127.0.0.1)
    e verifique se colocou o ip correto no Clipsoft Client
  12. Gostei
    PepeHanc deu reputação a luanluciano93 em (Resolvido)ajuda com website   
    Ai Tibia2015br e @Todimaster, a próxima vez que eu pegar comentando coisas sem nexo vou negativar por flood, se não sabe o que é não piora as coisas.

    Reverte o que eles falaram ... 


     
    Esse é um erro do gesior para versão de TFS 1.0+, ele busca os dados de conexão sql no config.lua, e o erro mostra que ele esta buscando o campo 'mysqlHost', porem nao tem, isso deve ser porque o seu ot não é TFS 1.0 ou superior, portanto os dados de conexão são diferentes.
  13. Gostei
    PepeHanc deu reputação a .HuRRiKaNe em (Resolvido)Alguem poderia me ajudar a resolver ?   
    Executa esse comando:
    DROP TABLE IF EXISTS market_offers; CREATE TABLE market_offers ( id INTEGER PRIMARY KEY NOT NULL, player_id INTEGER NOT NULL, sale BOOLEAN NOT NULL DEFAULT '0', itemtype UNSIGNED INTEGER NOT NULL, amount UNSIGNED INTEGER NOT NULL, created UNSIGNED INTEGER NOT NULL, anonymous BOOLEAN NOT NULL DEFAULT '0', price UNSIGNED INTEGER NOT NULL DEFAULT '0', world_id TINYINT( 4 ) NOT NULL DEFAULT ( 0 ), FOREIGN KEY ( player_id ) REFERENCES players ( id ) ON DELETE CASCADE ); Depois esse:
    DROP TABLE IF EXISTS player_statements; CREATE TABLE player_statements ( id INTEGER PRIMARY KEY, player_id INTEGER NOT NULL, channel_id INTEGER NOT NULL DEFAULT '0', text VARCHAR( 255 ) NOT NULL, date INTEGER NOT NULL DEFAULT '0', FOREIGN KEY ( player_id ) REFERENCES players ( id ) );
  14. Gostei
    PepeHanc deu reputação a .HuRRiKaNe em (Resolvido)Alguem poderia me ajudar a resolver ?   
    Executa esse comando na sua database:
    ALTER TABLE "guild_wars" ADD "end" BIGINT NOT NULL DEFAULT '0';

Informação Importante

Confirmação de Termo