Ir para conteúdo

gahgah

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    gahgah deu reputação a esnio12 em Ajuda simples de dispel   
    na pasta actions/scripts crie um arquivo .lua chamado remover.lua
     
    cole isso dentro
     
    function onUse(cid, item, fromPosition, itemEx, toPosition) doPlayerSendTextMessage(cid,22,"Voce esta desqueimado.") doRemoveCondition(cid, CONDITION_FIRE) doSendMagicEffect(toPosition,41) end  
    agora em actions.xml coloque
     
    em 6119 você coloca o id do hat of the mad
    <action itemid="6119" event="script" value="remover.lua" />
  2. Gostei
    gahgah recebeu reputação de gabitutox em [PEDIDO] NPC que troca itens por Addon   
    Boa tarde tibiaking, procurei e nao encontrei oq realmente preciso, gostaria de um script que o Npc troca certo item por 1 addon full, exemplo: colete 20 sword em troca do addon citizen full, o player tem q coletar certo item em certa quantidade para cada addon full.
     
    Gostaria que montassem o script como o exemplo que dei, coletar 20 sword e 5 iron ore por exemplo, em troca do citizen full, o resto dos addons eu acrescento aqui, seguindo o exemplo ja montado.
     
    aguardo. 
  3. Gostei
    gahgah deu reputação a bruno.silvac em (Resolvido)[PEDIDO] Bau com Itens de cada Vocaçao   
    Vai em data>actions>script copie um arquivo .lua e renomeie para questvocation e cole isto nele:
    local cfg = { questChestAId = 5500, -- questChestStorage = 45008 -- } local vocQ = { [1] = {item = 2421 }, -- o item que você vai da.-- [2] = {item = 2421}, -- as vocations está configuradas até Elite Knight , 1=Sorc,2=druid,3=Paladin,4=Kina e assim em diante [3] = {item = 2421}, [4] = {item = 2421}, [5] = {item = 2421}, [6] = {item = 2421}, [7] = {item = 2421}, [8] = {item = 2421} } function onUse(cid, item, toPosition, itemEx, fromPosition) for voc, i in pairs(vocQ) do if item.actionid == cfg.questChestAId then local opened = getPlayerStorageValue(cid, cfg.questChestStorage) if opened == -1 then doPlayerSetStorageValue(cid, cfg.questChestStorage, 1) if getPlayerVocation(cid) == voc or getPlayerVocation(cid) == voc+4 then doPlayerAddItem(cid, i.item) doPlayerSendTextMessage(cid, 25, "You recieved "..getItemNameById(i.item)..".") end else doPlayerSendCancel(cid, "It's empty.") end end end return true end depois vai em actions.xml e adicione esta linha:
    <action actionid="5500" event="script" value="questvocation.lua"/>
  4. Gostei
    gahgah deu reputação a Caronte em (Resolvido)[PEDIDO] Bau com Itens de cada Vocaçao   
    local vocQ = { [1] = {item = 2421 }, -- o item que você vai da.-- [2] = {item = 2421}, -- as vocations está configuradas até Elite Knight , 1=Sorc,2=druid,3=Paladin,4=Kina e assim em diante [3] = {item = 2421}, [4] = {item = 2421}, [5] = {item = 2421}, [6] = {item = 2421}, [7] = {item = 2421}, [8] = {item = 2421} } function onUse(cid, item, toPosition, itemEx, fromPosition) if getPlayerStorageValue(cid, 38493) ~= 1 then doPlayerAddItem(cid, vocQ[getPlayerVocation(cid)].item) doPlayerSendTextMessage(cid, 25, "You recieved "..getItemNameById(vocQ[getPlayerVocation(cid)].item)..".") doPlayerSetStorageValue(cid, 38493, 1) else doPlayerSendCancel(cid, "It's empty.") end return true end
  5. Gostei
    gahgah deu reputação a Linus em (Resolvido)[PEDIDO] Bau com Itens de cada Vocaçao   
    Pronto :
    local cfg = { kina= {2421, idsword}, pala = 2421, sorc = 2421, drui = 2421, } function onUse(cid, item) if getPlayerStorageValue(cid, 38493) ~= 1 then if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then doPlayerAddItem(cid, cfg.kina[1], 1) doPlayerAddItem(cid, cfg.kina[2], 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) elseif getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then doPlayerAddItem(cid, cfg.sorc, 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then doPlayerAddItem(cid, cfg.drui, 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then doPlayerAddItem(cid, cfg.pala, 1) doPlayerSendTextMessage(cid, 25, "Congratulations!!") doPlayerSetStorageValue(cid, 38493, 1) end else doPlayerSendCancel(cid, "It's empty.") end return true end
  6. Gostei
    gahgah deu reputação a luanluciano93 em Erro no script anti accmanager do Kilua   
    Tenta assim então: 
    local config = { max = 2, -- Quantos acc manager o mesmo ip pode logar de uma vez acc_name = "Account Manager", -- Nome do account manager ip_banishment = "true", -- Se logar mais acc manager do que o permitido, leva ban? "true" ou "false" banishment_length = 10 -- Quantos dias o ip fica banido? } local accepted_ip_list = {""} -- lista dos ips permitidos a logar varios acc manager, -- exemplo: {"200.85.3.60", "201.36.5.222"} function onLogin(cid) if getPlayerName(cid) == config.acc_name then if isInArray(accepted_ip_list, doConvertIntegerToIp(getPlayerIp(cid))) then return true end if #getPlayersByIp(getPlayerIp(cid)) >= config.max then if config.ip_banishment == "true" then doAddIpBanishment(doConvertIntegerToIp(getPlayerIp(cid)), config.banishment_length * 24 * 60 * 60) doRemoveCreature(cid) end return false end end return true end
  7. Gostei
    gahgah deu reputação a Absolute em Erro no script anti accmanager do Kilua   
    Execute em sua DB:
    CREATE TABLE ban_table ( id INTEGER NOT NULL, account INTEGER NOT NULL, added INTEGER NOT NULL, expires INTEGER NOT NULL, admin_id INTEGER NOT NULL DEFAULT 0, comment TEXT NOT NULL, PRIMARY KEY ( id ) );
  8. Gostei
    gahgah deu reputação a luanluciano93 em Erro no script anti accmanager do Kilua   
    muda essa linha: 
    doAddIpBanishment(doConvertIntegerToIp(getPlayerIp(cid)), banishment_length * 24 * 60 * 60) por isso: 
    doAddIpBanishment(doConvertIntegerToIp(getPlayerIp(cid)), config.banishment_length * 24 * 60 * 60)
  9. Gostei
    gahgah deu reputação a Jamison Collins em (Resolvido)[AJUDA] Receber todos os addons por Clique   
    Bem, tente isso:
    Crie um arquivo .lua na pasta script de Actions, com nome addons.lua e adicione isso:
    function onUse(cid, item, frompos, item2, topos) local level = 10 -- Level necessário para poder usar o item. if item.itemid == 9693 then if getPlayerLevel(cid) >= level then doPlayerAddAddons(cid, 3) -- 3 significa os dois addons. doSendMagicEffect(getThingPos(cid), 28) doPlayerSendCancel(cid, "You have received all addons.") doRemoveItem(item.uid, 1) else doPlayerSendCancel(cid, "You don't have level enought.") end end return true end Abra o action.xml e adicione essa tag:
    <action itemid="9693" event="script" value="addons.lua"/>

Informação Importante

Confirmação de Termo