Ir para conteúdo

gbik

Membro
  • Registro em

  • Última visita

  1. joaovitorbk9 reagiu a uma resposta no tópico: [Duvida] Config.lua EncryptionPassword
  2. luisrsousa reagiu a uma resposta no tópico: (Resolvido)[AJUDA] Bem Simples - Script
  3. SWAT O MITO reagiu a uma resposta no tópico: [Link Quebrado] Baiakzik Editado
  4. 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.
  5. 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.
  6. gbik postou uma resposta no tópico em Suporte Tibia OTServer
    @mkmmkm não é possivel deixar os dois não, infelizmente :D
  7. gbik postou uma resposta no tópico em Suporte Tibia OTServer
    @mkmmkm marca como melhor resposta se solucionou seu problema :D.
  8. Magalhaes92 reagiu a uma resposta no tópico: COR DAS POTIONS
  9. gbik postou uma resposta no tópico 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
  10. 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.
  11. 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
  12. 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.
  13. 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:
  14. Tenta mudar isso no seu config.lua , nao testei. gainExperienceColor = 215 para gainExperienceColor = 0
  15. 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.
  16. gbik reagiu a uma resposta no tópico: Quest, item randomico.
  17. nicolas057 reagiu a uma resposta no tópico: [Link Quebrado] Baiakzik Editado
  18. gbik postou uma resposta no tópico em Suporte Tibia OTServer
    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?
  19. gbik postou uma resposta no tópico em Suporte Tibia OTServer
    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.
  20. gbik postou uma resposta no tópico em Suporte Tibia OTServer
    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

Informação Importante

Confirmação de Termo