Ir para conteúdo

tavarb

Membro
  • Registro em

  • Última visita

Tudo que tavarb postou

  1. Então amigão, testei em duas contas, uma premium e uma free. Na conta premium tá funcionando normal(como antes), porém na conta free ele não abre nem coleta automaticamente o loot. A script que mandei funciona da seguinte maneira, quando o jogador mata um pokemon tem que ir até o corpo, clicar com o botão direito onde o loot vai diretamente pra backpack do jogador(sem abrir o corpo).
  2. tavarb postou uma resposta no tópico em Suporte OTServer Derivados
    Consegui consertar, tinha que colocar "container" no editor...
  3. tavarb postou uma resposta no tópico em Suporte OTServer Derivados
    Estou adicionando novos pokemons no meu servidor, looktype, corpse quando morre, tudo certinho. Porém não consigo abrir o corpo pra pegar o loot, onde conserto isso?
  4. Tenho um script de autoloot funcional, logo, gostaria que ele coletasse todos os itens apenas se o jogador for premium account, caso não seja (abra o corpo normal e tenha que catar o loot manualmente) function onUse(cid, item, frompos, item2, topos) if getItemAttribute(item.uid, "corpseowner") ~= cid then doPlayerSendCancel(cid, "You're not the owner.") return true end local items = {} for x=0, getContainerSize(item.uid) - 1 do local itens = getContainerItem(item.uid, 0) table.insert(items, {i=itens.itemid, q=itens.type}) doRemoveItem(itens.uid) end for y=1, #items do doPlayerAddItemStacking(cid, items[y].i, items[y].q) doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".") end if #items > 0 then return true else return false end end
  5. tavarb postou uma resposta no tópico em Suporte Websites
    PokeXMostyer Consegui irmão, relaxa
  6. tavarb postou uma resposta no tópico em Suporte Websites
    Então cara, coloquei o looktype no sql e mesmo assim não muda
  7. tavarb postou uma resposta no tópico em Suporte OTServer Derivados
    Estou com um probleminha no changegold. Os ids já estão certinhos e tal, porém, em vez de quando o jogador possuir 100 notas e ela "upar" para uma nota maior, ela tá voltando para uma nota menor. Em vez HD ir para o TD, ele tá voltando para o Dóllar, como consertar isso? local coins = { [2152] = {to = 2160}, [2160] = {to = 2157}, [2157] = {to = 2148}, [2148] = {from = 2157}, [2157] = {from = 2160}, [2160] = {from = 2152}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM)) then return false end local coin = coins[item.itemid] if(not coin) then return false end if(coin.to ~= nil and item.type == ITEMCOUNT_MAX) then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, coin.to, 1) elseif(coin.from ~= nil) then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX) end return true end
  8. Tenho um script de invasion automática no qual os monstros nascem no tile programado por mim. Porém, queria que o monstro nascesse aleatoriamente em algum dos tiles (evitando assim, do player marcar onde o monstro nasce) local monsters = { --[ORDEM]={name="NOME-DO-MONSTRO", pos={POSICAO DO MONSTRO}} [1]={name="Demon", pos={x=32368, y=32216, z=7}}, [2]={name="Hydra", pos={x=32370, y=32216, z=7}} } function onThink(interval) for e, f in pairs(monsters) do doCreateMonster(monsters[e].name,monsters[e].pos) end return TRUE end
  9. Gostaria de adicionar um sistema de iscas para pesca. No qual se o jogador não possuir nenhuma isca continuar pescando alguns pokémons básicos. local fishing = { ["Magikarp"] = {skill = 0, level = 1}, ["Gyarados"] = {skill = 75, level = 75}, ["Staryu"] = {skill = 22, level = 6}, ["Starmie"] = {skill = 49, level = 20}, ["Tentacool"] = {skill = 20, level = 7}, ["Tentacruel"] = {skill = 60, level = 75}, ["Goldeen"] = {skill = 17, level = 5}, ["Seaking"] = {skill = 28, level = 11}, ["Krabby"] = {skill = 14, level = 2}, ["Kingler"] = {skill = 35, level = 14}, ["Horsea"] = {skill = 16, level = 3}, ["Seadra"] = {skill = 41, level = 15}, ["Poliwag"] = {skill = 15, level = 2}, ["Poliwhirl"] = {skill = 27, level = 9}, ["Squirtle"] = {skill = 25, level = 25}, ["Wartortle"] = {skill = 45, level = 44}, ["Blastoise"] = {skill = 75, level = 75}, ["Lapras"] = {skill = 85, level = 85}, } local storage = 15458 local bonus = 1 local limite = 100 local function doFish(cid, pos, ppos, chance, interval, number) if not isCreature(cid) then return false end if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then return false end if getPlayerStorageValue(cid, storage) ~= number then return false end doSendMagicEffect(pos, CONST_ME_LOSEENERGY) local peixe = 0 local playerpos = getClosestFreeTile(cid, getThingPos(cid)) local fishes = {} local randomfish = "" if getPlayerSkillLevel(cid, 6) < limite then doPlayerAddSkillTry(cid, 6, bonus) end for a, b in pairs (fishing) do if getPlayerSkillLevel(cid, 6) >= b.skill then table.insert(fishes, a) end end if math.random(1, 100) <= chance then if getPlayerSkillLevel(cid, 6) < limite then doPlayerAddSkillTry(cid, 6, bonus) end randomfish = fishes[math.random(#fishes)] peixe = doSummonCreature(randomfish, playerpos) if not isCreature(peixe) then addEvent(doFish, interval, cid, pos, ppos, chance, interval, number) return true end doCreatureSetLookDir(cid, getDirectionTo(getThingPos(cid), getThingPos(peixe))) --alterado ver depois if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173) doChallengeCreature(getCreatureSummons(cid)[1], peixe) else doSendMagicEffect(getThingPos(cid), 173) doChallengeCreature(cid, peixe) end return true end addEvent(doFish, interval, cid, pos, ppos, chance, interval, number) return true end local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825} function onUse(cid, item, fromPos, itemEx, toPos) if getPlayerGroupId(cid) == 11 then return true end if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_LEFT).uid then doPlayerSendCancel(cid, "Put the fishing rod in the correct place!") return true end local checkPos = toPos checkPos.stackpos = 0 if getTileThingByPos(checkPos).itemid <= 0 then return true end if not isInArray(waters, getTileInfo(toPos).itemid) then return true end if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 then doPlayerSendCancel(cid, "You can't fish while surfing/flying.") return true end if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then doPlayerSendCancel(cid, "You can\'t fish while surfing neither flying above water.") return true end if getTileInfo(getThingPos(getCreatureSummons(cid)[1] or cid)).protection then doPlayerSendCancel(cid, "You can't fish pokémons if you or your pokémon is in protection zone.") return true end setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) if getPlayerStorageValue(cid, storage) >= 800 then setPlayerStorageValue(cid, storage, 1) end local delay = 3500 - getPlayerSkillLevel(cid, 6) * 25 local chance = 33 doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage)) return true end
  10. tavarb postou uma resposta no tópico em Suporte Websites
    Estou com um probleminha, ao o jogador criar o novo char, ele vem setado com a looktype 510 (de um shiny paras). Já mudei na database e mesmo assim ele continua nascendo com o mesmo looktype. Alguém sabe como consertar? `looktype` int(11) NOT NULL DEFAULT '746',
  11. tavarb postou uma resposta no tópico em Suporte Websites
    Gostaria de editar a página inicial do meu servidor, colocar as novidades, atualizações e noticias em geral(NESSA PARTE EM LARANJA QUE MARQUEI). Onde edito o arquivo? data.php? index.php?
  12. Alguém pode me explicar como funciona essa script? (ESTOU BALANCEANDO OS POKÉMONS DO MEU SERVIDOR) exemplo: ["Bulbasaur"] = {level = 20, cons = 43, vida = 1200}, ["Ivysaur"] = {level = 40, cons = 86, vida = 2600}, ["Venusaur"] = {level = 85, cons = 189, vida = 5200}, ["Charmander"] = {level = 20, cons = 30, vida = 970}, ["Charmeleon"] = {level = 40, cons = 70, vida = 2900}, ["Charizard"] = {level = 85, cons = 140, vida = 5200}, ["Squirtle"] = {level = 20, cons = 47, vida = 1350}, ["Wartortle"] = {level = 40, cons = 93, vida = 2800}, ["Blastoise"] = {level = 85, cons = 194, vida = 5900}, function onAdvance(cid, skill, oldLevel, newLevel) doChangeSpeed(cid, -(getCreatureSpeed(cid)-250)) if #getCreatureSummons(cid) >= 1 then setCreatureMaxHealth(getCreatureSummons(cid)[1], getCreatureMaxHealth(getCreatureSummons(cid)[1]) + pokes[getCreatureName(getCreatureSummons(cid)[1])].cons) doCreatureAddHealth(getCreatureSummons(cid)[1], pokes[getCreatureName(getCreatureSummons(cid)[1])].cons) end return true end Gostaria em especial de saber como funciona esse "cons e level"
  13. Funcionando perfeitamente! Muito obrigado *-*
  14. Pensei que funcionava só com o item editor, vou providenciar
  15. Ainda [06/02/2018 18:53:22] [Error - Action Interface] [06/02/2018 18:53:22] data/actions/scripts/potion.lua:onUse [06/02/2018 18:53:22] Description: [06/02/2018 18:53:22] attempt to index a function value [06/02/2018 18:53:22] stack traceback: [06/02/2018 18:53:22] [C]: in function 'doSendAnimatedText' [06/02/2018 18:53:22] data/actions/scripts/potion.lua:15: in function 'doHealOverTime' [06/02/2018 18:53:22] data/actions/scripts/potion.lua:59: in function <data/actions/scripts/potion.lua:30>
  16. Coloquei a função no item editor Mas agora é fica assim:
  17. Deu um probleminha [06/02/2018 18:40:18] [Error - Action Interface] [06/02/2018 18:40:18] data/actions/scripts/potion.lua:onUse [06/02/2018 18:40:18] Description: [06/02/2018 18:40:18] attempt to index a function value [06/02/2018 18:40:18] stack traceback: [06/02/2018 18:40:18] [C]: in function 'doSendAnimatedText' [06/02/2018 18:40:18] data/actions/scripts/potion.lua:16: in function 'doHealOverTime' [06/02/2018 18:40:18] data/actions/scripts/potion.lua:60: in function <data/actions/scripts/potion.lua:31>
  18. O problema tá aqui: local checkPos = toPos checkPos.stackpos = 1 if getTileThingByPos(checkPos).itemid <= 0 then return true end if not isInArray(waters, getTileInfo(toPos).itemid) then return true end Se eu tirar essa parte do script a rod funciona, mas ela n fica com o alvo pra mirar na água, é como se clicasse nela e nascesse o pokemon ao redor. Basicamente eu tô pescando em mim mesmo. kkkkkkk
  19. Funcionando! mas quando eu uso uma potion ela n dura os 10 segundos e fica dizendo "This pokemon is aready under effects of potions.". Se achar mais fácil, pode tirar os 10 segundos e colocar para ela healar de uma só vez
  20. Melhorou!, porém tá acusando esse erro: [06/02/2018 18:25:19] [Error - Action Interface] [06/02/2018 18:25:19] data/actions/scripts/tools/old rod.lua:onUse [06/02/2018 18:25:19] Description: [06/02/2018 18:25:19] data/actions/scripts/tools/old rod.lua:93: attempt to index a boolean value [06/02/2018 18:25:19] stack traceback: [06/02/2018 18:25:19] data/actions/scripts/tools/old rod.lua:93: in function <data/actions/scripts/tools/old rod.lua:79>
  21. Deu errado amigão, acusou erro [06/02/2018 18:20:29] [Error - LuaScriptInterface::loadFile] data/actions/scripts/potion.lua:9: unexpected symbol near '*' [06/02/2018 18:20:29] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/potion.lua) [06/02/2018 18:20:29] data/actions/scripts/potion.lua:9: unexpected symbol near '*'
  22. Puts, tá dando erro [06/02/2018 18:00:49] [Error - LuaScriptInterface::loadFile] data/actions/scripts/tools/old rod.lua:110: 'end' expected (to close 'function' at line 79) near '<eof>' [06/02/2018 18:00:49] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/tools/old rod.lua) [06/02/2018 18:00:49] data/actions/scripts/tools/old rod.lua:110: 'end' expected (to close 'function' at line 79) near '<eof>'
  23. Gostaria de colocar as potions de usar nos pokemons para curar em porcentagem, ao longo de 10 segundos. function doHealOverTime(cid, heal, turn, effect) --alterado v1.6 peguem o script todo!! if not isCreature(cid) then return true end if turn <= 0 or (getCreatureHealth(cid) == getCreatureMaxHealth(cid)) or getPlayerStorageValue(cid, 173) <= 0 then setPlayerStorageValue(cid, 173, -1) return elseif getCreatureHealth(cid) + heal/10 >= getCreatureMaxHealth(cid) then doSendAnimatedText(getThingPos(cid), "+"..getCreatureMaxHealth(cid) - getCreatureHealth(cid), 65) doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doSendMagicEffect(getThingPos(cid), 12) return end doSendAnimatedText(getThingPos(cid), "+"..heal/10, 65) doCreatureAddHealth(cid, heal/10) doSendMagicEffect(getThingPos(cid), 12) addEvent(doHealOverTime, 1000, cid, heal, turn - 1, effect) addEvent(doUpdateStatusPoke, 1100, getCreatureMaster(cid)) end local potions = { [2273] = {health = 400, animate = "SMALL POT", collor = 140}, [2272] = {health = 1500, animate = "GREAT POT", collor = 140}, [2271] = {health = 4000, animate = "MEGA POT", collor = 140}, [2275] = {health = 10000, animate = "HYPER POT", collor = 140}, [2274] = {health = 30000, animate = "SUPER POT", collor = 140}, } function onUse(cid, item, frompos, item2, topos) local pid = getThingFromPosWithProtect(topos) local pokeballInfo = getPokeballInfo(getPlayerSlotItem(cid, 8).uid) if not isCreature(pid) or not isSummon(pid) then return doPlayerSendCancel(cid, "You can only use potions on your own Pokemons!") end if getCreatureMaster(pid) ~= cid then return doPlayerSendCancel(cid, "You can only use potions on your own Pokemons!") end if getCreatureHealth(pid) == getCreatureMaxHealth(pid) then return doPlayerSendCancel(cid, "This pokemon is already at full health.") end if getPlayerStorageValue(pid, 173) >= 1 then return doPlayerSendCancel(cid, "This pokemon is already under effects of potions.") end if getPlayerStorageValue(cid, 52481) >= 1 then return doPlayerSendCancel(cid, "You can't do that while a duel.") end doCreatureSay(cid, "".. pokeballInfo.nick..", take this potion!", TALKTYPE_SAY) doSendAnimatedText(getThingPos(pid), potions[item.itemid].animate, potions[item.itemid].collor) setPlayerStorageValue(pid, 173, 1) doRemoveItem(item.uid, 1) doHealOverTime(pid, potions[item.itemid].health, 10, 12) return true end
  24. Ops, não funcionou. Ontem eu fiquei tentando e consegui ajustar o original. Esse tá funcionando 100%. function onDeEquip(cid, item, slot) if getPlayerStorageValue(cid, 32001) == 1 then doPlayerSendCancel(cid, "Sorry, not possible.") doRemoveItem(item.uid) doPlayerAddItem(cid, item.itemid) return true end end Mesmo assim, obrigado por tudo, amigão!

Informação Importante

Confirmação de Termo