Ir para conteúdo
US
Blazera 8.60
blazera.net
SOBRE O BLAZERA
Um fresh start em um servidor 8.6 clássico, com real map, focado na experiência raiz do Tibia. | Classic Real Map • Fresh Start • Client 8.6 • Old School Gameplay • Active Community
Inicia em: --
Participar

ViitinG

Membro
  • Registro em

  • Última visita

Solutions

  1. ViitinG's post in (Resolvido)[AJUDA] script de pot, pot nao fica finita was marked as the answer   
    Acho que deve ser alterado em "data/actions/scripts/liquids/potions.lua",mande o seu ou tente alterar para este :
    (se for alterar faça um backup do seu)
    local config = { removeOnUse = "yes", 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, 200}}, -- health potion [7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and paladins"}, -- strong health potion [7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8}, vocStr = "knights"}, -- great health potion [8473] = {empty = 7635, splash = 2, health = {750, 950}, level = 130, vocations = {4, 8}, vocStr = "knights"}, -- ultimate health potion [7620] = {empty = 7636, splash = 7, mana = {70, 150}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {130, 220}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {300, 350}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion [8472] = {empty = 7635, splash = 3, health = {200, 300}, mana = {150, 250}, level = 80, 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 doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return TRUE end doRemoveItem(item.uid, 0) doPlayerAddItem(cid, potion.empty, 0) doPlayerRemoveItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) doPlayerAddItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) return TRUE end
  2. ViitinG's post in (Resolvido)[AJUDA] Por Favor me ajudem com um bug de NPC was marked as the answer   
    Creio que isso é por causa do seu client,quando você está em trade com o NPC você pode comprar os itens por backpack clicando com o botão direito em cima do item e clicando em "Buy with backpack".É só desabilitar que vai comprar normalmente !
  3. ViitinG's post in (Resolvido)Piso que teleporta apenas quem tem a storage was marked as the answer   
    Eu entendi errado,desculpa !
    function onStepIn(cid, item, position, fromPosition) lugar = {x=1000, y=1000, z=7} if isPlayer(cid) then if getPlayerStorageValue(cid, 31561) >= 1 then doTeleportThing(cid, lugar) doPlayerSendTextMessage(cid, 25, "você foi encurralado!") end end return true end
  4. ViitinG's post in (Resolvido)Alguém pode me ajudar como erro database was marked as the answer   
    @elite1992 é extremamente proibído pedir suporte fora do fórum amigo,vou pedir para que retire o skype do tópico por gentileza ou terei que encaminhar o tópico para um moderador tomar alguma providência !
    Leia as regras do fórum : http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680#entry7680
     
  5. ViitinG's post in (Resolvido)Edit Tile teleport Premion account was marked as the answer   
    Decide né amigo,tu ta usando sistema de VIP ou é somente premium igual global ?
    Se for VIP o script não vai funcionar mesmo,preciso do storage da VIP pra trocar a função.
  6. ViitinG's post in (Resolvido)meu teleporte esta tudo desconfigurado !"pokemon" was marked as the answer   
    A configuração está aqui,agora é só você mudar o número para a town que você quer que leve o comando :
  7. ViitinG's post in (Resolvido)RME - Parede. was marked as the answer   
    É exatamente essa,todas as laterais dessa parede são brancas,se você parar para olhar na cidade de venore tem essas walls e você pode perceber que todas elas tem as laterias brancas.
    A própria lateral de baixo ja é branca :

  8. ViitinG's post in (Resolvido)Ajuda Nesse Script was marked as the answer   
    Não testei :
    local ultimateHealthPot = 8473 local greatHealthPot = 7591 local greatManaPot = 7590 local greatSpiritPot = 8472 local strongHealthPot = 7588 local strongManaPot = 7589 local healthPot = 7618 local manaPot = 7620 local smallHealthPot = 8704 local antidotePot = 8474 local antidote = Combat() antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING) antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true) antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false) antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON) local exhaust = Condition(CONDITION_EXHAUST_HEAL) exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 1000000)) -- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion. function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid ~= 1 or itemEx.type ~= THING_TYPE_PLAYER then return true end local player = Player(cid) if player:getCondition(CONDITION_EXHAUST_HEAL) then player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUAREEXHAUSTED)) return true end if item.itemid == antidotePot then if not doCombat(cid, antidote, numberToVariant(cid)) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == smallHealthPot then if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 60, 85, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == healthPot then if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 125, 175, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == manaPot then if not doTargetCombatMana(0, cid, 75, 125, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == strongHealthPot then if(not isInArray({3,4,7,8}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == strongManaPot then if(not isInArray({1,2,3,5,6,7}, player:getVocation():getId()) or player:getLevel() < 50) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by sorcerers, druids and paladins of level 50 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatMana(0, cid, 115, 185, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == greatSpiritPot then if(not isInArray({3, 7}, player:getVocation():getId()) or (player:getLevel() < 80)) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by paladins of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 250, 350, CONST_ME_MAGIC_BLUE) or not doTargetCombatMana(0, cid, 100, 200, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == greatHealthPot then if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by knights of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 425, 575, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == greatManaPot then if(not isInArray({1,2,5,6}, player:getVocation():getId()) or player:getLevel() < 80) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by sorcerers and druids of level 80 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatMana(0, cid, 1500, 2500, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) elseif item.itemid == ultimateHealthPot then if(not isInArray({4, 8}, player:getVocation():getId()) or player:getLevel() < 130) and not(player:getGroup():getId() >= 2) then player:say("This potion can only be consumed by knights of level 130 or higher.", TALKTYPE_MONSTER_SAY) return true end if not doTargetCombatHealth(0, cid, COMBAT_HEALING, 650, 850, CONST_ME_MAGIC_BLUE) then return false end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(1) end return true end
  9. ViitinG's post in (Resolvido)[Dúvida] Loot Dos Monster was marked as the answer   
    Provavelmente é igual Tibia então deve ser em "data/monsters"
  10. ViitinG's post in (Resolvido)Como mudar o lvl inicial? was marked as the answer   
    "data/creaturescripts/scripts/lowlevellock.lua"
    Deve ter algum script que está mudando o level do player quando ele loga,verifica se não tem nenhum com o nome que citei acima,se não tiver procure.
  11. ViitinG's post in [Pedido] Colorir essa imagem was marked as the answer   
    Gostou ?

  12. ViitinG's post in (Resolvido)your character could not be loaded ajuda pf was marked as the answer   
    Já foi arrumado,ele estava colocando o groupID errado.
  13. ViitinG's post in (Resolvido)[Duvida] Como andar na água? was marked as the answer   
    Terrain Palette>Nature/Walkable Sea :

  14. ViitinG's post in (Resolvido)Dúvida item was marked as the answer   
    Coloque um movement.
    Exemplo :
    <movevent type="Equip" itemid="8903" slot="shield" level="60" event="function" value="onEquipItem"> </movevent> <movevent type="DeEquip" itemid="8903" slot="shield" event="function" value="onDeEquipItem"/>
  15. ViitinG's post in (Resolvido)[Ajuda] Tradução de Script(Npc) was marked as the answer   
    .xml :
    <?xml version="1.0" encoding="UTF-8"?> <npc name="Professor Robert" script="profrobert.lua" floorchange="0" speed="0"> <health now="150" max="150"/> <look type="522" head="97" body="114" legs="114" feet="0"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|, qual cidade voce gostaria de comecar sua jornada ?"/> </parameters> </npc> .lua :
    local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local places = { ["saffron"] = 1, ["cerulean"] = 2, ["lavender"] = 3, ["fuchsia"] = 4, ["celadon"] = 5, ["viridian"] = 6, ["vermilion"] = 7, ["pewter"] = 8, ["cinnabar"] = 10, } if msgcontains(string.lower(msg), 'cidade') or msgcontains(string.lower(msg), 'cidades') then if getPlayerStorageValue(cid, 9658754) == 1 then selfSay("Voce ja escolheu sua cidade inicial!", cid) return true else selfSay("Voce tem que escolher sua cidade inicial entre: {Saffron, Cerulean, Lavender, Fuchsia, Celadon, Viridian, Vermilion, Pewter or Cinnabar}.", cid) return true end elseif places[string.lower(msg)] then cidade = string.lower(msg) selfSay("Tem certeza que voce quer comecar em {".. doCorrectString(msg) .."}?", cid) talkState[talkUser] = 2 return true elseif msgcontains(msg, "yes") or msgcontains(msg, "Yes") and talkState[talkUser] == 2 then if getPlayerStorageValue(cid, 9658754) == 1 then selfSay("Voce ja escolheu sua cidade inicial!", cid) return true else selfSay("OK entao... Agora sua cidade inicial e ".. doCorrectString(cidade)..". Boa sorte com sua jornada!", cid) doPlayerSetTown(cid, places[cidade]) setPlayerStorageValue(cid, 9658754, 1) return true end elseif msgcontains(msg, "no") or msgcontains(msg, "No") and talkState[talkUser] == 2 then selfSay("Ok entao... Fale novamente a cidade que gostaria de comecar!", cid) talkState[talkUser] = 0 return true end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  16. ViitinG's post in (Resolvido)duvida criando mapa des do zero was marked as the answer   
    mapa-spawn.xml = spawns de monstros do servidor.
    mapa-house.xml = todas as houses do servidor.
    Ao criar o mapa,se você tiver criado houses/spawns ele vai criar um xml sozinho.Serve para identificar as coordenadas das houses/spawns.
  17. ViitinG's post in (Resolvido)[Ajuda] Quest Bugada was marked as the answer   
    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 Scripts"
    Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
  18. ViitinG's post in (Resolvido){ERROR} Task System was marked as the answer   
    Não testei :



  19. ViitinG's post in (Resolvido)[Duvida] Mesmo IP não recebe item. (Anti-MC) was marked as the answer   
    Adicione este script :
    "data/creaturescripts/creaturescripts.xml" :
    <event type="kill" name="VGAntiMC" event="script" value="victorgantimc.lua"/> "data/creaturescripts/scripts/login.lua" :
    registerCreatureEvent(cid, "VGAntiMC") "data/creaturescripts/scripts/victorgantimc.lua" :
    local exp = 10000 local item,quant = 7369,1 function onKill(cid, target, damage, flags) if isPlayer(target) then if getPlayerIp(cid) == getPlayerIp(target) then doPlayerAddExp(cid, -exp) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Foi detectado o uso de MC você perderá "..exp.." de exp") return true end doPlayerAddItem(cid, item, quant) return true end return true end
  20. ViitinG's post in (Resolvido)Como fazer a pick (picareta) funcionar? was marked as the answer   
    Abra o RME e clique em "Terrain Palette>Cave",após clicar selecione o cave pickhole como mostra na imagem :

    Agora é só colocar onde desejar.

    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 OTServ Geral"
    Para: "OTServ → Suporte OTServ → Suporte de Mapping"
  21. ViitinG's post in (Resolvido)[Pedido] Script de War was marked as the answer   
    Não testei :
    function onLogin(cid) local playerVoc = getPlayerVocation(cid) local reqTries = getPlayerRequiredSkillTries local skillStor = 56364 local gotSkills = getPlayerStorageValue(cid, 56364) if playerVoc == 1 and gotSkills == -1 then doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,85))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc >= 1 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 70)) doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 72)) doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 70)) doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,8))) setPlayerStorageValue(cid, skillStor, 1) end return TRUE end
  22. ViitinG's post in (Resolvido)[PEDIDO]Área em que o mob pode se mecher was marked as the answer   
    Não sei se entendi bem,se for oque entendi é só fazer o seguinte :
    Vá em Creature Palette e Others :

    Selecione o monstro e clique Place Spawn depois em Place Creature :

    Após clicar em Place Spawn,coloque o spawn no local que deseja e depois clique em Place Creature e coloque a criatura(no meu caso Dragon) dentro do spawn :

  23. ViitinG's post in (Resolvido)[Position] ModernAcc was marked as the answer   
    A posição do templo pode ser alterada com o RME,aperte "Ctrl + T" e mude a town que desejar.
  24. ViitinG's post in (Resolvido)NPC (Teleport por Item) was marked as the answer   
    Não testei :
    local lugar = {x=102, y=1027, z=7} local item = 2160 local quantidade = 10 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 function santaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if (parameters.present == true) then if(doPlayerRemoveItem(cid,item,quantidade) == true) then doTeleportThing(cid, lugar) npcHandler:say('Voce foi teleportado.',cid) else npcHandler:say('Voce não tem o item para ser teleportado',cid) end npcHandler:resetNpc() return true end end npcHandler:setMessage(MESSAGE_GREET, "Ola|PLAYERNAME|. Eu posso te levar para alguns lugares,fale {lugar}.") local noNode = KeywordNode:new({'no'}, santaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, santaNPC, {present = true}) local node = keywordHandler:addKeyword({'lugar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Vou te levar para um lugar,digite {yes}'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new())
  25. ViitinG's post in (Resolvido)Como tirar as runas infinitas? was marked as the answer   
    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 OTServ Geral"
    Para: "OTServ → Suporte OTServ → Suporte de Scripts"

Informação Importante

Confirmação de Termo