Ir para conteúdo

gbik

Membro
  • Registro em

  • Última visita

Tudo que gbik postou

  1. Então lobo, no seu tá addEvent ainda e se eu usar a função doCreateMonster na getCreaturePosition(target), ele meio que não nasce no lugar se tiver alguem ou uma magic wall em cima, meio que buga e nasce por volta. Como não entendo muito, seria no caso um statschange checando quando o monstro tiver com hp 0, não desaparecesse, e sim healasse completamente.
  2. Então... porque addEvent da tempo dos players segurarem dash ou tacar wall no sqm que o bixo vai nascer , bugando e nascendo em posição errada ou nascendo vários. Oque eu quero é tipo uma checagem quando o hp do monster tá 0 e healasse ele completamente sem o corpo cair no chão, ou seja um monstro que não morre, apenas quando fica com hp 0 se heala full.
  3. gbik respondeu ao post em um tópico de Magalhaes92 em Suporte Tibia OTServer
    @mkmmkm não é possivel deixar os dois não, infelizmente :D
  4. gbik respondeu ao post em um tópico de Magalhaes92 em Suporte Tibia OTServer
    @mkmmkm marca como melhor resposta se solucionou seu problema :D.
  5. gbik respondeu ao post em um tópico de Magalhaes92 em Suporte Tibia OTServer
    Qual sua tfs?, usa esse script aqui e vê se resolve. local config = { removeOnUse = "no", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 2, health = {100, 210}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 1, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 710}, level = 1, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {1980, 1980}, level = 1, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {200, 350}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {110, 210}, level = 1, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {1700, 1700}, level = 1, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {1380, 1380}, mana = {450, 450}, level = 1, vocations = {3, 7}, vocStr = "paladins"} -- great spirit potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return true end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return true end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end if isInArray({8704, 7618, 7588, 7591, 8473}, item.itemid) then doSendAnimatedText(getPlayerPosition(cid), "Ahhhh...", 180) elseif isInArray({7620, 7589, 7590, 8472}, item.itemid) then doSendAnimatedText(getPlayerPosition(cid), "Ahhhh...", 17) end doSendMagicEffect(getThingPos(itemEx.uid), 30) if realAnimation then for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return true end end
  6. Olá membros do Tibiaking, necessito de um script que um monster quando morra nasça o mais rapido possivel, sem usar addEvent(function() doSummonCreature(monstername, monsterpos, true, true) end, 1) , e usando a função function onKill(cid, target, lastHit) explicando melhor, mesma coisa que um onKill retornando false e adicionando o HP do monster de volta. Ou seja um monstro que você mata e renasça instantaneamente.
  7. Só compilando então. Qual a sua tfs? se for 0.3.7 ou otxserver faça o seguinte. Abra o arquivo creature.cpp e procure a função void Creature::onGainExperience(double& gainExp, Creature* target, bool multiplied) dentro da função ache isso player->sendStatsMessage(MSG_EXPERIENCE, ss.str(), targetPos, details); e troque por isso /*player->sendStatsMessage(MSG_EXPERIENCE, ss.str(), targetPos, details);*/ compila e testa. Se sua tfs for 0.4 abra o mesmo arquivo creature.cpp e procura pela função void Creature::onGainExperience(double& gainExp, bool fromMonster, bool multiplied) dentro dela vá até g_game.addAnimatedText(getPosition(), (uint8_t)color, ss.str()); e troque por /*g_game.addAnimatedText(getPosition(), (uint8_t)color, ss.str());*/ Pronto. Caso tenha te ajudado marque como melhor resposta
  8. Se nenhum tutorial funciona, é porque sua source deve ter algo de errado ou está faltando bibliotecas necessárias para compilação. Sim, para mudar os arquivos e necessário a compilaçao novamente.
  9. Então cara, a respeito da compilaçao em linux oque nao falta é tutorial ai. Em questão dos players se atravessarem espero que isso te ajude. Vá em player.cpp e procure por: troque por:
  10. Tenta mudar isso no seu config.lua , nao testei. gainExperienceColor = 215 para gainExperienceColor = 0
  11. A mensagem que está dando e que o player que voce tentou banir já está banido, caso não consiga realmente tente mudar de distro (executavel) do seu ot e teste, caso funcione o problema é na source.
  12. Então terá que ser um piso no castle e outro no barco, com actions ids diferente, um piso para adiquirir a storage que vai ficar no final do castle, e o outro pra entrar no barco e ir pras hunts ne isso?
  13. Se for no mesmo tile sim, se for em tiles diferentes, não, por exemplo, se for alguma quest que la voce pisa e ganha o acesso ao barco por 5 dias, e o tile do barco seja no templo, é diferente. 15001 no tile da quest, 15002 no tile do barco.
  14. Tenta assim, pelo que eu entendi é isso. function onStepIn(cid, item, position, fromPosition) local daysvalue = 5 * 24 * 60 * 60 if getPlayerStorageValue(cid, 1233211) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você agora possui acesso ao barco por 5 dias.") setPlayerStorageValue(cid, 1233211, os.time()+daysvalue) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você já possui acesso ao barco.") doTeleportThing(cid, fromPosition, false) end return TRUE end
  15. function onUse(cid, item, frompos, item2, topos) if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then doTeleportThing(cid, {x=236, y=179, z=6}) else doPlayerSendCancel(cid, "Apenas Druids podem passar aqui.") return true end end
  16. gbik respondeu ao post em um tópico de Baned em Suporte Tibia OTServer
    Isso se tira na source do seu servidor, em game.cpp procure por: sprintf(buffer, "-%d", damage); e troque por: sprintf(buffer, "%d", damage);
  17. Se voce ja modificou config.lua, data/lib e data/npc/lib, os erros que dão sao de script que não sao compativeis com algumas funções da otxserver, tente mudar os que dao erro, creio eu que de varios erros em talkactions, os que derem erro voce troca pelo datapack da otxserver, www.github.com/mattyx14
  18. Se seu servidor está aberto em sqlite, nao sei te dizer a query, mas caso seja sqlite, vai em globalevents.xml e remove a tag do shop. Caso seja mysql faça oque o @sirarcken disse. :D
  19. Estou usando um sistema de vip por storage que muda o nome para [VIP] Fulano, porem tem possibilidades de criar um character com o mesmo nome Fulano. Depois que uso o item com Fulano para adquirir o nome [VIP] possuo o seguinte erro de duplicate name. http://prntscr.com/9psr3t mysql_real_query(): UPDATE `players` SET `name` = '[VIP] Diego' WHERE `id` = 40; - MYSQL ERROR: Duplicate entry '[VIP] Diego-0' for key 'name' (1062) Enfim, queria saber como eu faço pra bloquear no gesior o seguinte. Já existe: [VIP] Fulano Não da pra criar: Fulano Agradecido.
  20. @Lauromfc1992, vai no menu iniciar e em pesquisar escreve "Alterar configurações" , clica em "alterar configurações do usuário", abaixa toda a barrinha e reinicia seu computador que irá funcionar
  21. gbik respondeu ao post em um tópico de gbik em Mapas de Tibia
    Pegue o items.otb e o items.xml da pasta data/items e cole na pasta C:/Arquivos de Programas/Remeres Map Editor/data/860 Em questão das vip se eu nao me engano eu coloquei pra quando terminar a quest vip 3 entrar na vip 5 e nao na 4 pq eu fechei a 4.
  22. Esse erro ai, é so voce executar a query na database. SET GLOBAL max_allowed_packet = 16776192;
  23. Esses erros da distro, um é em movements.xml, tem alguns itens com slot de "helmet" troca pra "head". Outro é em items.xml, deve ter key="blocksolid". E o outro erro é duplicate em actions.xml
  24. gbik respondeu ao post em um tópico de gbik em Suporte Tibia OTServer
    Saquei, mas nao sei como fazer isso ainda aekopaekpok, mas eu entendi oq vc quis dizer xD

Informação Importante

Confirmação de Termo