Ir para conteúdo

Celulose

Membro
  • Registro em

  • Última visita

Tudo que Celulose postou

  1. <defense name="healing" interval="9000" chance="11" min="700" max="999">
  2. https://tibiaking.com/forums/topic/73679-036-fun%C3%A7%C3%A3o-doplayeropenchannel/
  3. isso é uma dll, você está no char de adm né? geralmente isso que acontece.
  4. @Guilherme HP transformar.lua sobre o vocation em fromvoc você deve deixar igual está em vocation id=" exemplo vocation id="893" deixa fromvoc="893" antes era vocation id="893" / fromvoc="892"
  5. @Guilherme HP ---------- Darui ----------- [885] = { 50, 886, 2011, 13}, [886] = { 100, 887, 2012, 13}, [887] = { 150, 888, 2013, 13}, [888] = { 200, 889, 2014, 13}, [889] = { 250, 890, 2015, 13}, [890] = { 300, 891, 2016, 13}, [891] = { 400, 892, 2017, 13}, [892] = { 500, 893, 2018, 13} unica coisa errada é a virgula nesse script e questão do <vocation id="893" name="Darui" description="Darui" needpremium="0" gaincap="15" gainhp="380" gainmana="380" gainhpticks="2" gainhpamount="100" gainmanaticks="2" gainmanaamount="100" manamultiplier="1.1" attackspeed="500" soulmax="250" gainsoulticks="15" fromvoc="892"> porque seu fromvoc é sempre 1 antes ?
  6. a 2 anos atrás quando usava "TFS" Acontecia isso comigo não faço minima ideia como eu corrigi na época. Mais isso ocorre dessa maneira aqui. Quando tu usar um comando, npc, ou algo que te da skill, ele buga fazendo seu skill ir ao um valor bem grande exemplo: você vai ao um npc e fala hi skill sword yes, tu compra 10 de skill de sword ele buga em algumas tfs .... para tu corrigir isso de cair é só limitar um valor em cada skill e assim quando passa-se esse valor o char não da dano em nada . agora para corrigir isso de aumentar a skill e ir valores alto não sei te ajudar ;/ PS : Isso de mudar de vocation é por causa ta caindo o servidor, vocÊ está dando hit muito alto assim cai o game. se fazer oque falei de limitar um exemplo 250 não vai cair o game pois não vai da dano.
  7. não tem a db com nome "wodbo"
  8. setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_BLUE) exemplo : local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_BLUE) setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 38) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 59) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -250.0, 0, -275.0, 0) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1 } addEvent(onCastSpell1, 0, parameters) return true end
  9. @cabrera2608 delay...
  10. Pra quem quiser ativar pela config.lua bool Game::playerMove(uint32_t playerId, Direction dir) { Player* player = getPlayerByID(playerId); if(!player || player->isRemoved()) return false; player->setIdleTime(0); if(player->getNoMove()) { player->sendCancelWalk(); return false; } std::list<Direction> dirs; dirs.push_back(dir); if(g_config.getBool(ConfigManager::PUSH_CRUZADO)) { player->startAutoWalk(dirs); } else { player->setNextWalkActionTask(NULL); player->startAutoWalk(dirs); } return true; } configmanager.cpp m_confBool[PUSH_CRUZADO] = getGlobalBool("PushCruzado", true); configmanager.h PUSH_CRUZADO, Conf.lua PushCruzado = true @WooX quiser atualizar bb
  11. SET GLOBAL max_allowed_packet = 16776192; @zLockey9 ALTER TABLE `accounts` ADD `creation` INT NOT NULL DEFAULT 0 AFTER `email`;
  12. Mysql> ALTER TABLE `killers` ADD `war` INT(11) NOT NULL DEFAULT 0;
  13. Boa noite Posta o script.. ou você mesmo pode fazer isso setando uma storage igual nós 2 script..
  14. --[[ Script by Bruno Minervino para o Tibia King Caso for postar, colocar os créditos ]] local config = { tempo = 10, --tempo em segundos mensagem = { texto = "[TOP]", --não use mais de 9 caracteres efeito = TEXTCOLOR_LIGHTBLUE --efeito para a função doSendAnimatedText }, efeito = 30, --efeito da função doSendMagicEffect globalstr = 5687 -- uma global storage qualquer q esteje vazia } --[[ Não mexa em nada abaixo ]] local topPlayer = getGlobalStorageValue(config.globalstr) > 0 and getGlobalStorageValue(config.globalstr) or 0 function onLogin(cid) local query = db.getResult("SELECT `id`, `name`, `level` FROM `players` WHERE `group_id` < 2 ORDER BY `level` DESC LIMIT 13") if (query:getID() ~= -1) then local pid = query:getDataString("id") local name = query:getDataString("name") if getPlayerName(cid) == name then if topPlayer ~= getPlayerID(cid) then topPlayer = getPlayerID(cid) end setGlobalStorageValue(config.globalstr, pid) TopEffect(cid) end end registerCreatureEvent(cid, "CheckTop") return true end function onAdvance(cid, skill, oldlevel, newlevel) if skill == 8 then local query = db.getResult("SELECT `id`, `name`, `level` FROM `players` WHERE `group_id` < 2 ORDER BY `level` DESC LIMIT 13") if (query:getID() ~= -1) then local level = tonumber(query:getDataString("level")) if level < newlevel and topPlayer ~= getPlayerID(cid) then doBroadcastMessage("O jogador " .. getPlayerName(cid) .. " tornou-se o novo Top Level. Parabens!", 22) topPlayer = getPlayerID(cid) doSaveServer() setGlobalStorageValue(config.globalstr, getPlayerID(cid)) TopEffect(cid) end end end return true end function TopEffect(cid) if not isPlayer(cid) then return true end if topPlayer == getPlayerID(cid) then doSendAnimatedText(getCreaturePosition(cid), config.mensagem.texto, config.mensagem.efeito) doSendMagicEffect(getCreaturePosition(cid), config.efeito) addEvent(TopEffect, config.tempo * 1000, cid) end end function getPlayerNameById(id) local query = db.getResult("SELECT `name` FROM `players` WHERE `id` = " .. db.escapeString(id)) if query:getID() ~= -1 then return query:getDataString("name") end return 0 end function getPlayerIdByName(name) local query = db.getResult("SELECT `id` FROM `players` WHERE `name` = " .. db.escapeString(name)) if query:getID() ~= -1 then return tonumber(query:getDataString("id")) end return 0 end function getPlayerID(cid) return getPlayerIdByName(getPlayerName(cid)) end
  15. @ITALOx posso @ITALOx manda ip e porta e se quer com effect
  16. Qual versão do client ? fala o ip e a porta que crio aqui, quer ele extended ?
  17. @kido omega local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0) local area = createCombatArea({ {0, 0, 0}, {0, 3, 0}, {0, 0, 0} }) setCombatArea(combat, area) function onUseWeapon(cid, var) local target = getThingPosition(getCreatureTarget(cid)) local pos = {x=target.x+0, y=target.y+0, z=target.z+0} doSendMagicEffect(pos, 136) local NumberOfHits = 1 local value = getCreatureMaxMana(target2)*0.20 -- 0.20 representa a 20% da mana total do seu target local restoremana = "false" for x=1,NumberOfHits do if isPlayer(target) then doCreatureAddMana(target, -value) if restoremana == "true" then doCreatureAddMana(cid, value) end end end return doCombat(cid, combat, var) end
  18. @kido omega local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0) local area = createCombatArea({ {0, 0, 0}, {0, 3, 0}, {0, 0, 0} }) setCombatArea(combat, area) function onUseWeapon(cid, var) local target = getThingPosition(getCreatureTarget(cid)) local pos = {x=target.x+0, y=target.y+0, z=target.z+0} doSendMagicEffect(pos, 136) local target2 = getCreatureTarget(cid) local NumberOfHits = 1 local value = getCreatureMaxMana(target2)*0.20 -- 0.20 representa a 20% da mana total do seu target local restoremana = "false" if isMonster(target2)then return false end for x=1,NumberOfHits do if isPlayer(target) then doCreatureAddMana(target, -value) if restoremana == "true" then doCreatureAddMana(cid, value) end end end return doCombat(cid, combat, var) end
  19. Celulose postou uma resposta no tópico em Suporte Tibia OTServer
    timeBetweenActions = 0 timeBetweenExActions = 200 timeBetweenCustomActions = 0 porém, com essa mudança aconselho você seta uma storage em cada actions
  20. abre o phpmyadmin e faz o procedimento caso usa sql mesma coisa
  21. SET GLOBAL max_allowed_packet = 16776192; adiciona na database em SQL
  22. @bpm91 seria um tempo para todos ? ou seria um tempo por player ?
  23. function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) >= 1 then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHLEVEL) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true end if getVocationInfo(getPlayerVocation(cid)).name == "Madara" then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ja é um madara!") else doPlayerSetVocation(cid, 210) doCreatureSay(cid, "Madara Owns!!", 19) doSendMagicEffect(getCreaturePosition(cid), 224) doCreatureChangeOutfit(cid, {lookType = 368}) if getPlayerStorageValue(cid, 5) < 1 then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+100) setCreatureMaxMana(cid, getCreatureMaxMana(cid)+100) setPlayerStorageValue(cid, 5, 1) end setPlayerStorageValue(cid, 16200, 1) setPlayerStorageValue(cid, 300, (getPlayerVocation(cid))) doRemoveItem(item.uid) end return TRUE end

Informação Importante

Confirmação de Termo