Tudo que Tibiadrill postou
- Ajuda com OT 10.41~10.50 por favor!
- 8.7 | Rope e Shovel não funfam
-
Ajuda com OT 10.41~10.50 por favor!
A parte dos POT infinito ali eu consegui resolver. Se você já sabe como fazer, vaza pra outro tópico. Seria assim o potions.lua original (dois exemplos aí> Mana Pot e Ultimate Health Pot): 1)Sentença do mana potion original: 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) player:addItem(emptyPot, 1) 2)Sentença do Ultimate Health Pot Original: 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) player:addItem(greatEmptyPot, 1) end return true end Fazendo algumas alterações, vão ficar assim: 1)Mana Pot: elseif item.itemid == manaPot then if not doTargetCombatMana(0, cid, 75, 125, CONST_ME_MAGIC_BLUE) then return true end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(0) player:addItem(emptyPot, 0) 2) Ultimate Health Pot: 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 true end player:addCondition(exhaust) player:say("Aaaah...", TALKTYPE_MONSTER_SAY) Item(item.uid):remove(0) player:addItem(greatEmptyPot, 0) end return true end Na verdade, pouca coisa tem que ser alterada, mas eu usei esses exemplos com as descrições completas de cada item pra tentar facilitar. Nem sei se será útil a alguém, mas pra mim funcionou. Ainda espero que um de vocês possa me ajudar com o Teleport e a adicionar comandos para god e gm. Obrigado.
-
Ajuda com OT 10.41~10.50 por favor!
Eu to fazendo uns testes nesse 10.41 que peguei esses dias, e está incrivelmente bom, bom mesmo com quests, montarias e itens todos funcionando perfeito mesmo, mas tem alguns bugs e outras coisas que eu gostaria de mudar. Primeiro seria aquele teleport na tartaruga de Meriana, que não está funcionando =( tu pisa nos dois sqm da turtle e nao dá nada.... Outra coisa que eu queria adicionar seriam pots infinitos. No 8,6 eu consegui no forum ae que o cara tinha postado o script eu só dei um tapinha la e ficou funcionando, mas agora nos 10.xx não consigo alterar. E por último, queria saber se tem como adicionar comandos as contas GOD-GM porque no arquivo commands.xml só tem 4 linhas...e nos outros que eu ja vi chegava a ter mais de 20. Eu tentei colocar la um /i por exemplo mas na inicialização do server ele ja deu 'comando desconhecido'. Bom é isso ae. Agradeço desde já a quem puder ajudar. Eu vou postar logo mais os arquivos commands.xml e o liquids.lua pra ver se facilita.
- 8.7 | Rope e Shovel não funfam
- 9.8 Global Full com Rookguard !
-
Quests 8.6 não funcionam?
Eu estava fazendo um teste com as quests e notei que muitas das que iniciam falando com NPC não funciona. Tentei a Barbarian Test, Explorer's Society, Meriana Quest...nenhuma delas. Alguém pra ajudar ae?!
-
OT 8.6 Quando morre volta pro lv 1!
Será que alguem tem ideia do que pode ser modificado pra evitar esse transtorno?
-
OT 8.6 Quando morre volta pro lv 1!
Então, no config.lua eu ja alterei, mesmo assim nao deu resultado: morre, tu volta pro templo e lv1. Eu já li algo assim ha um tempo, mas nao encontrei mais o topico. E o cara tava dizendo la que no config.lua tinha que estar o mesmo valor de um outro arquivo .lua, mas eu nao lembro qual. =x
-
OT 7.6 Pot infinito. Ajudem!
Blz vou dar uma olhada, apesar de ja ter procurado e nao encontrado. No OT 8.6 sim, encontrei, modifiquei e funciona pot infinito de boa. Mas, o 7.6 em questão, como eram diferentes os itens e tal, pode ser que seja esse aí mesmo. Vou ver e volto a postar aqui. Realmente não há potions.lua, somente fluids.lua.
-
OT 8.6 Quando morre volta pro lv 1!
Eu até já vi um outro tópico explicando isso mas não consegui mais localizar. O problema é esse: Tu morre e volta pro lv 1!! Eu já modifiquei algumas coisas e já nao perco itens nenhum, mas essa de lv1 realmente não sei o que fazer. No config.lua eu alterei pra 3 o valor que era 10 no deathloss, mesmo assim não deu certo.
-
OT 7.6 Pot infinito. Ajudem!
Eu já tentei algumas vezes alterar os códigos mas não consegui fazer os pot ficarem infinito, alguém me ajude por favor!! Código Original é esse: fluids.lua local exhaust_heal = createConditionObject(CONDITION_EXHAUSTED) setConditionParam(exhaust_heal, CONDITION_PARAM_TICKS, 1000) local poison = createConditionObject(CONDITION_POISON) setConditionParam(poison, CONDITION_PARAM_DELAYED, 1) local drunk = createConditionObject(CONDITION_DRUNK) setConditionParam(drunk, CONDITION_PARAM_TICKS, 60000) addDamageCondition(poison, 4, 6000, -5) addDamageCondition(poison, 5, 6000, -4) addDamageCondition(poison, 6, 6000, -3) addDamageCondition(poison, 10, 6000, -2) addDamageCondition(poison, 36, 6000, -1) local TYPE_EMPTY = 0 local TYPE_WATER = 1 local TYPE_BLOOD = 2 local TYPE_BEER = 3 local TYPE_SLIME = 4 local TYPE_LEMONADE = 5 local TYPE_MANA_FLUID = 7 local TYPE_LIFE_FLUID = 10 local TYPE_OIL = 11 local TYPE_URINE = 13 local TYPE_WINE = 15 local TYPE_MUD = 19 local TYPE_LAVA = 26 local TYPE_RUM = 27 local TYPE_SWAMP = 28 function onUse(cid, item, frompos, item2, topos) if (item.type == 0) then doPlayerSendCancel(cid,"You can not use this object. ") elseif (item2.uid ~= cid) and (topos.stackpos > 0) and (isMoveable(item2.uid) ~= TRUE) and (isCreature(item2.uid) ~= 1) then doPlayerSendCancel(cid,"There is not enough room.") elseif (isInArray(FLUID_CONTAINERS,item2.itemid) == TRUE) and (item2.type == TYPE_EMPTY) then doChangeTypeItem(item.uid, TYPE_EMPTY) doChangeTypeItem(item2.uid, item.type) elseif (topos.x == 65535) and (item2.uid ~= cid) and (isPlayer(item2.uid) ~= cid) then if(isInArray(DIRT_WALL,item2.itemid) ~= TRUE) then doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, getThingPos(cid)) doDecayItem(splash) else doPlayerSendCancel(cid,"There is not enough room.") end elseif (item2.itemid > 0) and (item2.uid ~= cid) and (isPlayer(item2.uid) ~= cid) then if(isInArray(DIRT_WALL,item2.itemid) ~= TRUE) then doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, topos) if(isInArray(WATER_LAVA_SWAMP,item2.itemid) ~= TRUE) then doDecayItem(splash) end else doPlayerSendCancel(cid,"There is not enough room.") end elseif (frompos.x == 65535) and (item2.uid ~= cid) and (isPlayer(item2.uid) ~= cid) then if(isInArray(DIRT_WALL,item2.itemid) ~= TRUE) then doChangeTypeItem(item.uid, 0) splash = doCreateItem(2025, item.type, getThingPos(cid)) doDecayItem(splash) else doPlayerSendCancel(cid,"There is not enough room.") end else if (item2.uid == cid) and (isPlayer(item2.uid) == 1) then doChangeTypeItem(item.uid, 0) if (item.type == TYPE_MANA_FLUID) then new_mana = math.random(80, 160) doPlayerAddMana(cid, new_mana) doSendMagicEffect(topos, 12) doPlayerSay(cid, "Aaaah...", 1) doAddCondition(cid, exhaust_heal) elseif (item.type == TYPE_LIFE_FLUID) then new_life = math.random(20, 50) doPlayerAddHealth(cid, new_life) doSendMagicEffect(topos, 12) doPlayerSay(cid, "Aaaah...", 1) doAddCondition(cid, exhaust_heal) elseif (item.type == TYPE_BEER or item.type == TYPE_WINE or item.type == TYPE_RUM) then doTargetCombatCondition(0, cid, drunk, CONST_ME_NONE) doPlayerSay(cid, "Aah...", 1) elseif (item.type == TYPE_LEMONADE) then doPlayerSay(cid, "Mmmh.", 1) elseif (item.type == TYPE_SLIME or item.type == TYPE_SWAMP) then doTargetCombatCondition(0, cid, poison, CONST_ME_NONE) doPlayerSay(cid, "Urgh!", 1) elseif (item.type == TYPE_OIL or item.type == TYPE_URINE) then doPlayerSay(cid, "Urgh!", 1) else doPlayerSay(cid, "Gulp.", 1) end end end if (item.type == 0) then if item2.itemid >= 490 and item2.itemid <= 517 or item2.itemid >= 618 and item2.itemid <= 629 or item2.itemid == 1368 or item2.itemid == 1369 or item2.itemid >= 4820 and item2.itemid <= 4825 or item2.itemid >= 4828 and item2.itemid <= 4831 or item2.itemid >= 4608 and item2.itemid <= 4666 then doChangeTypeItem(item.uid, TYPE_WATER) elseif item2.itemid == 103 then doChangeTypeItem(item.uid, TYPE_MUD) elseif item2.itemid >= 598 and item2.itemid < 601 or item2.itemid == 1509 or item2.itemid >= 518 and item2.itemid <= 529 then doChangeTypeItem(item.uid, TYPE_LAVA) elseif item2.itemid >= 351 and item2.itemid <= 355 then doChangeTypeItem(item.uid, TYPE_MUD) elseif item2.itemid >= 602 and item2.itemid <= 605 or item2.itemid >= 4691 and item2.itemid <= 4755 or item2.itemid == 4758 then doChangeTypeItem(item.uid, TYPE_SWAMP) elseif item2.itemid == 1771 then doChangeTypeItem(item.uid, TYPE_WATER) elseif item2.itemid == 1772 then doChangeTypeItem(item.uid, TYPE_BEER) elseif item2.itemid == 1773 then doChangeTypeItem(item.uid, TYPE_WINE) elseif item2.itemid == 1776 then doChangeTypeItem(item.uid, TYPE_LEMONADE) elseif(isInArray(NORMAL_CORPSE_STAGE_I,item2.itemid) == TRUE) then doChangeTypeItem(item.uid, TYPE_BLOOD) elseif(isInArray(SLIME_CORPSES,item2.itemid) == TRUE) then doChangeTypeItem(item.uid, TYPE_SLIME) elseif item2.itemid >= 371 and item2.itemid <= 382 or item2.itemid >= 356 and item2.itemid <= 367 then doPlayerSendCancel(cid, "You cannot use this object.") end end return TRUE end
-
(Resolvido)OT 9.8 não reconhece as senhas das acc.
Resolvido. Era a DB errada mesmo. Eu não sei pq, mas de vez em quando esse heidiSql apresenta esse erro de misturar as db. Se eu monto e rodo uma só, vai que é uma beleza mas basta adicionar mais uma ou duas ali e mesmo que escolha certo na hora de abrir ele de vez em quando mistura, que estranho. Vlw pela ajuda ae!!
-
(Resolvido)OT 9.8 não reconhece as senhas das acc.
Todo o resto funciona...DB ok, lua ok...mas quando eu coloco a acc e senha, por mais que esteja correto, o client mostra o erro 'INVALID ACCOUNT OR PASSWORD'. Alguém ajuda pf?
-
(Resolvido)Ajuda com OTs 10.3x >
Isso aí!! Funcionou direitinho, obrigado Hadagalberto!!!!
-
(Resolvido)Ajuda com OTs 10.3x >
Po ninguém disposto a ajudar? Colaborem ae!! ...
-
(Resolvido)Ajuda com OTs 10.3x >
Eu já rodo OT aqui ha bastante tempo, mas são da versão 7.x e 8.x então decidi pegar esses mais novos mas não estou conseguindo rodar. Como eu só quero jogar lá em casa porque não tenho internet, não sei se estou fazendo algo errado, ou deixando de fazer alguma coisa. A sequência que eu faço é essa: - Monto DB no HeidiSQL; - Edito config.lua; - Monto e rodo o site; - Executo servidor; (^ Tudo sem problema) - Vou no site, crio a minha acc; - Executo IPChanger da OTLand com client da versão certa, geralmente 10.37+. O client abre, coloco a acc e senha que criei no site e então dá o erro, dizendo que o servidor tá offline e não pode se conectar. Se alguém tiver paciência de me ajudar ou de fazer um passo-a-passo ae eu ficaria muito grato. Rodo meu sistema com Win7 x64. Vlw!!