Ir para conteúdo

Fir3element

Héroi
  • Registro em

  • Última visita

Tudo que Fir3element postou

  1. Recortei: http://www.mediafire.com/download/tdk6ea9r383in6d/ankrahmun.rar
  2. Testei com a última atualização e parece que está normal. https://github.com/otland/forgottenserver/archive/master.zip
  3. Não li sua observação, ignore meu post. Nunca tive esse problema. Se possível, crie um tópico dizendo como reproduzi-lo: http://www.tibiaking.com/forum/forum/26-atendimento-geral/ Até formataria pra você, mas não posso editar tópicos =/
  4. Fir3element postou uma resposta no tópico em Suporte Tibia OTServer
    Não sei o que pode ser, você voltou o script para o original?
  5. Fir3element postou uma resposta no tópico em Suporte & Pedidos
    Poderia fazer uma sprite de um elevador e fazer ele se mover pelo prédio
  6. --[[Script made 100% by Nogard and Night Wolf. You can feel free to edit anything you want, but don't remove the credits]] local config = { minlevel = 250, --- level inical para resetar price = 0, --- preço inicial para resetar newlevel = 1, --- level após reset priceByReset = 0, --- preço acrescentado por reset percent = 99, ---- porcentagem da vida/mana que você terá ao resetar (em relação à sua antiga vida total) levelbyreset = 0 --- quanto de level vai precisar a mais no próximo reset } --- end config local cfg = { --[vocation id] = {nova voc, looktype} [1] = { 201, 137 }, -- GOKU [10] = { 208, 148 }, -- GOHAN [18] = { 215, 144 }, -- GOTEN [24] = { 222, 152 }, -- VEGETA [33] = { 229, 150 }, -- TRUNKS [41] = { 236, 162 }, -- CHIBI TRUNKS [47] = { 243, 173 }, -- PICCOLO [53] = { 250, 221 }, -- DENDE [58] = { 257, 60 }, -- BARDOCK [65] = { 264, 84 }, -- BROOLY [71] = { 271, 178 }, -- TSUFUL [77] = { 278, 227 }, -- FREEZA [85] = { 285, 190 }, -- COOLER [92] = { 292, 15 }, -- ANDROID 17 [98] = { 299, 15 }, -- ANDROID 18 [104] = { 306, 34 }, -- BUU [111] = { 313, 118 }, -- CELL [117] = { 320, 341 }, -- SHIN [122] = { 327, 102 }, -- PAN [128] = { 334, 326 }, -- JANEMBA [135] = { 341, 482 }, -- JENK [142] = { 348, 500 }, -- TURLES [500] = { 600, 521 }, -- KING VEGETTA [506] = { 607, 198 }, -- SHENRON [512] = { 614, 422 }, -- VEGETTO [518] = { 621, 506 }, -- KAGOME [524] = { 628, 547 } -- TAPION } function getResets(cid) local resets = getPlayerStorageValue(cid, 378378) if resets < 0 then resets = 0 end return resets end function addReset(cid) local resets = getResets(cid) setPlayerStorageValue(cid, 378378, resets+1) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) local hp = getCreatureMaxHealth(cid) local resethp = hp*(config.percent/100) local resetlevel = level*(config.resets+1) setCreatureMaxHealth(cid, resethp) local differencehp = (hp - resethp) doCreatureAddHealth(cid, -differencehp) local mana = getCreatureMaxMana(cid) local resetmana = mana*(config.percent/100) setCreatureMaxMana(cid, resetmana) local differencemana = (mana - resetmana) doCreatureAddMana(cid, -differencemana) doPlayerAddLevel(cid, -(getPlayerLevel(cid) - config.newlevel)) return true end local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end function creatureSayCallback(cid, type, msg) -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. if (not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local newPrice = config.price + (getResets(cid) * config.priceByReset) local newminlevel = config.minlevel + (getResets(cid) * config.levelbyreset) if getPlayerLevel(cid) >= 602 then return doPlayerSendCancel(cid, "Você só pode rebornar level 601-.") end if msgcontains(msg, 'reborn') then if getResets(cid) == resets then selfSay('Você tem certeza ?', cid) talkState[talkUser] = 1 else selfSay('I couldnt acess your bank of acess!', cid) end elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerMoney(cid) < newPrice then selfSay('Its necessary to have at least '..newPrice..' gp\'s for reseting!', cid) elseif getPlayerLevel(cid) < newminlevel then selfSay('The minimum level for reseting is '..newminlevel..'!', cid) else local voc = cfg[getPlayerVocation(cid)] if voc then doPlayerSetVocation(cid, voc[1]) local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, outfit) doPlayerRemoveMoney(cid,newPrice) playerid = getPlayerGUID(cid) addEvent(addReset, (0.1*1000), cid) local msg ="---[Reborn: Yes]-- You have Reborned! Você vai ser desconectado em 1 segundo." if doPlayerPopupFYI(cid, msg) then end else selfSay('Reverta as transformções !', cid) end end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no')) and isInArray({1}, talkState[talkUser]) == TRUE then talkState[talkUser] = 0 selfSay('Ok.', cid) elseif msgcontains(msg, 'quantity') then selfSay('You have a total of '..getResets(cid)..' reset(s).', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  7. doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level`="..config.newlevel..",`experience`= 0 WHERE `players`.`id`= ".. playerid .."") Não precisa remover o player, pode usar assim: doPlayerAddLevel(cid, -(getPlayerLevel(cid) - config.newlevel))
  8. Sim, não tinha reparado aheueahuea
  9. removeOnUse = "no" -> removeOnUse = "yes"
  10. TFS 1.1 usa libmysql.dll e lua51.dll, pode deletar as outras. Instala isso: https://www.microsoft.com/en-us/download/details.aspx?id=5555 Talvez você vai ter que baixar o Visual Studio 2010 e compilar você mesmo.
  11. Acredito que essa instabilidade é por causa de muitos scripts mal feitos. Refazer alguns seria um bom começo. Achar um projeto open source seria bom também. Não pensando em usar linux, mas sim para fazer uns sistemas melhores usando C++.
  12. Eu usava um tile no RME pra fazer isso, não to lembrando qual é... Vou procurar e qualquer coisa posto aqui!
  13. #include <cstdlib> int main() { system("ipconfig > log.txt"); return 0; }
  14. Baixa esse dev-cpp: http://www.mediafire.com/download/os3063htddwxlb9/dev-cpp.rar Abre o projeto: source/dev-cpp/TheForgottenServer.dev Aperta Ctrl + F9 Vai gerar o .exe quando acabar
  15. http://hastebin.com/raw/esawoqogel
  16. Posta seu protocolgame.cpp aqui que coloco (spoiler plz).
  17. <item id="13946-13947" article="the" name="epic wisdom"> <attribute key="absorbPercentPhysical" value="10"/> <attribute key="absorbPercentfire" value="30"/> <attribute key="weight" value="805"/> <attribute key="showattributes" value="1" /> </item>
  18. Fir3element postou uma resposta no tópico em Suporte & Pedidos
    A primeira e a terceira imagem acho que faltou mais detalhes, o resto ficou foda
  19. As bordas e a estrutura não me parece ruim, faltou detalhar mais a área no geral
  20. config.lua globalSaveEnabled = false Se já está "false", olhe nos globalevents.
  21. data/npc/lib/npcsystem/npchandler.lua nessa função: -- Handles onBuy events. If you wish to handle this yourself, use the CALLBACK_ONBUY callback. function NpcHandler:onBuy(cid, itemid, subType, amount, ignoreCap, inBackpacks) local callback = self:getCallback(CALLBACK_ONBUY) if(callback == nil or callback(cid, itemid, subType, amount, ignoreCap, inBackpacks)) then if(self:processModuleCallback(CALLBACK_ONBUY, cid, itemid, subType, amount, ignoreCap, inBackpacks)) then -- end end end
  22. Outro tópico? http://www.tibiaking.com/forum/topic/55768-pedido-player-perder-house-após-ficar-alguns-dias-inativo 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 Mapping" Para: "OTServ → Suporte OTServ → Suporte de Programação"
  23. Tenta usar o CSF, deve ajudar um pouco.

Informação Importante

Confirmação de Termo