Ir para conteúdo

BilauX

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    BilauX deu reputação a marcot em Tile com tempo pra passar   
    Script 1 consertado, com o bug especificado por PM com o doTeleportThing.
    local config = { horMin = {horas = 18, minutos = 30}, -- Horario de abrir horMax = {horas = 19, minutos = 30}, -- Horario de fechar successText = "Lets go there, little boy.", -- Texto enviado quando o player passa com sucesso failText = "Open at 18:30 and close at 19:30, come back later." -- Texto enviado quando o player nao consegue passar } function onStepIn(cid, fromPosition, item, pos) hor = {horas = tonumber(os.date('%H')), minutos = tonumber(os.date('%M'))} if isInInterval (cid, hor, config.horMin, config.horMax) == FALSE then doTeleportThing(cid, fromPosition) doPlayerSendCancel(cid, config.failText) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, config.successText) end return 1 end function isInInterval(cid, hor, horMin, horMax) if hor.horas == horMin.horas then if hor.minutos >= horMin.minutos then return TRUE end elseif hor.horas == horMax.horas then if hor.minutos <= horMax.minutos then return TRUE end elseif hor.horas > horMin.horas and hor.horas < horMax.horas then return TRUE end return FALSE end  
    Agora, para os outros 2 scripts, do jeito que montei, precisaria salvar num arquivo a data em que o evento abriu pela ultima vez, mas mexer com arquivo pesa muito.
  2. Curtir
    BilauX deu reputação a Storm em (Resolvido)Bug Estranho   
    @BilauX Sim, você aumenta a vida que se ganha ao criar a conta.
  3. Curtir
    BilauX deu reputação a Vodkart em (Resolvido)AJUDA SCRIPTS ACTION - TFS 0.4   
    galera ele só quer poder adicionar mais itens conforme os points, digamos que com 12 points vem aquela porrada de itens... exemplo assim:
     
    local lever = { [7200] = {amount = 12, items = {{2474,1},{12568,1},{2469,1},{11114,1},{2181,1},{7365,1},{8905,1},{12001,1}}}, [7138] = {amount = 200, items = {{7903,1},{7884,1},{7885,1},{7886,1},{8911,1},{7363,1},{7460,1},{7390,1}}}, [7146] = {amount = 300, items = {{7900,1},{7899,1},{7894,1},{7891,1},{12597,1},{12391,1},{3974,1},{2446,1}}} } function getItemsLevers(cid, items) local backpack = doPlayerAddItem(cid, 1999, 1) -- backpackID for _, i_i in ipairs(items) do local item, amount = i_i[1],i_i[2] if isItemStackable(item) or amount == 1 then doAddContainerItem(backpack, item, amount) else for i = 1, amount do doAddContainerItem(backpack, item, 1) end end end end function getItemsFromList(items) local str = '' if table.maxn(items) > 0 then for i = 1, table.maxn(items) do str = str .. items[i][2] .. ' ' .. getItemNameById(items[i][1]) if i ~= table.maxn(items) then str = str .. ', ' end end end return str end local storage,exausted = 98762, 2 function onUse(cid,item,fromPosition,itemEx,toPosition) if not lever[item.actionid] then return true end local var = lever[item.actionid] if getotfunPoints(cid) < var.amount then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Você precisa de "..var.amount.." Ot Fun points.") elseif getPlayerStorageValue(cid, storage) >= os.time() then return doPlayerSendCancel(cid, "espere " .. getPlayerStorageValue(cid, storage) - os.time() .. " alguns segundos e tente novamente.") end getItemsLevers(cid, var.items) doPlayerSendTextMessage(cid,22,"Você Acaba De Adquirir: " .. getItemsFromList(var.items)) doPlayerRemoveotfunPoints(cid,var.amount) setPlayerStorageValue(cid, storage, os.time()+exausted) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) doTransformItem(item.uid, item.itemid == 1740 and 1740 or 1740) -- troque aqui o id da alavanca return true end  
     
    --------------------------------
     
    agora você pode adicionar quantos items quiser, só colocar {itemid, amount}
     
    exemplo:
     
    items = {{2173,1},{2160,10}}
     
    ai para adicionar mais itens ficaria:
     
    items = {{2173,1},{2160,10},{2494,1}}
  4. Curtir
    BilauX deu reputação a Yan Liima em (Resolvido)Sistema de Exausted   
    function onUse(cid, item, fromPosition, itemEx, toPosition) local porcentagem = math.random(1, 10) local exhausted_seconds = 1.8 -- Segundos de exhausted local exhausted_storage = 74800 if(os.time() < getPlayerStorageValue(cid, exhausted_storage)) then doSendMagicEffect(fromPosition, CONST_ME_POFF) doPlayerSendCancel(cid, "You are exhausted.") else doCreatureAddHealth(cid, getCreatureMaxHealth(cid) * (porcentagem / 10)) setPlayerStorageValue(cid, exhausted_storage, os.time() + exhausted_seconds) doSendAnimatedText(getThingPos(cid), "Pérola", 71) doSendMagicEffect(getCreaturePosition(cid), 29) doPlayerSendTextMessage(cid,19, porcentagem.."% do seu hp total foi healado!") doRemoveItem(item.uid, 1) end return true end  
  5. Curtir
    BilauX deu reputação a Yan Liima em (Resolvido)Remover todos de uma area as X horas   
    Obrigado por me trocar pelo Vod , seus porra 
    local sala = {{x = 93, y = 84, z = 7}, {x = 101, y = 191, z = 7}} -- Canto superior esquerdo/inferior direito da sala onde os jogadores vão estar function onTime() for _, cid in ipairs(getPlayersOnline()) do if isInRange(getCreaturePosition(cid), sala[1], sala[2]) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerSendTextMessage(cid, 22, "Você foi teleportado para o templo delicia.") end end return true end <globalevent name="Teleport" time="01:52:10" event="script" value="arquivo.lua"/>  
  6. Curtir
    BilauX deu reputação a Yan Liima em DÚVIDA FRAGS - TFS 0.4   
    Note que dailyFragsToBlackSkull está retornado com o valor do dailyFragsToRedSkull
    dailyFragsToBlackSkull = dailyFragsToRedSkull Ou seja ele vai para o valor do dailyFragsToRedSkull que seria:
    dailyFragsToRedSkull = 10 10. Você poderia alterar o Daily , Weekly e Monthly do BlackSkull deixando assim, Ex:
    dailyFragsToBlackSkull = 20 weeklyFragsToBlackSkull = 40 monthlyFragsToBlackSkull = 70  
  7. Curtir
    BilauX deu reputação a .Smile em TFS 0.4 REV 3884 - DEBIAN 8   
    Fico feliz que estejamos fazendo progresso, agora vamos resolver o próximo.
     
    Em
    luascript.cpp 
     
    Substitua 
    it->leaf() por 
    it->path().filename().string()  
    Substitua
    it->path().filename() por
    it->path().filename().string()  
    Em 
    scriptmanager.cpp
     
    Substitua
    it->leaf() por
    it->path().filename().string()  
  8. Haha
    BilauX recebeu reputação de Mathias Kenfi em (Resolvido)Dano Variar Pela ml -TFS 0.4   
    muito obrigado, boa tarde, ótimo dia para vc...
     
    @Joaovettor com skill o escalonamento ficaria como ??
  9. Curtir
    BilauX deu reputação a Mathias Kenfi em (Resolvido)Dano Variar Pela ml -TFS 0.4   
    local w = {
        [1] = {ef = 47, sh = 35, dmg = COMBAT_ENERGYDAMAGE},
    }
    function onUseWeapon(cid, var)
            local ml = (getPlayerMagLevel(cid)*25000/100)
            local min, max = (25000+ml),(25000+ml)
            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
     
     
  10. Curtir
    BilauX deu reputação a Coltera em Show OFF - Mapping   
    HUNTS:
    Estarei postando algumas imagens do meu projeto
     
    * (Mapa simples e poucos detalhes) *
     
    ---------------------------------------------------
    Atualização: 27/05/2019
    ---------------------------------------------------
    1

    2

    ---------------------------------------------------
    Atualização: 25/05/2019
    ---------------------------------------------------
    1

    2

     
    CIDADE:
    ---------------------------------------------------
    Atualização: 27/01/2019
    ---------------------------------------------------
    Repostarei..
     
  11. Curtir
    BilauX recebeu reputação de Cat em (Resolvido)Npc ou item Que muda vocação em piramide - tfs 04   
    @Bolletox
    [13:0:41.912] [Error - NpcScript Interface] [13:0:41.913] data/npc/scripts/vocacao.lua:onCreatureSay [13:0:41.913] Description: [13:0:41.913] data/npc/scripts/vocacao.lua:64: attempt to index field '?' (a nil value) [13:0:41.913] stack traceback: [13:0:41.913] data/npc/scripts/vocacao.lua:64: in function 'callback' [13:0:41.913] data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage' [13:0:41.913] data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage' [13:0:41.913] data/npc/lib/npcsystem/keywordhandler.lua:122: in function 'processMessage' [13:0:41.913] data/npc/lib/npcsystem/npchandler.lua:387: in function 'onCreatureSay' [13:0:41.913] data/npc/scripts/vocacao.lua:7: in function <data/npc/scripts/vocacao.lua:7>  
     
  12. Curtir
    BilauX recebeu reputação de Cat em (Resolvido)Npc ou item Que muda vocação em piramide - tfs 04   
    como fazer, quando o cara vira a nova vocação enviar uma msg verde pro servidor todo ?? nem testei mais vou da rep, qualquer coia se funfa venho e marco melhor resposta... @Bolletox
     
     
  13. Curtir
    BilauX recebeu reputação de Cat em (Resolvido)Npc ou item Que muda vocação em piramide - tfs 04   
    @Bolletox funciono, mais quando reloga a vocação some....
     
     
     
     
  14. Curtir
    BilauX recebeu reputação de Cat em (Resolvido)Npc ou item Que muda vocação em piramide - tfs 04   
    @Bolletox aí...
    <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/></vocation> <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="10" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="60" gainmanaticks="3" gainmanaamount="60" manamultiplier="1.4" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/></vocation> <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="10" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="70" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.3" club="1.3" sword="1.3" axe="1.3" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="10" gainhp="15" gainmana="15" gainhpticks="2" gainhpamount="250" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.4" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="10" gainhp="20" gainmana="5" gainhpticks="2" gainhpamount="245" gainmanaticks="2" gainmanaamount="200" manamultiplier="3.0" attackspeed="150" soulmax="210" gainsoulticks="15" fromvoc="4" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="9" name="Super Sorcerer" description="a super sorcerer" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="5" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="10" name="Super Druid" description="an super druid" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="6" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="11" name="Super Paladin" description="an super paladin" needpremium="1" gaincap="10" gainhp="20" gainmana="20" gainhpticks="2" gainhpamount="270" gainmanaticks="2" gainmanaamount="265" manamultiplier="1.4" attackspeed="1000" soulmax="210" gainsoulticks="18" fromvoc="7" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.2" shielding="1.2" fishing="1.1" experience="1.0"/> </vocation> <vocation id="12" name="Super Knight" description="a super knight" needpremium="1" gaincap="10" gainhp="22" gainmana="8" gainhpticks="2" gainhpamount="260" gainmanaticks="2" gainmanaamount="210" manamultiplier="3.0" attackspeed="200" soulmax="210" gainsoulticks="18" fromvoc="8" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> </vocations>  
  15. Curtir
    BilauX recebeu reputação de Cat em (Resolvido)Npc ou item Que muda vocação em piramide - tfs 04   
    eu entendi q tu fez no fromvoc e funciono, só é assim msm se o cara é super knight e tenta virar super knight aparece um erro no distro, teria como voltar uma msg falando pra ele q ele é essa vocação já  e não é possível mudar e não ter erro no distro ??
    @Bolletox
    [11:12:08.661] [Error - NpcScript Interface] [11:12:08.661] data/npc/scripts/vocacao.lua:onCreatureSay [11:12:08.661] Description: [11:12:08.661] data/npc/scripts/vocacao.lua:70: attempt to index field '?' (a nil value) [11:12:08.661] stack traceback: [11:12:08.661] data/npc/scripts/vocacao.lua:70: in function 'callback' [11:12:08.661] data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage' [11:12:08.661] data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage' [11:12:08.661] data/npc/lib/npcsystem/keywordhandler.lua:122: in function 'processMessage' [11:12:08.661] data/npc/lib/npcsystem/npchandler.lua:387: in function 'onCreatureSay' [11:12:08.662] data/npc/scripts/vocacao.lua:7: in function <data/npc/scripts/vocacao.lua:7>  
     
     
  16. Curtir
    BilauX deu reputação a Bolletox em (Resolvido)Npc ou item Que muda vocação em piramide - tfs 04   
    @BilauX Tenta esse
    <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="10" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="60" gainmanaticks="3" gainmanaamount="60" manamultiplier="1.4" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="10" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="70" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.3" club="1.3" sword="1.3" axe="1.3" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="10" gainhp="15" gainmana="15" gainhpticks="2" gainhpamount="250" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.4" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="10" gainhp="20" gainmana="5" gainhpticks="2" gainhpamount="245" gainmanaticks="2" gainmanaamount="200" manamultiplier="3.0" attackspeed="150" soulmax="210" gainsoulticks="15" fromvoc="4" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="9" name="Super Sorcerer" description="a super sorcerer" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="9" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="10" name="Super Druid" description="an super druid" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="10" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="11" name="Super Paladin" description="an super paladin" needpremium="1" gaincap="10" gainhp="20" gainmana="20" gainhpticks="2" gainhpamount="270" gainmanaticks="2" gainmanaamount="265" manamultiplier="1.4" attackspeed="1000" soulmax="210" gainsoulticks="18" fromvoc="11" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.2" shielding="1.2" fishing="1.1" experience="1.0"/> </vocation> <vocation id="12" name="Super Knight" description="a super knight" needpremium="1" gaincap="10" gainhp="22" gainmana="8" gainhpticks="2" gainhpamount="260" gainmanaticks="2" gainmanaamount="210" manamultiplier="3.0" attackspeed="200" soulmax="210" gainsoulticks="18" fromvoc="12" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> </vocations>  
  17. Curtir
    BilauX deu reputação a lordzetros em (Resolvido)Erro Script Wand - TFS 1.3   
    @BilauX 
    local min, max = 5000000,5000000 --Ataque mínimo e ataque máximo local w = { [1] = {ef = 46, sh = 29, dmg = COMBAT_FIREDAMAGE}, } function onUseWeapon(player, variant) local effect = player:getStorageValue(4561) local target = Creature(variant:getNumber()) if target then local wx = w[effect] or w[math.random(#w)] local target_pos = target:getPosition() player:getPosition():sendDistanceEffect(target_pos, wx.sh) addEvent(function() doAreaCombatHealth(player:getId(), wx.dmg, target_pos, 0, -min, -max, wx.ef) end, 100) end return true end  
  18. Curtir
    BilauX deu reputação a lordzetros em (Resolvido)Loteria - TFS 1.3   
    @BilauX Por nada.
     
    Segue script do tópico:
    local rewards = { {9002, 1}, {9004, 1}, {9693, 1}, {2160, 100}, } local function get_players() local t = {} for _, c in ipairs(Game.getPlayers()) do if (c:getGroup():getId() == 1) then table.insert(t, c) end end return t end function onTime(interval) local players = get_players() if (#players > 0 and #rewards > 0) then local uid, n = math.random(1, #players), math.random(1, #rewards) local ganhador = players[uid] local reward, count = rewards[n][1], rewards[n][2] if (ganhador and reward and count) then ganhador:addItem(reward, count) Game.broadcastMessage('O player '.. ganhador:getName()..' recebeu '.. count .. ' '..ItemType(reward):getName()..' na loteria.', MESSAGE_STATUS_WARNING) end end return true end  
  19. Curtir
    BilauX deu reputação a lordzetros em (Resolvido)AJUDA SCRIPT - TFS 1.3 - ADDON   
    -- female, male local outfits = { ["citizen"] = {136, 128}, ["hunter"] = {137, 129}, ["mage"] = {138, 130}, ["knight"] = {139, 131}, ["noblewoman"] = {140, 132}, ["summoner"] = {141, 133}, ["warrior"] = {142, 134}, ["barbarian"] = {147, 143}, ["druid"] = {148, 144}, ["wizard"] = {149, 145}, ["oriental"] = {150, 146}, ["pirate"] = {155, 151}, ["assassin"] = {156, 152}, ["beggar"] = {157, 153}, ["shaman"] = {158, 154}, ["norsewoman"] = {252, 251}, ["nightmare"] = {269, 268}, ["jester"] = {270, 273}, ["brotherhood"] = {279, 278}, ["demonhunter"] = {288, 289}, ["yalaharian"] = {324, 325}, ["warmaster"] = {336, 335}, ["wayfarer"] = {366, 367}, ["afflicted"] = {431, 430}, ["elementalist"] = {433, 432}, ["deepling"] = {464, 463}, ["insectoid"] = {466, 465}, ["red baron"] = {471, 472}, ["crystal warlord"] = {513, 512}, ["soil guardian"] = {514, 516}, } local addondoll_id = 9693 function onSay(player, words, param) if player:getItemCount(addondoll_id) < 0 then player:sendCancelMessage("Voce nao tem addon doll!") return false end local split = param:split(",") local addonType = split[1] if not addonType then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, "Por favor utilize o comando corretamente. !addon first, mage") return false end addonType = addonType:lower() if addonType ~= "first" and addonType ~= "second" or split[2] == nil then player:sendCancelMessage("Por favor use o comando corretamente. Exemplo: !addon first,mage") return false end local outfitName = split[2] local outfit = outfits[outfitName:lower()] if not outfit then player:sendCancelMessage("Não existe nenhuma Outfit com esse nome.") return false end local type = (addonType == "first" and 1) or 2 local ps = (player:getSex() == 1 and 2) or 1 if player:hasOutfit(outfit[ps], type) then player:sendCancelMessage("Voce ja tem este addon") return false end player:removeItem(addondoll_id, 1) player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS) player:addOutfitAddon(outfit[1], type) player:addOutfitAddon(outfit[2], type) player:sendTextMessage(MESSAGE_INFO_DESCR, string.format('Você recebeu o %s do Addon %s.', addonType:lower(), outfitName:lower())) return false end  
  20. Curtir
    BilauX deu reputação a vankk em (Resolvido)WEAPONS.XML - TFS 1.3   
    Caso você queria colocar ela para ser por script, então deve ser nesse estilo:
     
    <wand id="item_ID" level="200" mana="80" script="script.lua"> Caso que queira já definir um valor basta utilizar:
     
    <wand id="ITEM_ID" level="200" mana="200" min="123" max="456" type="earth"> Para mais info clique aqui.
  21. Curtir
    BilauX deu reputação a Coltera em (Resolvido)Advance level, reward points.   
    Testa aí @Jobs
    local points = 5 local storage = 1234 function onAdvance(player, skill, oldLevel, newLevel) if skill ~= SKILL_LEVEL or newLevel <= oldLevel then return true end if player:getStorageValue(storage) < oldLevel then db.query("UPDATE `accounts` SET `NOVA_TABELA` = `NOVA_TABELA` + " .. points .. " WHERE `id` = '" .. player:getAccountId() .. "';") player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, 'Congratulations! You have advanced to level ' .. newLevel .. ' and you have earned '.. points ..' points!') player:setStorageValue(storage, oldLevel) end return true end  
  22. Curtir
    BilauX deu reputação a Coltera em (Resolvido)Leve Monster TFS 1.3   
    @Yinz 
    local config = { monster_name = "Dragon Lord", monster_position = Position(1063, 1052, 7), storage = 6025, ex_time = 1*60 } function onUse(player, item, frompos, item2, topos) if not player:getPlayer() then return true end if player:getStorageValue(config.storage) >= os.time() then player:sendTextMessage(MESSAGE_INFO_DESCR, "You can only use in "..string.diff(player:getStorageValue(config.storage) - os.time())) else player:setStorageValue(config.storage, os.time() + config.ex_time) Game.createMonster(config.monster_name, config.monster_position) item:transform(item.itemid == 9826 and 9825 or 9826) end return true end  
  23. Curtir
    BilauX deu reputação a Coltera em [Show OFF] - Shopping Modal   
    Novo Shopping in-game usando Modal via Banco de Dados!
    Será que fica bom? Oque vocês acham?

     
     
     
     
  24. Curtir
    BilauX deu reputação a Coltera em (Resolvido)Look Reset TFS1.3   
    @BilauX 
    Em data/events/scripts/player.lua
    Na função:
    function Player:onLook(thing, position, distance) Adicione:
    if thing:isPlayer() then local resets = thing:getStorageValue(378378) if resets < 0 and 0 or resets then description = string.format("%s\nResets: %s.", description, resets > 0 and resets or "0") end end Se preferir você também pode usar na função:
    function Player:onLookInBattleList(creature, distance) Para mostrar os resets ao da look pela battle.
  25. Curtir
    BilauX deu reputação a lordzetros em TFS 1.3   
    Espera, tá bugando tudo.
    local vocQ = { ["1-5"] = {item = {2293}}, -- Caso queira adicionar mais itens, apenas coloque a vírgula e o id do item, exemplo: ["1-5"] = {item = {7365,2160,2148}}, ["2-6"] = {item = {2187}}, ["3-7"] = {item = {7365}}, ["4-8"] = {item = {2393}} } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if (player:getStorageValue(7365) ~= 1) then for voc, items in pairs(vocQ) do local v = voc:split("-") if (player:getVocation():getId() == tonumber(v[1]) or player:getVocation():getId() == tonumber(v[2])) then for i = 1, #items.item do player:addItem(items.item[i], 1) end player:sendTextMessage(36, "Congratulations!!") player:setStorageValue(7365, 1) break end end else player:sendTextMessage(35, "It's empty.") end return true end Agora sim...
    @BilauX
     
    Meu anti-vírus não tava permitindo abrir a caixa de códigos, por isso não tava indo completo, pois no spoiler [/i] entende como código nativo, com isso o script estava saindo incompleto.
     
    Copia novamente, alterei.

Informação Importante

Confirmação de Termo