Ir para conteúdo

luanluciano93

Héroi
  • Registro em

  • Última visita

Solutions

  1. luanluciano93's post in (Resolvido)Alguem me explica isso was marked as the answer   
    function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return true end local guildId = player:getGuild() guildId = guildId and guildId:getId() or 0 if guildId ~= 0 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "PODE PASSAR!") else player:teleportTo(Position(1012, 960, 9)) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end return true end  
  2. luanluciano93's post in (Resolvido)Ajuda Aqui, Storage que so passa se tiver guild PLX was marked as the answer   
    if getPlayerGuildId(cid) ~= nil then if getPlayerGuildId(cid) >= 1 then end end  
  3. luanluciano93's post in (Resolvido)2 Erros Aparecem Depois De Instalar Script was marked as the answer   
    Substitui a linha 7 do rewardchest_pontos.lua por esta: 
    if getPlayerStorageValue(cid, value.storage) ~= nil then  
  4. luanluciano93's post in (Resolvido)Ajuda script para TFS 1.0 was marked as the answer   
    function onSay(cid, words, param) local player = Player(cid) if not player:getGroup():getAccess() then return true end player:teleportTo(player:getTown():getTemplePosition()) Game.broadcastMessage("MENSAGEM", MESSAGE_STATUS_DEFAULT) return false end  
  5. luanluciano93's post in (Resolvido)Como remover Storage de player was marked as the answer   
    http://www.tibiaking.com/forum/topic/2023-phpmyadmin-comandos-uteis/
  6. luanluciano93's post in (Resolvido)Erro RME was marked as the answer   
    resolvido!
  7. luanluciano93's post in (Resolvido)[PEDIDO] Talkaction TFS 1.0 - Comando !online was marked as the answer   
    function onSay(cid, words, param) local player = Player(cid) local hasAccess = player:getGroup():getAccess() local players = Game.getPlayers() local playerCount = Game.getPlayerCount() player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, playerCount .. " players online.") local i = 0 local msg = "" for k, tmpPlayer in ipairs(players) do if hasAccess or not tmpPlayer:isInGhostMode() then if i > 0 then msg = msg .. ", " end msg = msg .. tmpPlayer:getName() .. " [" .. tmpPlayer:getLevel() .. "]" i = i + 1 end if i == 10 then if k == playerCount then msg = msg .. "." else msg = msg .. "," end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, msg) msg = "" i = 0 end end if i > 0 then msg = msg .. "." player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, msg) end return false end
  8. luanluciano93's post in Área de tópicos diários. was marked as the answer   
    É só ir em conteúdos recentes e clicar em ultimas 24 horas, irá mostrar os tópicos criados e comentados no dia.
  9. luanluciano93's post in (Resolvido)AJUDA COM DONATE [ VALOR DOS POINTS ] was marked as the answer   
    Resolvido!
  10. luanluciano93's post in (Resolvido)Erro ao Adiciona Samples was marked as the answer   
    Resolvido pelo autor do tópico.
  11. luanluciano93's post in (Resolvido)Montarias Apenas Para Os Premmium was marked as the answer   
    local looktypes = { -- aqui coloca o looktypes do outfit } local storage = 4545 function onLogin(cid) local player = Player(cid) if player:getStorageValue(storage) < 1 then -- addons liberados for i = 1, #looktypes do player:addOutfitAddon(looktypes[i], 3) end -- montarias liberadas if player:isPremium() then for i = 1, 47 domontarias liberadas doPlayerAddMount(cid, i) end end player:setStorageValue(storage, 1) end return true end
  12. luanluciano93's post in (Resolvido)Bug no who is online com outfit was marked as the answer   
    Tenta tirar essa parte: 
    <TD><div style="position: relative; width: 32px; height: 32px;"><div style="background-image: url(\'outfitter.php?id='.$player['looktype'].'&addons='.$player['lookaddons'].'&head='.$player['lookhead'].'&body='.$player['lookbody'].'&legs='.$player['looklegs'].'&feet='.$player['lookfeet'].'\'); position: absolute; width: 64px; height: 80px; background-position: bottom right; background-repeat: no-repeat; right: 0px; bottom: 0px;"></div></div></TD>
  13. luanluciano93's post in (Resolvido)[SUPORTE] Script quest's bugando was marked as the answer   
    Teste .. 




  14. luanluciano93's post in (Resolvido)Maximo de players na guild was marked as the answer   
    Veja essa etapa de aceitar invites: https://github.com/gesior/Gesior2012/blob/TFS-0.4_rev_3703%2B/pages/guilds.php#L645-L761

    Talvez se colocar uma condição: 
    SE (TOTAL_MEMBROS >= 30) ENTÃO RETORNA ERRO Depois dessa checagem: 
    if(!check_name($name)) $guild_errors[] = 'Invalid name format.'; Coloco que isso: 
    $guildMembers = $SQL->query('SELECT COUNT(`gr`.`id`) AS `total` FROM `players` AS `p` LEFT JOIN `guild_ranks` AS `gr` ON `gr`.`id` = `p`.`rank_id` WHERE `gr`.`guild_id` = '.$guild->getId() )->fetch(); if($guildMembers['total'] >= 30) $guild_errors[] = 'The guild is already on its members limit.'; Eu não testei, talvez funcione!
  15. luanluciano93's post in (Resolvido)[Pedido] No Vocation não ter acesso ao Market e nem receber parcel was marked as the answer   
    Eu não manjo nada de C++, mas não custa tenta .. 

    Procura essa função no arquivo player.cpp.

    Creio que se add uma condição nessa linha: 
    depotLocker->internalAddThing(Item::CreateItem(ITEM_MARKET)); Uma condição que verifique se o player tem vocação, tipo assim: 
    if (vocation->getId() != VOCATION_NONE) { depotLocker->internalAddThing(Item::CreateItem(ITEM_MARKET)); } É uma suposição que dê certo, como eu disse, eu não manjo nada de C++, se quiser testar ... 

    Se puder ajudar, @Lordfire
  16. luanluciano93's post in (Resolvido)TFS 1.0 VS 1.2 was marked as the answer   
    Existe um projeto do TFS no github, em constante desenvolvimento ... 

    A 9 meses atrás foi finalizado a versão 1.0 ... 
    A 3 meses atrás foi finalizado a versão 1.1 ... 

    Atualmente estamos na versão 1.2.

    Vamos responder a sua pergunta, o TFS 1.0 foi finalizado com 1649 commits, que basicamente representam uma "revisão", que varia de uma a infinitas alterações.

    A versão 1.1 foi finalizada com 1972 commits (eles sempre continuam em novas versões), e na versão 1.2 está atualmente em 2109 commits, ou seja, eles estão constantemente atualizando com coisas nvoas, arrumando bugs e aperfeiçoando as sources, por isso recomendo sempre usar a mais atual.

    LINK DO PROJETO: https://github.com/otland/forgottenserver

    Abraços!

    Este tópico foi movido: Para: "OTServ → Suporte OTServ → Suporte de OTServ Geral"
  17. luanluciano93's post in (Resolvido)(DÚVIDA) Source Linux was marked as the answer   
    Procure pelo servidor uma source compatível com a versão do seu servidor e use ela.
  18. luanluciano93's post in (Resolvido)Mudar WorldType (pvp, no-pvp) A cada x tempo - tfs 1.0 was marked as the answer   
    Existe essa função: 
    Game.setWorldType(type) Tu pode usar esses parametros: 
    Para "pvp" = WORLD_TYPE_PVP Para "no-pvp" = WORLD_TYPE_NO_PVP Para "pvp-enforced" = WORLD_TYPE_PVP_ENFORCED
  19. luanluciano93's post in (Resolvido)[PEDIDO] Soucer de tfs 1.0 was marked as the answer   
    https://github.com/otland/forgottenserver/tree/v1.0
  20. luanluciano93's post in (Resolvido)Erro Distro TFS 1.2 was marked as the answer   
    As tabelas que o servidor necessitam não existem!

    Você importou a database no phpmyadmin? 

    schemas.sql



  21. luanluciano93's post in (Resolvido)Nao consigo Trocar Ip desse Tibia.exe was marked as the answer   
    Testa esses:
    • http://www.tibiaking.com/forum/topic/55103-custom-cliente-todas-as-vers%C3%B5es-qualquer-ip/
    • http://www.tibiaking.com/forum/topic/33691-old-crie-seu-client-pr%C3%B3prio-860-10xx/
    • http://www.tibiaking.com/forum/topic/32952-old-editando-ip-do-client-com-hexeditor/

    Se não der, é porque você esta fazendo algo errado.
  22. luanluciano93's post in (Resolvido)Item De Cura was marked as the answer   
    Coloquei para ser aleatório de 1 a 100 a porcentagem do heal. 
    function onUse(cid, item, fromPosition, itemEx, toPosition) local porcentagem = math.random(1, 100) doCreatureAddHealth(cid, getCreatureMaxHealth(cid) * (porcentagem / 100)) doSendAnimatedText(getThingPos(cid), "Pérola", 71) doSendMagicEffect(getCreaturePosition(cid), 29) doPlayerSendTextMessage(cid,19, porcentagem.." do seu hp total foi healado!") doRemoveItem(item.uid, 1) return true end
  23. luanluciano93's post in (Resolvido)[PEDIDO] Firewalker Boots imune a fire field was marked as the answer   
    Resolvido.
  24. luanluciano93's post in (Resolvido){alavanca que teleporta 4x4 players} was marked as the answer   
    Não testei .. 
    local config = { positions = { {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, }, positions2 = { {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, {{x=535, y=1597, z=4}, {x=535, y=2000, z=4}}, }, storageTime1 = 10045, storageTime2 = 10046, money = 500,-- em k } function onUse(cid, item, fromPosition, item2, toPosition) -- Checando posições 1 for i = 1, #config.positions do local creature = getTopCreature(config.positions[i][1]).uid if not isPlayer(creature) then return doPlayerSendCancel(cid, "Nao existe players em todas as posicoes.") and doSendMagicEffect(getThingPos(cid), 2) end local guild1 = getPlayerGuildId(getTopCreature(config.positions[1][1]).uid) if getPlayerGuildId(creature) ~= guild1 then return doPlayerSendCancel(cid, "Algum player nao e da guild correta.") and doSendMagicEffect(getThingPos(cid), 2) end if getPlayerMoney(creature) < (config.money * 1000) then return doPlayerSendCancel(cid, "Algum player nao tem "..config.money.."k.") and doSendMagicEffect(getThingPos(cid), 2) end end -- Checando posições 2 for i = 1, #config.positions2 do local creature = getTopCreature(config.positions2[i][1]).uid if not isPlayer(creature) then return doPlayerSendCancel(cid, "Not enough players.") and doSendMagicEffect(getThingPos(cid), 2) end local guild2 = getPlayerGuildId(getTopCreature(config.positions2[1][1]).uid) if getPlayerGuildId(creature) ~= guild2 then return doPlayerSendCancel(cid, "Algum player nao e da guild correta.") and doSendMagicEffect(getThingPos(cid), 2) end if getPlayerMoney(creature) < (config.money * 1000) then return doPlayerSendCancel(cid, "Algum player nao tem "..config.money.."k.") and doSendMagicEffect(getThingPos(cid), 2) end end doBroadcastMessage("Começou uma batalha entre ".. getPlayerGuildName(getTopCreature(config.positions[1][1].uid) .." e ".. getPlayerGuildName(getTopCreature(config.positions2[1][1]).uid) ..".") -- Teleportando posições 1 for i = 1, #config.positions do local creature = getTopCreature(config.positions[i][1]).uid doTeleportThing(creature, config.positions[i][2]) doPlayerSendTextMessage(creature, 27, "You started the quest.") doSendMagicEffect(getThingPos(creature), 33) doPlayerRemoveMoney(creature, (config.money * 1000)) setPlayerStorageValue(creature, config.storageTime1, 1) end -- Teleportando posições 2 for i = 1, #config.positions2 do local creature = getTopCreature(config.positions2[i][1]).uid doTeleportThing(creature, config.positions2[i][2]) doPlayerSendTextMessage(creature, 27, "You started the quest.") doSendMagicEffect(getThingPos(creature), 33) doPlayerRemoveMoney(creature, (config.money * 1000)) setPlayerStorageValue(creature, config.storageTime2, 1) end return true end
  25. luanluciano93's post in (Resolvido)Addon doll/ Mount doll TFS 1.0 ot 10.76 (HELP) was marked as the answer   
    Qual sua dúvida em adicionar o addon/mount no script?

Informação Importante

Confirmação de Termo