Ir para conteúdo

fantomdruid

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    fantomdruid deu reputação a Bruno Minervino em (Resolvido)Treiners Anti AFK   
    @fantomdruid,

    Como você usa TFS 1.2, tenta assim:

    local config = { time = 1, -- minutes str = 98765, -- storage pos = {x = 5, y = 6, z = 7} -- position } function onStepIn(creature, item, position, fromPosition) if not creature:isPlayer() then return false end local function isTraining(uid) local self = Player(uid) return self:getStorageValue(config.str) > 0 and self:teleportTo(config.pos) or true end check = addEvent(isTraining, config.time * 60 * 1000, creature.uid) return creature:setStorageValue(config.str, 1) end function onStepOut(creature, item, position, fromPosition) if not creature:isPlayer() then return false end return stopEvent(check) and creature:setStorageValue(config.str, -1) endEu tava precisando de algo assim no meu projeto, então decidi ajudar, porém os créditos são do Wise.
  2. Gostei
    fantomdruid deu reputação a Bruno Minervino em (Resolvido)Parte de Dodge System   
    Olha fantomdruid, acho que funcionou:
    local lvldodge = 48902 local percent = 0.5 function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin) if not isPlayer(creature) then return false end if isInArray({ORIGIN_SPELL, ORIGIN_MELEE, ORIGIN_RANGED}, origin) and isCreature(attacker) then if (creature:getStorage(lvldodge) * 3) >= math.random (0, 1000) then primaryDamage = primaryDamage - math.ceil(primaryDamage * percent) secondaryDamage = secondaryDamage - math.ceil(secondaryDamage * percent) creature:say("DODGE!", TALKTYPE_MONSTER_SAY) creature:getPosition():sendMagicEffect(CONST_ME_BLOCKHIT) return primaryDamage, primaryType, secondaryDamage, secondaryType end end return primaryDamage, primaryType, secondaryDamage, secondaryType end
  3. Gostei
    fantomdruid deu reputação a Bruno Minervino em Descongelando Ursagrodon (Montaria)   
    Gostei do script luan, parabéns!

    Ali em :
     
    local function revertIce(toPosition) local tile = toPosition:getTile() if tile then local thing = tile:getItemById(item4) if thing then thing:transform(item1) end end end Não deveria ter o config.item4 e config.item1?
    Creio que assim vai dar erro.
  4. Gostei
    fantomdruid deu reputação a luanluciano93 em Descongelando Ursagrodon (Montaria)   
    Bom pessoal, vi alguns tópicos pedindo esse script, e como precisei dele agora, resolvi faze-lo.

       

    Em actions.xml:
    <action itemid="22726" script="descongelando_ursagrodon.lua" /> Agora em actions/scripts/ crie um arquivo lua com o nome de: descongelando_ursagrodon.lua 
    local itemId = {22729, 22730, 22731, 22732} local porcentagem = 50 local function revertIce(toPosition) local tile = toPosition:getTile() if tile then local sprite = tile:getItemById(itemId[4]) if sprite then sprite:transform(itemId[1]) end end end function onUse(player, item, fromPosition, target, toPosition, isHotkey) if target.itemid == itemId[1] or target.itemid == itemId[2] or target.itemid == itemId[3] then if player:hasMount(38) then return player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You already have the obedience of ursagrodon.') end local rand = math.random(1, 100) if rand <= porcentagem then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The ice cracked and the frozen creature with it - be more careful next time!') item:remove(1) target:transform(itemId[4]) addEvent(revertIce, 600000, toPosition) else if target.itemid == itemId[1] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You managed to melt about half of the ice blook. Quickly now, it\'s ice cold here and the ice block could freeze over again.') target:transform(itemId[2]) elseif target.itemid == itemId[2] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You managed to melt almost the whole block, only the feet of the creature are still stuck in the ice. Finish the job!') target:transform(itemId[3]) elseif target.itemid == itemId[3] then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The freed ursagrodon look at you with glowing, obedient eyes.') target:transform(itemId[4]) player:addMount(38) item:remove(1) addEvent(revertIce, 600 * 1000, toPosition) end end end return true end Lembrando que precisa editar as fases do congelamento pelo id: 
    local itemId = {22729, 22730, 22731, 22732} local porcentagem = 50 Espero ter ajudado.
  5. Gostei
    fantomdruid deu reputação a Bruno Minervino em [10.90] Vanaheim Global Opensource - TFS 1.2   
    Atualizado para a versão 1.2 do projeto oficial!
  6. Gostei
    fantomdruid deu reputação a Bruno Minervino em [10.90] Vanaheim Global Opensource - TFS 1.2   
    Um método diferente de agir. Escolhas diferentes, um projeto surpreendente, e o melhor é opensource. Sim, você pode ter acesso a este servidor que estou desenvolvendo em parceria com a Serversoft para você.

    Um servidor com uma mega estrutura para suportar seus jogadores online sem nenhum problema como: debug, bug de clonagem, instabilidade entre diversos outros dos servidores free's disponíveis para download nessa vasta internet tibiana.

    Uma inovação no ramo de OTservers, distribuindo não só a datapack como as sourcers e os sistemas, absolutamente tudo que você procura. Basta baixar, compilar... Mas eu não sei compilar. Não há problema nisso, o OTPanel da Serversoft faz tudo isso para você. Basta clicar num botão de "play" e ver a mágica acontecer.

    O projeto Vanaheim, foi criado com o intuito de ser inteiramente grátis para toda a comunidade. Um servidor no qual a diversão é o fator principal, um projeto com viabilidade absoluta por todos os tibianos.

    O projeto conta com uma área exclusiva no GitHub para que todos possam acompanhar a evolução do mesmo, dia a dia, diversas atualizações estarão disponíveis a todos. Desde uma action até uma modificação na source vocês terão acesso.

    O servidor conta com um mapa Global Full, quando eu digo full, quero dizer que está 99.99% do mapa completo, sem bugs entre outros.
    Um servidor que você escolhe a rate experience/skill que desejar, ele vai se adaptar! Você pode escolher se quer ou não que as quests tenham as missões originais 100%!

    E o melhor? Além do servidor estar disponível para download ele está online para quem quiser conhecer o projeto, ajudar de alguma forma e o melhor de tudo, se divertir.

    Venha se divertir: http://www.vanaheimglobal.com
     
    RATES
     
    Level 8 - 50: 300x
    Level 51 - 80: 200x
    Level 81 - 100: 150x
    Level 101 - 140: 90x
    Level 141 - 160: 70x
    Level 161 - 180: 60x
    Level 181 - 200: 50x
    Level 201 - 230: 40x
    Level 231 - 260: 30x
    Level 261 - 290: 20x
    Level 291 - 310: 15x
    Level 311 - 340: 10x
    Level 341 - 350: 8x
    Level 351 - 380: 6x
    Level 381 - 430: 4x
    Level 431 - 450: 2x
    Level 451+: 1x
     
     
    Skill: 40x
    Magic: 8x
    Loot: 3x
     
     
    EVENTOS
     
     
    Em Breve.
     
     
    IMAGENS
     
     
    Em Breve.
     
     
    GITHUB
     
     
    Para acompanhar e baixar o servidor atualizado, segue o link do nosso projeto no GitHub:
     

     
    DOWNLOADS
     
     
     
     
    Servidor
    Mapa
    Yasir
    Scan
     
    CRÉDITOS

    TFS Team
    Orts Project
    Bruno Minervino
     
  7. Gostei
    fantomdruid recebeu reputação de lasodadojad em (Resolvido)[AJUDA] Duplicate no distro que não sai   
    O valeu mano, po sou iniciante o pouco que sei mesmo errando tento ajudar!
  8. Gostei
    fantomdruid deu reputação a Rusherzin em Guild War AJUDA   
    Abre a pasta mods, procura o arquivo guildWarSystem.xml abra-o (com bloco de notas ou algo do gênero) e mude
    enabled="no"
    para
    enabled="yes"
  9. Gostei
    fantomdruid recebeu reputação de wettocoelho em Configuração dano de SD   
    Opa você vai na pasta spells/scripts/attack e procura o arquivo chamando sudden death, só modificar o ataque
    o do meu otserver esta assim caso não saiba mexer
    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -100, -1, -100, 7, 7, 8, 8) local condition = createConditionObject(CONDITION_CURSED) setConditionParam(condition, CONDITION_PARAM_DELAYED, 1) addDamageCondition(condition, 5, 2000, -60) setCombatCondition(combat, condition) function onCastSpell(cid, var)     return doCombat(cid, combat, var) end Ajudei ? + rep ai
  10. Gostei
    Só remover as actions certinhas que não da erro nenhum
     
    AJUDEI ? +rep ai
  11. Gostei
    fantomdruid recebeu reputação de Danihcv em (Resolvido)[AJUDA] Duplicate no distro que não sai   
    O valeu mano, po sou iniciante o pouco que sei mesmo errando tento ajudar!
  12. Gostei
    fantomdruid recebeu reputação de Sekk em (Resolvido)[AJUDA] Duplicate no distro que não sai   
    Bom, coloque isto
    <action itemid="8905-8909" event="script" value="transformshield.lua"/> e remova o,
    <action fromid="8905" toid="8909" event="script" value="transformshield.lua"/> se der certo +rep ai
  13. Gostei
    fantomdruid recebeu reputação de Alansn08 em Erro nos outfits.   
    Colá isto no XML/Outfits
    +rep se deu certo
     
  14. Gostei
    fantomdruid deu reputação a ViitinG em Rmw 2.2   
    Abre o mapa com import ao em vez de abrir clicando duas vezes no da pasta world, abre o RME sem nenhum mapa aberto e importa o mapa que você quer e tenta abrir uma nova aba.
    Se não funcionar, tente baixar outro RME.
    Outro RME : http://www.4shared.com/rar/tqXNnpuMba/RME_ViitinG.html
     
     
     
     
     
     
     
     
    O tópico foi movido para a área correta, preste mais atenção da próxima vez!
    Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

    Este tópico foi movido:
    De: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
    Para: "OTServ → Suporte OTServ → Suporte de Mapping"
  15. Gostei
    fantomdruid deu reputação a Bruno Minervino em Wand of Elements   
    Introdução:
    É uma wand que ataca vários elementos aleatoriamente, porém não somente isso, você pode alterar o elemento dela com uma talkaction.
     
    Instalação:
    Vá até data/weapons/scripts e crie um arquivo chamando wandelementos.lua e coloque o seguinte conteúdo:
     
    local min, max = 1700,1900 --Ataque mínino e ataque máximo local w = { [1] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE}, [2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [3] = {ef = 46, sh = 38, dmg = COMBAT_POISONDAMAGE}, [4] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [5] = {ef = 47, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [6] = {ef = 36, sh = 31, dmg = COMBAT_PHYSICALDAMAGE}, [7] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) local effect = getPlayerStorageValue(cid, 4561) local target = getCreatureTarget(cid) if target ~= 0 then local wx = w[effect] or w[math.random(#w)] doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh) addEvent(doAreaCombatHealth, 100, cid, wx.dmg, getThingPos(target), 0, -min, -max, wx.ef) end return true end Altere o min e max de acordo com sua necessidade.
     
    Agora vá em data/weapons/weapons.xml e coloque o seguinte conteúdo:
     
    <wand id="7424" level="100" mana="30" event="script" value="wandelementos.lua"> <vocation id="1"/> <vocation id="2"/> <vocation id="5" showInDescription="0"/> <vocation id="6" showInDescription="0"/> </wand> Altere o id, level e mana de acordo com sua necessidade.

    Agora vamos configurar a talkaction que troca os elementos.
    Vá até data/talkactions/scripts e crie um arquivo chamando elementos.lua e coloque o seguinte conteúdo:
     
    local config = { wand_id = 7424, --ID da wand types = { ["all"] = -1, --Ataca os elementos aleatoriamente ["fire"] = 1, ["ice"] = 2, ["poison"] = 3, ["death"] = 4, ["energy"] = 5, ["physical"] = 6, ["holy"] = 7 } } function onSay(cid, words, param) local wand_left = getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid local wand_right = getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid if wand_left ~= config.wand_id and wand_right ~= config.wand_id then doPlayerSendCancel(cid, "Voce deve estar equipado com uma ".. getItemNameById(config.wand_id) .." para usar este comando.") return true end if config.types[param] then setPlayerStorageValue(cid, 4561, config.types[param]) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "Sua wand ira atacar ".. param .. ".") else local str = "" for i, _ in pairs(config.types) do str = str .. ", ".. i end doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "Os elementos disponiveis sao: ".. string.sub(str, 3, #str) ..".") end return true end Altere o wand_id conforme configurado em weapons.

    Agora vá em data/talkactions/talkactions.xml e coloque o seguinte conteúdo:
     
    <talkaction words="!elemento;/elemento" event="script" value="elementos.lua"/> Exemplo de funcionamento:
    https://www.youtube.com/watch?v=HHmZ1RpsrD0
     
    Gostaria de deixar um agradecimento especial para MaXwEllDeN, pela ajuda.
  16. Gostei
    fantomdruid deu reputação a Saintsbr em (Resolvido)Duplicate registered monster Help Please   
    vai em data/monsters/mounsters.xml
     
    da ctrl+f e digita noob, veja se tem 2, se tiver exclua um, senao avise aqui
     
    se ajudei da rep +
    =]
  17. Gostei
    fantomdruid deu reputação a MarceLoko em (Resolvido)Duplicate uniqueId Help   
    Cara, entra no RME, Edit->Find->Find Unique.
     
    Vai aparecer uma lista de todos os itens que utilizam uniqueID.
    Como o nome já diz, é um valor ÚNICO, por isso o console apresenta erro.
     
    Abraço.
  18. Gostei
    fantomdruid deu reputação a Bruno Minervino em NPC Mendigo   
    Explicação:
    É um npc que pede ajuda para quem passa, se a pessoa o ajudar ela será teleportada pra um lugar configurável, e nesse lugar a pessoa coloca o que quiser.
     
    Vá em data/npc e crie um arquivo chamado Mendigo.xml e coloque o seguinte conteúdo:



     
    Agora vá em data/npc/scripts e crie um arquivo chamado mendigo.lua e coloque o seguinte conteúdo:



  19. Gostei
    fantomdruid deu reputação a Bruno Minervino em NPC Mendigo   
    Vlw man kkk
    O Summ tava encucado com isso e me fez ficar tbm kkkk, mais ainda bem que deu certo!
  20. Gostei
    fantomdruid deu reputação a Caronte em Erro Creature Scripits   
    -----[[Critical System
                         by Night Wolf]]
     
     
    Com certeza é essa parte que ta dando o erro, como está no seu script ? 
    gostaria de colocar sem tirar os créditos ...
  21. Gostei
    fantomdruid deu reputação a Bruno Minervino em (Resolvido)Mysql Iniciante   
    Olá fantomdruid,
     
    O erro é que não existe a coluna cast na tabela players.
    - MYSQL ERROR: Unknown column 'cast' in 'field list' (1054).
     
    Execute esta query no phpmyadmin:
    ALTER TABLE `players` ADD `cast` TINYINT NOT NULL DEFAULT '0', ADD `castViewers` INT( 11 ) NOT NULL DEFAULT '0', ADD `castDescription` VARCHAR( 255 ) NOT NULL

Informação Importante

Confirmação de Termo