Ir para conteúdo

Farathor

Membro
  • Registro em

  • Última visita

Tudo que Farathor postou

  1. Eu estou usando a OTX
  2. Pessoal, eu peguei uma source aqui de OTX só que ela tem um problema, quando você esta usando dash, invés do char ir andando lisinho sem travar, tipo, o char anda e para anda e para anda e para, vocês poderiam me informar onde fica a area em que eu possa mexer nisso? Em qual parte das sources é isso? Obrigado
  3. Duvido que alguém irá fazer de graça esse script pra você
  4. Galera, gostaria de saber se é possivel eu criar uma página php que mostre os dados da minha tabela mysq Nome da Tabela: castle_data campos para mostrar: date, guild_id, guild_damage se alguém puder me dar uma luz eu agradeço
  5. Galera, gostaria de saber como eu faço para por vídeos no gesior, ou se existe alguma pagina especifica para isso, poderiam me ajudar?
  6. Farathor postou uma resposta no tópico em Suporte Tibia OTServer
    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, 2160, 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(cid) 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
  7. Substituia: local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_SUBID, 20000) setConditionParam(exhaust, CONDITION_PARAM_TICKS, 20000) POR: local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_SUBID, 3) setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000) Me diga se funcionou
  8. Eu coloquei na LIB, mas quando executei o comando, só apareceu --5-- dentro do negocinho la
  9. Se eu colocar essa função dentro da biblioteca, funciona? Tem um problema, o Rank só atualiza quando o servidor salva
  10. Deu erro no distro [27/8/2016 15:29:7] mysql_real_query(): SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = 268440806 ORDER BY cast(value as INTEGER) DESC; - MYSQL ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) DESC' at line 1 (1064
  11. @wivison Poste o arquivo vocations.xml aqui ele fica em data/XML
  12. Olá, este é um script que adiciona todas as bless em jogadores que tiverem o level menor que o configurado em creaturescripts/scripts crie um arquivo chamado autoBless.lua e cole isso: local blessings = {1, 2, 3, 4, 5} local level = 150 function onLogin(cid) if getPlayerLevel(cid) <= level then for cont = 1, table.maxn(blessings) do doPlayerAddBlessing(cid, blessings[cont]) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você recebeu todas as blessings por causa que é nivel menor que "..level.."!") end end em creaturescripts.xml adicione a seguinte tag: <event type="death" name="autoBless" event="script" value="autoBless.lua"/> em creaturescripts/scripts no arquivo login.lua adicione a seguinte tag registerCreatureEvent(cid, "autoBless")
  13. Farathor postou uma resposta no tópico em Suporte Tibia OTServer
    @kauan13 Testa assim: <wand id="2181" level="50" mana="13" min="0" max="0" type="icetornado" event="function" value="default"> <!-- Terra Wand -->
  14. Estou criando um evento no meu servidor, eu sou iniciante em LUA e estou em duvida de como fazer um comando no qual ele sumonasse um monstro que eu falaria em uma area determinada Por exemplo: /evento wave, demon, 30
  15. Vou testar, mas vlw, ajudou muito
  16. Sou mapper, ja fiz varios trabalhos, caso esteja interessado, poste nesse mesmo tópico, q e passarei meus contatos
  17. A explicação é meio simples, seria um comando que listaria os 10 maiores jogadores com uma certa storage
  18. Manda a mensagem do erro
  19. otserv.cpp: In function ‘void otserv(StringVec, ServiceManager*)’: otserv.cpp:687:41: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(result = db->storeQuery(query.str())) ^ otserv.cpp:697:57: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(result_ = db->storeQuery(query_playeritems.str())) ^ otserv.cpp:716:62: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(result_ = db->storeQuery(query_playerdepotitems.str())) ^ otserv.cpp:735:55: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(result_ = db->storeQuery(query_tileitems.str()))
  20. Kaled, você tem Skype, Whatsapp ou Facebook para podermos conversar?

Informação Importante

Confirmação de Termo