Ir para conteúdo

Fir3element

Conde
  • Total de itens

    998
  • Registro em

  • Última visita

  • Dias Ganhos

    3

Tudo que Fir3element postou

  1. Remover o salt quer dizer que você pode usar Account Manager + Gesior juntos. Se o Account Manager estiver desabilitado, vai funcionar só o Gesior.
  2. item.cpp s << "speed " << std::showpos << (int32_t)(it.abilities.speed / 2) << std::noshowpos; Tira o " / 2"
  3. Tenta isso: uint8_t items[] = {2148, 2152, 2160, 3976, 2599, 7636, 7635, 7634}; uint8_t n = 0; for (n; n < sizeof(items) / sizeof(uint8_t); n++) { if(item->getID() == items[n] && player->hasCondition(CONDITION_EXHAUST, 3)) { player->sendTextMessage(MSG_STATUS_SMALL, "Please wait a few seconds to move this item."); return false; } } if(Condition* condition = Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, 500, 0, false, 3)) player->addCondition(condition); In C and C++, the sizeof operator is the size in bytes of an object. Since an int is 4 bytes, sizeof(items) would be 20. The correct way is to divide by the sizeof(int) to get the number of items in the array.
  4. <item id="2197" subtype="3" chance="22000"/> --stone skin amulet
  5. Dinheiro. @tópico Melhor usar otc, ficar injetando essas dlls é um saco...
  6. http://www.xtibia.com/forum/topic/233074-dev-c-compilando-tfs-no-windows/
  7. 'override' não existe no seu GCC, tenta atualizar: sudo update-alternatives --remove-all gcc sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.9
  8. https://www.virustotal.com/pt/file/58cfb1df8c45a0f337921207955a08382c8c4ec8f4860abb944c3490970370fb/analysis/1431259253/ 7/55, acho que tá limpo
  9. Na verdade vai sim aheueahu DROP TABLE IF EXISTS `account_viplist`; O que aconteceria se eu executasse a query da tabela accounts e depois tentasse logar no otserv?
  10. compat.lua e luascript.cpp vai achar a maioria das funções ai
  11. if getPlayerLevel(cid) >= 20 and getPlayerLevel(cid) < 50 then Se o player for maior ou a igual 20 e menor que 50...
  12. executa o update/upgrade e tenta instalar a crypto
  13. http://www.xtibia.com/forum/topic/219944-1010-the-forgotten-server-037/
  14. Tu pode fazer assim pra diminuir: for i = 1, 7 do if skillplayer.vocation[i] < skillminimo.vocation[i] then doPlayerAddSkill(cid, skill_axe, skillminimo.vocation.[i] - skillplayer[i]) end end E "getplayerskilllevel" tem que ser "getPlayerSkillLevel". Faltou um "then" nos "if" também. Acho que "[1, 5]" não vai funcionar, tem que ser só um valor ([1]).
  15. Essas dlls fazem parte do Visual C++ Redistributable Package, geralmente no windows update já tem ele. https://www.microsoft.com/en-us/download/details.aspx?id=40784
  16. Precisaria adicionar todas as features novas (e mudar algumas). Exemplo: montarias, inbox, market, remover o sistema de report, etc.
  17. Nome: Sistema de reset Versão testada: TFS 0.3.6pl1 / 0.4 / 0.3.7 Créditos: fireelement Imagem: Vá em data/talkactions/talkactions.xml e adicione essa tag: <talkaction words="!reset;/reset" event="script" value="reset.lua"/> Agora vá em data/talkactions/scripts/ e crie um arquivo com o nome reset.lua e cole isso nele: local config = { backToLevel = 8, redskull = false, -- need to be without redskull to reset? battle = true, -- need to be without battle to reset? pz = false, -- need to be in protect zone to reset? stages = { {resets = 4, level = 350, premium = 330}, {resets = 9, level = 355, premium = 340}, {resets = 14, level = 360, premium = 355}, {resets = 19, level = 365, premium = 360}, {resets = 24, level = 380, premium = 370}, {resets = 29, level = 390, premium = 380}, {resets = 34, level = 410, premium = 400}, {resets = 39, level = 430, premium = 420}, {resets = 44, level = 450, premium = 440}, {resets = 49, level = 480, premium = 470}, {resets = 54, level = 510, premium = 500}, {resets = 59, level = 550, premium = 540}, {resets = 64, level = 590, premium = 580}, {resets = 69, level = 630, premium = 620}, {resets = 74, level = 680, premium = 670}, {resets = 79, level = 730, premium = 720}, {resets = 84, level = 780, premium = 770}, {resets = 89, level = 860, premium = 840}, {resets = 94, level = 930, premium = 910}, {resets = 2^1024, level = 1010, premium = 990} } } function onSay(cid, words, param) local function getPlayerResets(cid) local resets = getPlayerStorageValue(cid, 500) return resets < 0 and 0 or resets end local function doPlayerAddResets(cid, count) setPlayerStorageValue(cid, 500, getPlayerResets(cid) + count) end if config.redskull and getCreatureSkullType(cid) == 4 then return doPlayerSendCancel(cid, "You need to be without red skull to reset.") elseif config.pz and not getTilePzInfo(getCreaturePosition(cid)) then return doPlayerSendCancel(cid, "You need to be in protection zone to reset.") elseif config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then return doPlayerSendCancel(cid, "You need to be without battle to reset.") end local resetLevel = 0 for x, y in ipairs(config.stages) do if getPlayerResets(cid) <= y.resets then resetLevel = isPremium(cid) and y.premium or y.level break end end if getPlayerLevel(cid) < resetLevel then return doPlayerSendCancel(cid, "You need level " .. resetLevel .. " or more to reset.") end doPlayerAddResets(cid, 1) local healthMax, manaMax = getCreatureMaxHealth(cid), getCreatureMaxMana(cid) doPlayerAddLevel(cid, -(getPlayerLevel(cid) - config.backToLevel)) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Now you have " .. getPlayerResets(cid) .. " " .. (getPlayerResets(cid) == 1 and "reset" or "resets") .. ".") return true end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...