Ir para conteúdo

Kydrai

Visconde
  • Total de itens

    250
  • Registro em

  • Última visita

  • Dias Ganhos

    14

Histórico de Reputação

  1. Upvote
    Kydrai recebeu reputação de LorDz em Talkaction Q Compra Vida Ou Mana   
    <talkaction words="!buyvida" event="script" value="vida.lua"/>

    function onSay(cid, words, param) local money = 10 local health = 100 if doPlayerRemoveMoney(cid, money) then doCreatureAddHealth(cid, health) else doPlayerSendCancel(cid, "Você precisa de "..money.." gp's") end return TRUE end

    <talkaction words="!buymana" event="script" value="mana.lua"/>

    function onSay(cid, words, param) local money = 10 local mana = 100 if doPlayerRemoveMoney(cid, money) then doCreatureAddMana(cid, mana) else doPlayerSendCancel(cid, "Você precisa de "..money.." gp's") end return TRUE end
    Da pra faze os 2 em 1 só tbm se preferir.
    Testei no TFS 0.3.6
  2. Upvote
    Kydrai recebeu reputação de helinholima em [Resolvido]   
    Faz o teste:

    function onUse(cid, item, frompos, item2, topos) pos = {x=160, y=54, z=7} if item.itemid == 2363 then local time = 60 -- 60 seg local storage = 600000 local left = getPlayerStorageValue(cid, storage) - os.time(t) if left <= 0 then setPlayerStorageValue(cid, storage, os.time(t) + time) doPlayerSendCancel(cid,"Bem Vindo ao Templo!") doTeleportThing(cid,pos) doSendMagicEffect(nplayer1pos,10) doSendMagicEffect(topos,6) doSendMagicEffect(frompos,6) end doPlayerSendCancel(cid,"Você só pode usar este item depois de "..left.." segundos!") end return 1 end
  3. Upvote
    Kydrai recebeu reputação de Henrique Moura em [ Resolvido ]Mudando Cura Dos Pots   
    Na pasta actions/scripts/liquids tem o arquivo de potions.lua.
    La tem:

    healthMultiplier = 1.0, manaMultiplier = 1.0
    Esses são os números para multiplicar o tanto q vai recuperar.
     
    La também tem:

    local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion }
    Os numeros estão assim:

    health = {50, 100} mana = {70, 130}
    Esse é o minimo e maximo q a potion pode recuperar.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...