Ir para conteúdo

ViitinG

Membro
  • Registro em

  • Última visita

Solutions

  1. ViitinG's post in (Resolvido)Duvida was marked as the answer   
    "data/action/scripts/quest1.lua" :
    function onUse(cid, item, fromPosition, itemEx, toPosition) a = 93520 id = 1234 if getPlayerStorageValue(cid, a) < 1 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a "..getItemNameById(id)..".") doPlayerAddItem(cid, id, 1) doPlayerSetStorageValue(cid, a, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.") end return TRUE end "data/action/action.xml" :
    <action actionid="93520" script="Quest1.lua"/>
  2. ViitinG's post in (Resolvido)[8.60] Servidor derivado baseado em Naruto. was marked as the answer   
    Bom,eu vim pela mensagem que você me mandou e como não sei muita coisa sobre servidores derivados eu vou responder oque acho sobre algumas das perguntas :
     
     
    Acho que é isso,mas ai vai mais uma dica :
    Se você realmente acha que isso vai dar sucesso e que você vai conseguir levar para frente essa idéia,corra atrás e não ligue para ninguem que fale que isso não vai dar sucesso,porque só se você conseguir fazer a coisa da certa que os outros vão começar a mudar as opniões,se você acha que vai dar certo vai com tudo e é claro com calma,porque nada se cria do dia para noite,você vai levar tempo para criar uma coisa que realmente faça a diferença entre os servidores.
    Espero que minha humilde opnião possa ter te ajudado em alguma coisa.Abraço !
  3. ViitinG's post in (Resolvido)[Ajuda] Magia Effect was marked as the answer   
    Para mudar a cor do healing é só nas sources brother.
  4. ViitinG's post in (Resolvido)ERROR 100061 was marked as the answer   
    Resolvido por Team Viewer.
    Precisava liberar as portas do modem corretamente e ligar o DUC.
  5. ViitinG's post in (Resolvido)Ajuda FirstItens was marked as the answer   
    Tenta assim,se não der manda o erro se possível :
    local commonItems = { {itemid=2457, count=1}, -- legion helmet {itemid=2463, count=1}, -- chain armor {itemid=2647, count=1}, -- studded legs {itemid=2195, count=1}, -- leather boots {itemid=2160, count=5}, -- money {itemid=2124, count=1}, -- anel {itemid=2173, count=1} -- aol } local firstItems = { { -- SORC ITEMS {itemid=2190, count=1}, -- wand of vortex {itemid=2514, count=1}, -- mms {itemid=7620, count=1} -- mana potion }, { -- DRUID ITEMS {itemid=2182, count=1}, -- snakebite rod {itemid=2514, count=1}, -- mms {itemid=7620, count=1} -- mana potion }, { -- PALADIN ITEMS {itemid=2389, count=1}, -- spear {itemid=2514, count=1}, -- mms {itemid=7618, count=1} -- mana potion }, { -- KNIGHT ITEMS {itemid=2383, count=1}, -- spike sword {itemid=2514, count=1}, -- mms {itemid=7618, count=1} -- mana potion } } for _, items in ipairs(firstItems) do for _, item in ipairs(commonItems) do table.insert(items, item) end end local storage = 35353 function onLogin(cid) if getPlayerGroupId(cid) < 3 then local receivedItems = getPlayerStorageValue(cid, storage) if receivedItems == -1 then --[[local backpack = ]]doPlayerAddItem(cid, 1988, 1) local giveItems = firstItems[getPlayerVocation(cid)] if giveItems ~= nil then for _, v in ipairs(giveItems) do --doAddContainerItem(backpack, v.itemid, v.count or 1) doPlayerAddItem(cid, v.itemid, v.count or 1) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você recebeu seus primeiros itens !") end setPlayerStorageValue(cid, storage, 1) end return true end end
  6. ViitinG's post in (Resolvido)ajuda nascer com vip was marked as the answer   
    Procure antes de criar o tópico amigo !
    http://www.tibiaking.com/forum/topic/2623-creaturescript-ganhar-3-dias-de-premium-ao-logar-pela-primeira-vez/
  7. ViitinG's post in (Resolvido)Nao consigo logar no meu server was marked as the answer   
    Não.O IP 127.0.0.1 é somente para você entrar.
  8. ViitinG's post in (Resolvido)ola como eu tiro o comando /t was marked as the answer   
    Cuidado com double post amigo,você só poder dar UP após 24 horas !
    É só mudar no talkactions.xml está tag,bote o access 3 ou 5 :
    <talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/>
  9. ViitinG's post in (Resolvido)Dúvidas Cortina was marked as the answer   
    Coloque ela pelo "Raw Palette>Hangables" ao invés de "Doodad Palette>Hangables".
  10. ViitinG's post in (Resolvido)quando augem morrer no meu baiak was marked as the answer   
    "data/creaturescript/scripts/saveplayer" :
    local config = { savePlayer = true, healPlayerOnLevel = true } function onAdvance(cid, skill, oldLevel, newLevel) if(skill == SKILL__EXPERIENCE) then return true end if(skill == SKILL__LEVEL and config.healPlayerOnLevel) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid)) end if(config.savePlayer) then doPlayerSave(cid, true) end return true end "data/creaturescripts/creaturescripts.xml" :
    <event type="advance" name="SavePlayer event="script" value="saveplayer.lua"/> "data/creaturescripts/scripts/login.lua" :
    registerCreatureEvent(cid, "SavePlayer")
    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 Scripts"
  11. ViitinG's post in (Resolvido)Sistema De Refino was marked as the answer   
    Antes de criar um tópico tente pesquisar pelo mesmo amigo !
    Da uma olhada neste : http://www.tibiaking.com/forum/topic/11580-perfect-upgrade-system/
  12. ViitinG's post in (Resolvido)Icon System was marked as the answer   
    Resolvido.
  13. ViitinG's post in (Resolvido)erro deslogando com blatle was marked as the answer   
    Verifica se na pasta "data/creaturescripts/scripts" tem algum script para retirar o battle quando entrar na protection zone.
  14. ViitinG's post in (Resolvido)Área de mergulho ? was marked as the answer   
    Raw Palette>Sea.
  15. ViitinG's post in (Resolvido)Magic Wall nao desaparece! was marked as the answer   
    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 → OTServ Geral"
    Para: "OTServ → Suporte OTServ → Suporte de Scripts"
     
     
    Verifica se a tag do item.xml está assim :
    <item id="1497" article="a" name="magic wall"> <attribute key="type" value="magicfield" /> <attribute key="decayTo" value="0" /> <attribute key="duration" value="20" /> </item>
  16. ViitinG's post in (Resolvido)Não consigo adicionar atributos aos itens was marked as the answer   
    Você tem que adicionar o item no movements.xml amigo.
    Exemplo :
    <movevent type="DeEquip" itemid="8900" slot="shield" event="function" value="onDeEquipItem"/> <movevent type="Equip" itemid="8900" slot="shield" level="40" event="function" value="onEquipItem"> </movevent
  17. ViitinG's post in (Resolvido)Logout was marked as the answer   
    "data/creaturescripts/creaturescripts.xml" :
    <event type="think" name="Idle" event="script" value="idle.lua"/> "data/creaturescripts/scripts/idle.lua" :
    local config = { idleWarning = getConfigValue('idleWarningTime'), idleKick = getConfigValue('idleKickTime') } function onThink(cid, interval) if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or getPlayerCustomFlagValue(cid, PlayerCustomFlag_AllowIdle)) then return true end local idleTime = getPlayerIdleTime(cid) + interval doPlayerSetIdleTime(cid, idleTime) if(config.idleKick > 0 and idleTime > config.idleKick) then doRemoveCreature(cid) elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes" if(config.idleKick > 0) then message = message .. ", you will be disconnected in " local diff = math.ceil((config.idleWarning - config.idleKick) / 60000) if(diff > 1) then message = message .. diff .. " minutes" else message = message .. "one minute" end message = message .. " if you are still idle" end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return true end "data/creaturescripts/login.lua" :
    registerCreatureEvent(cid, "Idle") Agora é só alterar o tempo no neste local que você citou do config.lua.
  18. ViitinG's post in (Resolvido)Teleport que aparece em X dias was marked as the answer   
    Tenta assim :
    local config = { day = "Monday","Wednesday","Friday","Sunday", pos = {x=151, y=77, z=6}, -- Posição aonde sera criado o teleport topos = {x=550, y=34, z=7}, -- Posição pra onde o teleport ira levar o player time = 5, -- tempo que o teleport ira sumir em minutos msg_open = "The Portal to Hell was opened due to a war between angels and demons, run to the path of the Pits of Hell and kill Luciferus and his demons, the portal will close in 5 minutes.", -- mensagem ao abrir o teleport msg_close = "Lucifer found that some humans have managed to get into his reign and shut the gate." -- mensagem ao fechar o teleport } local function DelTp() local t = getTileItemById(config.pos, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(config.pos, CONST_ME_POFF) end end function onTimer() if (os.date("%A") == config.day) then doCreateTeleport(1387, config.topos, config.pos) doBroadcastMessage(config.msg_open) addEvent(DelTp, config.time*60*1000) addEvent(doBroadcastMessage, config.time*60*1000, config.msg_close) end return true end
  19. ViitinG's post in (Resolvido)Sqllite studio was marked as the answer   
    Tenta atualizar o SQLStudio,pelo que estou vendo ele está na versão 1.1.1 aí !
  20. ViitinG's post in (Resolvido)[Pedido] Mount-ao Clicar no item was marked as the answer   
    Amigo antes de criar um tópico tente procurar pelo que precisa !
    Ve se isso pode te ajudar : http://www.tibiaking.com/forum/topic/31842-item-mount-exclusivo1031-a-1037tfs-10/
  21. ViitinG's post in (Resolvido)Players comando !save was marked as the answer   
    Tente esse aqui então :
    "data/talkactions/scripts/save.lua" :
    local savingEvent = 0 function onSay(cid, words, param) if getPlayerAccess(cid) ~= 0 then if isNumber(param) == TRUE then stopEvent(savingEvent) save(tonumber(param) * 60 * 1000) else saveServer() end end end function save(delay) saveServer() if delay > 0 then savingEvent = addEvent(save, delay, delay) end end "data/talkactions/talkactions.xml" :
    <talkaction words="/save" script="save.lua" />
  22. ViitinG's post in (Resolvido)ERROS BÁSICOS AO INICIAR OT was marked as the answer   
    Isso não é erro nenhum é apenas um warning avisando que não tem as houses dos IDs citados.Não influência em nada mas caso você queira tirar é só remover as houses pelos IDs que mostra no warning.
  23. ViitinG's post in (Resolvido)[AJUDA] Quero Script Pro Pk Sair Com 10 Segundos was marked as the answer   
    Você pode mudar isso no config.lua brother :
    pzLocked = 30 * 1000
  24. ViitinG's post in (Resolvido)[AJUDA] New player área. was marked as the answer   
    Bota para o player quando criar uma nova conta ele nascer no lugar onde pega seus rewards e quando o player entrar no teleport para ir para o templo ele vai virar morador do templo e toda hora que morrer ele vai voltar para o templo e não para o local dos rewards.
    Mude a coordenada do Account Manager para o templo e a coordenada de newplayer para a sala de rewards e no teleport que está na area de reward você bota o actionid 30021 em vermelho você bota o townid da cidade que ele vai virar morador.
  25. ViitinG's post in (Resolvido)Auto Clean e Auto Save was marked as the answer   
    O de save é 3600000 !
    obs : para fazer as contas basta botar "60000xMinutos" no caso "60000x30" para 30 minutos e "60000x60" para uma hora.
     
    @danihcv isto serve para dar clean após um global save,como ele quer um clean em 30 minutos e um save em 1 hora e não 1 hora para os dois,tem que ser feito nos scripts.

Informação Importante

Confirmação de Termo