Ir para conteúdo

gusinhi

Campones
  • Total de itens

    41
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que gusinhi postou

  1. eu foi ver isso agr, vlw pela ajuda
  2. Agora foii valew ai pela ajuda
  3. function onKill(cid, target, lastHit)config = {NickBoss = "Ferumbras",StoragePorta = 666}if isMonster(target) then if getCreatureName(target) == config.NickBoss then setPlayerStorageValue(cid, config.StoragePorta, 1) doPlayerSendTextMessage(cid, 18, "'You defeated me..now you can open the door.") return true endendreturn trueend Action da porta function onUse(cid, item, fromPosition, itemEx, toPosition)if item.actionid == 666 thenif getPlayerStorageValue(cid, 666) ~= 1 thenreturn doPlayerSendTextMessage(cid, 27, "The door seems to be sealed against unwanted intruders.")endreturn trueend
  4. alguem me da uma força aki com esse script, ele funciona tudo menos dar vida ao ferumbras eu quero q quando o player mata ele o ferumbras ganhe uma nova vida
  5. Nao sei se ja existe esse script aqui no xtibia pq eu cacei e nao achei acabei criando um e so vi esse scroll em um unico server esperem que gostem Vá em talkaction e crie um script com o nome teleport.lua e coloque: local teleport = { ['Venore'] = {x=32957, y=32076, z=7}, ['Thais'] = {x=32369, y=32241, z=7}, ['Kaz'] = {x=32649, y=31925, z=11}, ['Carlin'] = {x=32360, y=31782, z=7},}function onSay(cid, words, param, channel) local s = teleport[param:lower()] if s then if hasCondition(cid, CONDITION_INFIGHT) == TRUE then doPlayerSendCancel(cid, "You Can't Teleport In Battle!") return false end if getPlayerItemCount(cid, 2345) > 0 then -- 2345 é id do item que precisa para poder usar o comando doTeleportThing(cid, s) doSendMagicEffect(s, CONST_ME_TELEPORT) doCreatureSay(cid, "Ultimate Teleport!", TALKTYPE_MONSTER) else doPlayerSendCancel(cid, 'You need a ultimate teleport scroll.') end else doPlayerSendCancel(cid, 'Destination doesn\'t exist.') end return trueend Insira a TAG XML de acordo com a versão do seu servidor, em talkactions.xml TAG para Tfs 1.x: <talkaction words="!tp" script="teleport.lua" /> TAG para Tfs 0.4: <talkaction words="!tp" event="script" value="teleport.lua" />
  6.  
    Spoiler

     

    
    local positions = {
        {lugar = "Midgard", pos = {x=123, y=123, z=7}, price = 1000}, -- Nome do lugar, posicao do lugar
        {lugar = "Sao Paulo", pos = {x=123, y=123, z=7}, price = 13000},
        {lugar = "Carlin", pos = {x=123, y=123, z=7}, price = 1000},
        {lugar = "Venore", pos = {x=123, y=123, z=7}, price = 1000}
    }
    
    
    
    local needPz = false -- Precisa de pz? [true/false]
    local cooldown = 5 -- Tempo em segundos para poder se teleportar novamente.
    local needPrem = false --  Precisa ser premiu? [true/false]
    
    function onSay(cid, words, param, channel)
    
        local str = ""
    
        for i = 1, (#positions) do
            local cidades = positions[i].lugar
            local custo = positions[i].price
            str = str .. cidades .. ' - ' .. custo .. ' gps\n '
        end
    
        if param == "" then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Para se teleportar diga !teleport LUGAR.\nLugares disponiveis:\n " .. str .. " \n Escolha seu destino e boa viagem!")
        end
            
        for _, abc in pairs(positions) do
    
            if param:lower() == abc.lugar:lower() then
                
                if needPz == true and getTilePzInfo(getCreaturePosition(cid)) == false then
                    return doPlayerSendCancel(cid, "Voce precisa estar em PZ para teleportar.")
                elseif getPlayerStorageValue(cid, 23121) > os.time() then
                    return doPlayerSendCancel(cid, "Voce deve esperar mais " .. getPlayerStorageValue(cid, 23121) - os.time() .. " segundos para se teleportar novamente.")
                elseif needPrem == true and not isPremium(cid) then
                    return doPlayerSendCancel(cid, "Somente jogadores premium podem teleportar.")
                elseif getPlayerMoney(cid) < abc.price then
                    return doPlayerSendCancel(cid, "Voce nao tem dinheiro.")      
                end
    
                doPlayerSetStorageValue(cid, 23121, os.time() + cooldown)
                doPlayerRemoveMoney(cid, abc.price)
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
                doTeleportThing(cid, abc.pos)
                doPlayerSendTextMessage(cid, 25, "Bem vindo a " .. abc.lugar.. "!")
                doSendMagicEffect(abc.pos, CONST_ME_TELEPORT)
            end
        end
        return true
    end

     

    opa eai mano, eu encotrei um script seu e gostaria de sua ajuda para modificar um pouco ele, em vez de cobrar por viagem teria como fazer que o player tenha um item X scroll por exemplo para poder usar o camando sem que remova o item

  7. Eai mano eu achei um script em talkaction que cobra 1k para o player falar o comando, voce sabe como fazer para q o player tenha esse item 2345 para poder falar o comando sem remover o item para q o player use qnd quiser

    Spoiler

     

    ocal positions = {
        {lugar = "1", pos = {x = 32957, y = 32076, z = 7}, price = 1000},
        {lugar = "2", pos = {x = 32369, y = 32241, z = 7}, price = 1000},
        {lugar = "3", pos = {x = 32649, y = 31925, z = 11}, price = 1000},
        {lugar = "4", pos = {x = 32360, y = 31782, z = 7}, price = 1000},
        {lugar = "5", pos = {x = 32732, y = 31634, z = 7}, price = 1000},
        {lugar = "6", pos = {x = 32317, y = 32826, z = 7}, price = 1000}
    }

    local needPz = false 
    local cooldown = 5 
    local needPrem = false 

    function onSay(cid, words, param, channel)

        local str = ""

        for i = 1, (#positions) do
            local cidades = positions.lugar
            local custo = positions.price
            str = str .. cidades .. ' - ' .. custo .. ' gps\n '
        end

        if param == "" then
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Para se teleportar diga !teleport LUGAR.\nLugares disponiveis:\n " .. str .. " \n Escolha seu destino e boa viagem!")
        end
            
        for _, abc in pairs(positions) do

            if param:lower() == abc.lugar:lower() then
                
                if needPz == true and getTilePzInfo(getCreaturePosition(cid)) == false then
                    return doPlayerSendCancel(cid, "Voce precisa estar em PZ para teleportar.")
                elseif getPlayerStorageValue(cid, 23121) > os.time() then
                    return doPlayerSendCancel(cid, "Voce deve esperar mais " .. getPlayerStorageValue(cid, 23121) - os.time() .. " segundos para se teleportar novamente.")
                elseif needPrem == true and not isPremium(cid) then
                    return doPlayerSendCancel(cid, "Somente jogadores premium podem teleportar.")
                elseif getPlayerMoney(cid) < abc.price then
                    return doPlayerSendCancel(cid, "Voce nao tem dinheiro.")      
                end

                doPlayerSetStorageValue(cid, 23121, os.time() + cooldown)
                doPlayerRemoveMoney(cid, abc.price)
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
                doTeleportThing(cid, abc.pos)
                doPlayerSendTextMessage(cid, 25, "Bem vindo a " .. abc.lugar.. "!")
                doSendMagicEffect(abc.pos, CONST_ME_TELEPORT)
            end
        end
        return true
    end

     

     

  8. alquem sabe como fazer uma bau que ao clicar nele voce ganhe uma certa mount, to quebrando a cabeça aki pra fazer e nao consigo neim encontro um que alguem tenha feito
  9. gusinhi

    ajuda com script

    funcionou em talkaction?
  10. gusinhi

    ajuda com script

    se vou souber como fazer a talkaction teleporttown para players usarem so com X item e sem pz eu vou tentando aki tbm function onSay(cid, words, param, channel) local master = false if(words == '/t') then master = true elseif(param == '') then local str = "" for i, town in ipairs(getTownList()) do str = str .. town.name .. "\n" end doShowTextDialog(cid, ITEM_ACTION_BOOK, str) return true end local tid, t = cid, string.explode(param, ",") if(t[(master and 1 or 2)]) then tid = getPlayerByNameWildcard(t[(master and 1 or 2)]) if(not tid or (isPlayerGhost(tid) and getPlayerAccess(tid) > getPlayerAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[(master and 1 or 2)] .. " not found.") return true end end local tmp = getPlayerTown(tid) if(not master) then tmp = t[1] if(not tonumber(tmp)) then tmp = getTownId(tmp) if(not tmp) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Town " .. t[1] .. " does not exists.") return true end end end local pos = getTownTemplePosition(tmp) if(type(pos) ~= 'table' or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Town " .. t[1] .. " does not exists or has invalid temple position.") return true end pos = getClosestFreeTile(tid, pos) if(type(pos) ~= 'table' or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Destination not reachable.") return true end tmp = getCreaturePosition(tid) if(doTeleportThing(tid, pos) and not isPlayerGhost(tid)) then doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(pos, CONST_ME_TELEPORT) end return true end
  11. gusinhi

    ajuda com script

    nao quer funcionar ;x eu vou deixar em creatureevent mesmo vlw pela ajuda esse script ta dando dor de cabeça
  12. gusinhi

    ajuda com script

    vixi deu bug \; eu to tentando fazer um scroll inspirado no comando teleporttown, mais nessa versao para player, mais n ta dando muito certo fazer um scroll q teleporta o player para a cidade que ele quiser
  13. gusinhi

    ajuda com script

    teria que mexer em function onTextEdit(cid, item, newText) e colocar como function onSay(player, words, param) para que o player use um comando tipo !tp 1, !tp 2... mais eu precisava q ele so possa usar o comando so se ele estiver com o item X eu ja tentei mudar tudo mais n funcionou ;\
  14. alguem manja de como fazer esse script em talkactions que o player possa falar so se ele estiver com o item local t = { ["tp1"] = {pos = {x = 32957, y = 32076, z = 7}, storage = 1337, time = 3}, ["tp2"] = {pos = {x = 32369, y = 32241, z = 7}, storage = 1338, time = 3}, ["tp3"] = {pos = {x = 32649, y = 31925, z = 11}, storage = 1339, time = 3}, ["tp4"] = {pos = {x = 32360, y = 31782, z = 7}, storage = 1340, time = 3}, ["tp5"] = {pos = {x = 32732, y = 31634, z = 7}, storage = 1341, time = 3}, ["tp6"] = {pos = {x = 32317, y = 32826, z = 7}, storage = 1342, time = 3}, ["tp7"] = {pos = {x = 32595, y = 32745, z = 7}, storage = 1343, time = 3}, ["tp8"] = {pos = {x = 33195, y = 32853, z = 8}, storage = 1344, time = 3}, ["tp9"] = {pos = {x = 33213, y = 32454, z = 1}, storage = 1345, time = 3}, ["tp10"] = {pos = {x = 33217, y = 31814, z = 8}, storage = 1346, time = 3}, ["tp11"] = {pos = {x = 32212, y = 31133, z = 7}, storage = 1347, time = 3}, ["tp12"] = {pos = {x = 32787, y = 31276, z = 7}, storage = 1348, time = 3}, ["tp13"] = {pos = {x = 33023, y = 31521, z = 11}, storage = 1349, time = 3}, ["tp14"] = {pos = {x = 33447, y = 31323, z = 9}, storage = 1350, time = 3}, ["tp15"] = {pos = {x = 33513, y = 32363, z = 6}, storage = 1351, time = 3}, ["tp16"] = {pos = {x = 32316, y = 31942, z = 7}, storage = 1352, time = 3}, ["tp17"] = {pos = {x = 33594, y = 31899, z = 6}, storage = 1353, time = 3}, ["tp18"] = {pos = {x = 9947, y = 9991, z = 7}, storage = 1354, time = 3} } function onTextEdit(cid, item, newText) if item.itemid == 1947 then if isPlayerPzLocked(cid) then doCreatureSay(cid, "Voce esta em battle!", TALKTYPE_MONSTER) return false end if isInArray({'locais', 'lugares', 'lugar'}, newText) then local i = '' for text, x in pairs(t) do i = i .. "\n[" .. text .. "]" end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Locais de TP: " .. i) else local p = t[newText] if not p then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Invalid location") return false end local st = p.storage if getCreatureStorage(cid, st) > os.time() then doCreatureSay(cid, "Espere " .. getCreatureStorage(cid, st) - os.time() .. ' segundos' .. (getCreatureStorage(cid, st) - os.time() == 1 and "" or "s") .. "para viajar novamente.", TALKTYPE_MONSTER) return true end local ti = p.time local pos = p.pos doTeleportThing(cid, pos, true) doSendMagicEffect(pos,72) doCreatureSetStorage(cid, st, os.time() + ti) doCreatureSay(cid, "Ultimate Teleport!", TALKTYPE_MONSTER) end end return true end
  15. gusinhi

    pedidos

    Você saberia como montar o script eu tinha uma base mas eu n to encontrando tem como da mais uma força?
  16. gusinhi

    pedidos

    Eu não sei se esse é o lugar certo para pedidos mais gostaria de ajuda com um script q um item X adiciona um certo atributtes em outro. ex: um scroll q ade um atributo skill em uma armor eu já vi alguns mais n funcionou no meu tfs 1.0
  17. nao sei se eu estou postando no lugar certo mas..queria ajuda com scroll q teleporta o player para a cidade q ele escolher por comando para tfs 1.0
  18. aguardando vc disponibilizar para o pessoal do xtibia ;D
  • Quem Está Navegando   0 membros estão online

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