-
Fogo System
@Vodkart @LeoTK @Movie Ou alguma alma bondosa pode ajudar?
-
Npc de missão dupla
Oi gente, boa noite...eu vim aqui pedir um favor a vocês, já faz um certo tempo que não entro na comunidade, eu precisaria de 2 npc. Um npc que ele falasse para o player levar o leite até o fazendeiro...quando entregar ao fazendeiro ele ganha 10k de experiência, caso tente falar com o 1 fazendeiro ele falar obrigado e que se o player quiser ele pode volta no dia seguinte, ou seja o npc só pode ser feito a cada 24 horas. Bom é isso espero que possam me ajudar.
-
Luzetti alterou sua foto pessoal
-
-
-
-
- Auto Loot System [Nao pega items]
- Auto Loot System [Nao pega items]
-
Auto Loot System [Nao pega items]
Galera, boa tarde, estou com um problema no meu auto loot, eu peguei esse aqui. https://tibiaking.com/forums/topic/82086-system-auto-loot-perfect/?fbclid=IwAR0IZDFHcAyuyEf1F8JCMjuNizuVet_JRXkwxWQPCaVrgvuKD7EJ3cniv8U porem ao adicionar tudo certo na lista, ele nao puxa o item pra bag, poderiam me ajudar?
-
-
Master ball nao pegar pokemons megas
[09/11/2018 22:47:16] [Error - LuaScriptInterface::loadFile] data/actions/scripts/catch.lua:80: unexpected symbol near 'if' [09/11/2018 22:47:16] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/catch.lua) [09/11/2018 22:47:16] data/actions/scripts/catch.lua:80: unexpected symbol near 'if' ta estranho isso
-
Master ball nao pegar pokemons megas
Até apareceu a msg, mas se eu tento com uma ultra ball, tbm não dá pra catar, eu queria apenas MB mesmo
-
Master ball nao pegar pokemons megas
Galera bom dia,estou pra lançar alguns megas no meu servidor, e nao sera por mega stone e sim por aleatorio, porem a master ball vai ser capaz de pegar eles, eu ja retirei pra ela pegar pokes shinys, porem queria colocar pra nao pegar megas...alguem me ajuda pfv? local ballcatch = { --id normal, id da ball shiy [2394] = {cr = 6, on = 193, off = 192, ball = {11826, 11737}, send = 47, typeee = "poke", boost = "0"}, --alterado v1.9 \/ [2391] = {cr = 7, on = 198, off = 197, ball = {11832, 11740}, send = 48, typeee = "great", boost = "0"}, [2393] = {cr = 9, on = 202, off = 201, ball = {11835, 11743}, send = 46, typeee = "super", boost = "0"}, [2392] = {cr = 13, on = 200, off = 199, ball = {11829, 11746}, send = 49, typeee = "ultra", boost = "0"}, [12617] = {cr = 11, on = 204, off = 203, ball = {10975, 12621}, send = 35, typeee = "saffari", boost = "0"}, [12832] = {cr = 100000, on = 23, off = 24, ball = {12826, 12829}, send = 181, typeee = "master", boost = "15"}, [15677] = {cr = 16, on = 313, off = 314, ball = {16181, 16204}, send = 72, typeee = "magu", boost = "0", type = {"fire", "ground"}}, [15676] = {cr = 16, on = 316, off = 317, ball = {16182, 16205}, send = 73, typeee = "sora", boost = "0", type = {"ice", "flying"}}, [15678] = {cr = 16, on = 320, off = 321, ball = {16183, 16206}, send = 74, typeee = "yume", boost = "0", type = {"normal", "psychic"}}, [15680] = {cr = 16, on = 322, off = 323, ball = {16184, 16207}, send = 75, typeee = "dusk", boost = "0", type = {"rock", "fighting"}}, [15673] = {cr = 16, on = 331, off = 332, ball = {16187, 16210}, send = 78, typeee = "tale", boost = "0", type = {"dragon", "fairy"}}, [15674] = {cr = 16, on = 334, off = 335, ball = {16188, 16211}, send = 79, typeee = "moon", boost = "0", type = {"dark", "ghost"}}, [15675] = {cr = 16, on = 337, off = 338, ball = {16189, 16212}, send = 80, typeee = "net", boost = "0", type = {"bug", "water"}}, [15679] = {cr = 16, on = 343, off = 344, ball = {16191, 16214}, send = 82, typeee = "premier", boost = "0", type = {"grass", "poison"}}, [15681] = {cr = 16, on = 346, off = 347, ball = {16192, 16215}, send = 83, typeee = "tinker", boost = "0", type = {"electric", "steel"}}, [15682] = {cr = 18, on = 325, off = 326, ball = {16185, 16208}, send = 76, typeee = "fast", boost = "0", pokes = {"Pikachu", "Raichu"}}, [15672] = {cr = 18, on = 328, off = 329, ball = {16186, 16209}, send = 77, typeee = "heavy", boost = "0", pokes = {"Snorlax", "Venusaur"}}, } function onUse(cid, item, frompos, item3, topos) local item2 = getTopCorpse(topos) if item2 == null then return true end if getItemAttribute(item2.uid, "catching") == 1 then return true end if getItemAttribute(item2.uid, "golden") and getItemAttribute(item2.uid, "golden") == 1 then return doPlayerSendCancel(cid, "You can't try to catch a pokemon in the Golden Arena!") end local name = string.lower(getItemAttribute(item2.uid, "pokeName")) name = string.gsub(name, "fainted ", "") name = string.gsub(name, "defeated ", "") name = doCorrectPokemonName(name) local x = pokecatches[name] if not x then return true end local storage = newpokedex[name].stoCatch if type(getPlayerStorageValue(cid, storage)) ~= "string" or not string.find(getPlayerStorageValue(cid, storage), "magu") then --alterado v1.9 setPlayerStorageValue(cid, storage, "normal = 0, great = 0, super = 0, ultra = 0, saffari = 0, dark = 0, magu = 0, sora = 0, yume = 0, dusk = 0, tale = 0, moon = 0, net = 0, premier = 0, tinker = 0, fast = 0, heavy = 0;") --alterado v1.9 end local owner = getItemAttribute(item2.uid, "corpseowner") local pOwner = getPlayerByName(owner) local isInParyWithPlayer = false if isInParty(cid) and isInParty(pOwner) then isInParyWithPlayer = isPartyEquals(pOwner, cid) end if owner and isCreature(pOwner) and isPlayer(pOwner) and cid ~= pOwner and not isInParyWithPlayer then doPlayerSendCancel(cid, "Desculpa Isso não é possivel.") return true end local newidd = isShinyName(name) and ballcatch[item.itemid].ball[2] or ballcatch[item.itemid].ball[1] --alterado v1.9 local typeee = ballcatch[item.itemid].typeee local boost = ballcatch[item.itemid].boost local catchBlocks = {"Shiny Snorlax", "Aerodactyl"} if isInArray(catchBlocks, name) then doSendMsg(cid, "Você não pode capturar este pokemon.") return true end local catchinfo = {} catchinfo.rate = ballcatch[item.itemid].cr catchinfo.catch = ballcatch[item.itemid].on catchinfo.fail = ballcatch[item.itemid].off catchinfo.newid = newidd catchinfo.name = doCorrectPokemonName(name) catchinfo.topos = topos catchinfo.chance = x.chance doBrokesCount(cid, newpokedex[doCorrectPokemonName(name)].stoCatch , typeee) doSendDistanceShoot(getThingPos(cid), topos, ballcatch[item.itemid].send) doRemoveItem(item.uid, 1) ---- newsBalls if (ballcatch[item.itemid].type ~= nil or ballcatch[item.itemid].pokes ~= nil) then catchinfo.rate = getBallsRate(catchinfo.name, item.itemid) end --if isGod(cid) then catchinfo.rate = 100000 end local d = getDistanceBetween(getThingPos(cid), topos) if getPlayerStorageValue(cid, 98796) >= 1 and getPlayerItemCount(cid, 12617) <= 0 then --alterado v1.9 setPlayerStorageValue(cid, 98796, -1) setPlayerStorageValue(cid, 98797, -1) doTeleportThing(cid, SafariOut, false) doSendMagicEffect(getThingPos(cid), 21) doPlayerSendTextMessage(cid, 27, "You spend all your saffari balls, good luck in the next time...") end addEvent(doSendPokeBall, d * 70 + 100 - (d * 14) , cid, catchinfo, false, false, typeee) addEvent(doSendMagicEffect, (d * 70 + 100 - (d * 14)) - 100, topos, 3) return true end function getBallsRate(name, id) if pokes[name] then if isInArray(ballcatch[id].type, pokes[name].type) or isInArray(ballcatch[id].type, pokes[name].type2) or isInArray(ballcatch[id].pokes, name) then return 16 end end return 13 end Obrigado desde ja. Abaixo de local catchBlocks = {"Shiny Snorlax", "Aerodactyl"} if isInArray(catchBlocks, name) then doSendMsg(cid, "Você não pode capturar este pokemon.") return true end Ja coloquei pra mega assim: if typeee == "master" and isMegaName(name) then doSendMsg(cid, "Você não pode capturar pokemon shiny com a master ball.") return true end Mas da erro na distro, e nao da pra catar pokemon nenhum dps.
-
PokeBar por talackactions
Galera, estava tentando colocar uma bar no meu server, mas nao deu certo, entao queria colocar uma bar diferente, criar um modulo no otc que reconhecesse os pokes que eu tenho, e o comando seria.../poke alakazam, quando clicar no nome do poke falar isso e soltar o poke...seria possivel? por favor me ajudem
-
MonsterDex
[31/05/2018 19:57:01] [Error - Action Interface] [31/05/2018 19:57:01] data/actions/scripts/monsterdex.lua:onUse [31/05/2018 19:57:01] Description: [31/05/2018 19:57:01] data/actions/scripts/monsterdex.lua:14: attempt to concatenate a boolean value [31/05/2018 19:57:01] stack traceback: [31/05/2018 19:57:01] data/actions/scripts/monsterdex.lua:14: in function <data/actions/scripts/monsterdex.lua:4> estou tentando arrumar, ate o momento o erro agr é esse. Bom, quando inicio o servidor, e tals e nada acontece, apenas quando tento usar o item, e clico no monstro, ele fala que nao posso usar o item, you cannot use this object, ai aparece o erro
-
MonsterDex
Fala gente boa noite, bom eu e um amigo meu estavamos a criar uma dex para o meu servidor de tibia, isso msmo um servidor de tibia com dex, porem nos deparamos com seguinte erro? [31/05/2018 16:00:26] [Error - Action Interface] [31/05/2018 16:00:26] data/actions/scripts/monsterdex.lua:onUse [31/05/2018 16:00:26] Description: [31/05/2018 16:00:26] data/actions/scripts/monsterdex.lua:14: attempt to concatenate a boolean value [31/05/2018 16:00:26] stack traceback: [31/05/2018 16:00:26] data/actions/scripts/monsterdex.lua:14: in function <data/actions/scripts/monsterdex.lua:4> e entao demos uma parada ao codigo, porem eu preciso dele, vou por aqui o codigo. local OPCODE_MONSTERDEX = opcodes.OPCODE_MONSTERDEX local OPCODE_CREATE_MONSTERS = opcodes.OPCODE_CREATE_MONSTERS function onUse(cid, item, fromPosition, itemEx, toPosition) if not isCreature(itemEx.uid) then return true end if getPlayerStorageValue(cid, storages.monsterdexDelay) == 1 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não use a monsterdex tão rápido.") end local name = isPlayer(itemEx.uid) and getCreatureName(itemEx.uid) or getMonsterName(itemEx.uid) local str = {} for monsterId = 1, 42 do table.insert(str, ((monsterId > 9 and monsterId < 100) and "#0" or (monsterId < 10) and "#00" or "#")..monsterId) table.insert(str, "|".. getMonsterDescription(name)) table.insert(str, "|".. getMonsterAttack(name)) table.insert(str, "|".. getMonsterDefense(name)) table.insert(str, "|".. getMonsterVitality(name)) table.insert(str, "|".. getMonsterLevel(name)) end if isMonster(itemEx.uid) or (isPlayer(itemEx.uid) and itemEx.uid == cid) then doSendPlayerExtendedOpcode(cid, OPCODE_CREATE_MONSTERS, table.concat(str)) setPlayerStorageValue(cid, storages.monsterdexDelay, 1) addEvent(setPlayerStorageValue, 3000, cid, storages.monsterdexDelay, -1) end if isMonster(itemEx.uid) then if getPlayerStorageValue(cid, getMonsterUniqueStorToDex(name)) == -1 then local exp = (getMonsterLevel(name) * 10) / 2 setPlayerStorageValue(cid, getMonsterUniqueStorToDex(name), 1) setPlayerStorageValue(cid, storages.monsterdexSys, getPlayerStorageValue(cid, storages.monsterdexSys) + 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você desbloqueou o monstro "..doCorrectString(name).." e ganhou "..exp.." de experiencia.") doPlayerAddExp_2(cid, exp) doSendMagicEffect(getThingPos(cid), 91) end doSendPlayerExtendedOpcode(cid, OPCODE_MONSTERDEX, pokeId.."|"..doCorrectString(name).."|"..getMonsterLevel(name).."|"..(getPlayerStorageValue(cid, getMonsterUniqueStorToCatch(name)) == -1 and "false" or "true").."|"..getMonsterDescription(name).."|"..getMonsterAttack(name).."|"..getMonsterDefense(name).."|"..getMonsterVitality(name)) elseif isPlayer(itemEx.uid) and itemEx.uid == cid then doSendPlayerExtendedOpcode(cid, OPCODE_MONSTERDEX, name) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem a monsterdex de "..(getPlayerStorageValue(cid, storages.monsterdexSys) + 1).." monster"..(getPlayerStorageValue(cid, storages.monsterdexSys) + 1 == 1 and "" or "s").." de kanto.") end return true end e tbm o arquivo lib. monstersInfo = { ["demon"] = {attack = 49, defense = 49, vitality = 45, level = 20}, } monstersDescription = { ["demon"] = {"No description.", 1}, } storages = { monsterdexSys = 8000, monsterdexDelay = 8100, } opcodes = { OPCODE_MONSTERDEX = 100, OPCODE_CREATE_MONSTERS = 101, } function doCorrectMonsterName(monster) return doCorrectString(monster) end function doCorrectString(str) local name = string.explode(tostring(str), " ") local final = {} for _, s in ipairs(name) do table.insert(final, s:sub(1, 1):upper()..s:sub(2, #s):lower()) end return table.concat(final, (name[2] and " " or "")) end function doPlayerAddExp_2(cid, exp) if not isCreature(cid) then return true end doPlayerAddExp(cid, exp) doSendAnimatedText(getThingPos(cid), exp, 215) end function getMonsterName(cid) if not isCreature(cid) then return "" end return getPlayerStorageValue(cid, 510) or "" end function getMonsterLevel(name) if not monstersInfo[string.lower(name)] then return false end if monstersInfo[string.lower(name)].level <= 1 then return 5 end return monstersInfo[string.lower(name)].level end function getMonsterDescription(name) if not monstersDescription[string.lower(name)] then return false end return monstersDescription[string.lower(name)][1] end function getMonsterAttack(name) if not monstersInfo[string.lower(name)] then return false end return monstersInfo[string.lower(name)].attack end function getMonsterDefense(name) if not monstersInfo[string.lower(name)] then return false end return monstersInfo[string.lower(name)].defense end function getMonsterVitality(name) if not monstersInfo[string.lower(name)] then return false end return monstersInfo[string.lower(name)].vitality end function getPokemonSpAttack(name) if not pokesInfo[string.lower(name)] then return false end return pokesInfo[string.lower(name)].spAttack end function getMonsterUniqueStorToCatch(monster) return true end function getMonsterUniqueStorToDex(monster) return true end quando ligo o servidor nao aparece nenhum erro nem nada, mas ao usar o item causa aquele 1 erro, e fala que nao posso usar o item. Alguem pra me ajudar? desde ja agradeco muito Valendo REP++
-
(Resolvido)Npc de vocacao
+1 coisa desculpa, haha tem como se fosse ele o npc, após ir catando os itens ele falar, muito bem faltam tantos e quando faltar apenas 1 ele falar, huum interessante. @Sttorm seria possivel?
-
(Resolvido)Npc de vocacao
nao tem como a parte de entrega ser mais pratica? Blza ele mando eu buscar os itens, ai na volta...eu vou ter que fala itens? nao tem algum jeito mais facil? em vez de fala itens? ele perguntar de novo? NPC, CONSEGUIU OQ LHE PEDI? PLR: SIM OKAY VEJO QUE É DIGNO DE SER ESSE GUERREIRO. nao tem como ser assim?
-
(Resolvido)Npc de vocacao
ta pra kikar com 5 segundos? após dar a vocacao? [30/05/2018 16:26:57] [Error - LuaScriptInterface::loadFile] data/npc/scripts/vampiro.lua:44: unexpected symbol near 'ï' [30/05/2018 16:26:57] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/vampiro.lua [30/05/2018 16:26:57] data/npc/scripts/vampiro.lua:44: unexpected symbol near 'ï'
-
(Resolvido)Npc de vocacao
creio que esteja quase 100%, porem ele nao pede pro player trazer o item até ele, no caso assim... <?xml version="1.0" encoding="UTF-8"?> <npc name="Vampiro" script="data/npc/scripts/vampiro.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="312" head="76" body="43" legs="38" feet="76" addons="0"/> <parameters> <parameter key="message_greet" value="Eu sou um Vampiro, estou em busca de sangue e vingança, por algum acaso esta interessado meu caro |PLAYERNAME|?"/> </parameters> </npc> OBS 1 aqui ele ja fala se vc quer se juntar a ele, blza se eu nao tiver o item ele vai manda buscar okay, porem se eu ja tiver o item ele vai remover sem ao menos perguntar se eu tenho. OBS2 foto ele ta dando voc de hunter, sendo que ja sou hunter, e na descrição aparece no look, vampire... "BLZA JA SEI OQ ERA A QUESTAO DA ROUPA E DA VOC ESTAREM ERRADAS ARRUMEI JA" OK GG PODERIA POR PRA ELE LEVAR UM KICK? EM 5 SEGUNDOS? E VER PRA MESMO EU TENDO O ITEM ELE PERGUNTAR SE EU TENHO O ITEM AI QUANDO EU DER A ELE, AI SIM ELE TROCA MINHA VOC?