Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Tudo que Fir3element postou

  1. Seria útil talvez só em NPCs, mas se alguém trapar o npc ele vai parar de andar tbm neh
  2. http://www.microsoft.com/en-us/download/details.aspx?id=40784
  3. @edit a sua retorna as possíveis pos e a dele já anda neh... faz a mesma coisa que a do mock?
  4. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    dei uma olhada aqui no mounts.xml e da pra adicionar a tag paralyze, tenta ver o q ela faz ai, to sem ot p testar aqui <mount id="1" clientId="368" name="Widow Queen" speed="20" premium="yes" paralyze="???" /> suppress="paralyze" sla, é algo assim
  5. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    nem sei o q é então, testei aqui e funcionou normal
  6. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    tu removeu a paralyze do spells.xml?
  7. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.9, 40, -0.9, 0) function onUse(cid, item, fromPosition, itemEx, toPosition) if (not (isDruid(cid) or isSorcerer(cid))) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your vocation cannot use this rune.") return FALSE end if (getPlayerMana(cid) < 700) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough mana points.") return FALSE end if (not (isPlayer(itemEx.uid))) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may use paralyze only on players.") return FALSE end if(getTilePzInfo(getCreaturePosition(cid)) == TRUE or getTilePzInfo(getCreaturePosition(itemEx.uid)) == TRUE) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't paralyze in protection zone.") return FALSE end doAddCondition(itemEx.uid, condition) doPlayerAddMana(cid, -700) if(item.type > 1) then doTransformItem(item.uid, item.itemid, item.type-1) else doRemoveItem(item.uid) end return true end
  8. tava olhando no lugar errado aehuaehue enfim, nos vps não seria melhor informar o processador? ram/hd é bem barato hj em dia, o q conta é o processador haha
  9. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    tenta esse script nas actions, n esquece de remover a paralyze das spells se der certo eu coloco o bagui de mount <action itemid="2278" event="script" value="paralyze.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) if (not (isDruid(cid) or isSorcerer(cid))) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your vocation cannot use this rune.") return FALSE end if (getPlayerMana(cid) < 700) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough mana points.") return FALSE end if (not (isPlayer(itemEx.uid))) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may use paralyze only on players.") return FALSE end if(getTilePzInfo(getCreaturePosition(cid)) == TRUE or getTilePzInfo(getCreaturePosition(itemEx.uid)) == TRUE) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't paralyze in protection zone.") return FALSE end doAddCondition(itemEx.uid, condition) doPlayerAddMana(cid, -700) if(item.type > 1) then doTransformItem(item.uid, item.itemid, item.type-1) else doRemoveItem(item.uid) end return true end
  10. Pra quem quiser o sistema com stages: local config = { backToLevel = 8, redskull = false, battle = true, pz = false, stages = { {resets = 4, level = 350}, {resets = 9, level = 355}, {resets = 14, level = 360}, {resets = 19, level = 365}, {resets = 24, level = 380}, {resets = 29, level = 390}, {resets = 34, level = 410}, {resets = 39, level = 430}, {resets = 44, level = 450} } } function onSay(cid, words, param) if config.redskull and getCreatureSkullType(cid) == 4 then return doPlayerSendCancel(cid, "Voce precisa estar sem red skull para resetar.") elseif config.pz and not getTilePzInfo(getCreaturePosition(cid)) then return doPlayerSendCancel(cid, "Voce precisa estar em protection zone para resetar.") elseif config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then return doPlayerSendCancel(cid, "Voce precisa estar sem battle para resetar.") end local resetLevel = 0 for x, y in ipairs(config.stages) do if getResets(cid) <= y.resets then resetLevel = y.level break end end if getPlayerLevel(cid) < resetLevel then return doPlayerSendCancel(cid, "Voce precisa do level " .. resetLevel .. " ou mais para resetar.") end setResets(cid, 1) local guid = getPlayerGUID(cid) doRemoveCreature(cid, true) db.executeQuery("UPDATE `players` SET `level` = " .. config.backToLevel .. ", `experience` = " .. getExperienceForLevel(config.backToLevel) .. " WHERE `id` = " .. guid) return true end
  11. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    visual studio 2010-2013 + libs + includes tem tutorial aqui no tk...
  12. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    uint16 vai até 65,535 Tem que modificar o client, só na source não adianta nada
  13. OBS.: as dlls vem junto com as libs usadas pra compilar só falta aprender a escrever
  14. chmod +x ./autogen.sh corrige isso ai, autogen.sh é pra tfs 0.3.6 rm *.o rm theforgottenserver chmod +x ./build.sh ./build.sh
  15. só diz quanto tem de espaço no hd e seu site tem uns bugs parça
  16. debian 8 é versão de teste, o último release foi o 7.5 eu acho
  17. Tudo que vc faz em lua da pra fazer na source, mas é bem mais fácil fazer scripts em lua do q c++ (p mim q sou leigo) Pena q nos tfs antigos é bem limitado o uso da lua, hj em dia no tfs 1.1 ta bem melhor
  18. Serve para somar os números dentro de uma tabela... @tópico Outro jeito de fazer: function table.plus(array) local n = 0 for a = 1, #array do if tonumber(array[a]) then n = n + array[a] end end return n end
  19. generateSerial() Tava sem nada pra fazer, dai fiz essa função... ela retorna um serial key. Exemplo: F2EIA-VFZW6-8SNWR-TJ1MH-622O4 function generateSerial() local letters, str = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }, "" for a = 1, 5 do for b = 1, 5 do local rand = letters[math.random(#letters)] str = str .. rand end str = str .. "-" end local serial = string.gsub(string.reverse(str), "-", "", 1) return serial end isInvited(houseId, playerName) Tava precisando dessa função, ela retorna se o player ta invitado na casa ou não (true or false). Não sei porque eu tenho a impressão que existe uma função parecida com essa... function isInvited(houseId, playerName) if string.find(string.lower(getHouseAccessList(houseId, 0x100)), playerName) or string.find(string.lower(getHouseAccessList(houseId, 0x101)), playerName) then return true end return false end
  20. já tem umas 3 funções dessa, mas a do orochi ta melhor

Informação Importante

Confirmação de Termo