Ir para conteúdo

Vodkart

Héroi
  • Registro em

Tudo que Vodkart postou

  1. local positions = { {texto = "CTF" , pos = {x = 180, y = 48, z = 7}}, {texto = "Battle F." , pos = {x = 184, y = 48, z = 7}}, {texto = "DesertWar" , pos = {x = 184, y = 57, z = 7}}, {texto = "Castle24H" , pos = {x = 157, y = 62, z = 7}}, {texto = "Castle48H" , pos = {x = 175, y = 62, z = 7}}, {texto = "TeamBattle" , pos = {x = 176, y = 56, z = 7}}, {texto = "Campo M." , pos = {x = 177, y = 56, z = 7}}, {texto = "FireStorm" , pos = {x = 187, y = 53, z = 7}}, {texto = "IOE" , pos = {x = 175, y = 56, z = 7}}, {texto = "rank" , pos = {x = 60, y = 122, z = 7}}, {texto = "Boss Room" , pos = {x = 187, y = 51, z = 7}}, {texto = "Leia" , pos = {x = 182, y = 51, z = 7}}, {texto = "RushEvent" , pos = {x = 174, y = 56, z = 7}}, {texto = "Leia" , pos = {x = 2959, y = 698, z = 6}}, {texto = "Editados" , pos = {x = 233, y = 2050, z = 4}}, {texto = "Snowball" , pos = {x = 180, y = 57, z = 7}}, {texto = "Dota" , pos = {x = 177, y = 49, z = 7}} } function onThink(cid, interval, lastExecution) for _, pid in pairs(positions) do local t = getSpectators(pid.pos, 7, 5, false) if t then for _, cid in ipairs(t) do if isPlayer(cid) then doCreatureSay(cid, pid.texto, TALKTYPE_ORANGE_1, false, cid, pid.pos) end end end end return true end
  2. https://pastebin.com/raw/7pwRiwCQ
  3. function onTime () doItemSetAttribute(doCreateItem(1387, 1, {x = 108, y = 78, z = 8, stackpos = 1}), "aid", 2138) local tp_pos, minutos = {x = 108, y = 78, z = 8},3 doTeleportTimer(tp_pos, minutos*60) doBroadcastMessage("[BattleField] Comeca em 3 minutos! O teleport sera fechado quando o evento comecar!", MESSAGE_EVENT_ADVANCE) setGlobalStorageValue(414, 0) setGlobalStorageValue(415, 0) addEvent(startBattlefield, 3 * 60 * 1000) return true end function startBattlefield() doRemoveItem(getTileItemById({x = 108, y = 78, z = 8}, 1387).uid, 1) if getGlobalStorageValue(414) > 0 and getGlobalStorageValue(415) > 0 then doBroadcastMessage("[BattleField] começou! O teleport fechou!", MESSAGE_EVENT_ADVANCE) for _, cid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(cid, 501) > 0 or getPlayerStorageValue(cid, 502) > 0 then doCreatureSetNoMove(cid, false) end end else doBroadcastMessage("[BattleField] Não começou por não ter jogadores suficientes.", MESSAGE_EVENT_ADVANCE) for _, cid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(cid, 501) > 0 or getPlayerStorageValue(cid, 502) > 0 then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doCreatureSetNoMove(cid, false) end end end return true end
  4. só usar a função que criei doTeleportTimer(pos, segundos) exemplo: local minutos = 5 local tp_pos = {x = 10, y = 20, z = 7} doTeleportTimer(tp_pos, minutos*60)
  5. adc na sua lib essa função: function convertTime(minutes,seconds) local hours = 0 repeat if seconds >= 60 then minutes = minutes + 1; seconds = seconds - 60 elseif minutes >= 60 then hours = hours + 1; minutes = minutes - 60 end until seconds < 60 and minutes < 60 return {hours = hours, seconds = seconds, minutes = minutes} end function doTeleportTimer(pos, seconds) local t = convertTime(0, seconds) doSendAnimatedText(pos, t.minutes > 0 and t.minutes..":"..t.seconds or t.seconds, 145) if seconds ~= 1 then addEvent(doTeleportTimer, 1000, pos, seconds-1) end end e no seu mods usa assim: <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Perfect Zombie System" version="8.6" author="Vodkart" contact="tibiaking.com" enabled="yes"> <config name="zombie_config"><![CDATA[ zombie_config = { storages = {172100, 172101, 172102}, -- n edite players = {min = 2, max = 30}, -- min, max players no evento rewards = {items ={{10503,1},{11192,10}}, trophy = 5805}, timeToStartEvent = 30, -- segundos para começar o evento CheckTime = 3, -- tempo que o TP fica aberto para os jogadores adrentarem o evento teleport = {{x=108, y=78, z=7}, {x=144 , y=3161, z=7}}, -- position do tp onde aparece, position para onde o jogador vai ao entrar no tp arena = {{x=109,y=3135,z=7},{x=188,y=3203,z=7}}, -- area positions monster_name = "Zombie Event", timeBetweenSpawns = 10, min_Level = 1000 } zombie_days = { ["Monday"] = {"19:00"}, ["Tuesday"] = {"19:00"}, ["Wednesday"] = {"19:00"}, ["Thursday"] = {"19:00"}, ["Friday"] = {"19:00"}, ["Saturday"] = {"19:00"}, ["Sunday"] = {"19:00"} } function removeZombieTp() local t = getTileItemById(zombie_config.teleport[1], 1387).uid return t > 0 and doRemoveItem(t) and doSendMagicEffect(zombie_config.teleport[1], CONST_ME_POFF) end function ZerarStoragesZombie() for _, stor in pairs(zombie_config.storages) do setGlobalStorageValue(stor, 0) end end function getPlayersInZombieEvent() local t = {} for _, pid in pairs(getPlayersOnline()) do if isInRange(getPlayerPosition(pid), zombie_config.arena[1], zombie_config.arena[2]) and getPlayerAccess(pid) < 3 then t[#t+1] = pid end end return t end function getZombieRewards(cid, items) local backpack = doPlayerAddItem(cid, 1999, 1) -- backpackID for _, i_i in ipairs(items) do local item, amount = i_i[1],i_i[2] if isItemStackable(item) or amount == 1 then doAddContainerItem(backpack, item, amount) else for i = 1, amount do doAddContainerItem(backpack, item, 1) end end end end function HaveCreatureZombie(area, remove) for x = area[1].x - 1, area[2].x + 1 do for y = area[1].y - 1, area[2].y + 1 do local pos = {x=x, y=y, z=area[1].z} local m = getTopCreature(pos).uid if remove ~= false and m ~= 0 and isMonster(m) then doRemoveCreature(m) end end end end function spawnZombie() if #getPlayersInZombieEvent() > 1 then local pos = {x=math.random(zombie_config.arena[1].x, zombie_config.arena[2].x), y=math.random(zombie_config.arena[1].y,zombie_config.arena[2].y), z=zombie_config.arena[1].z} doSendDistanceShoot({x = pos.x - math.random(4, 6), y = pos.y - 5, z = pos.z}, pos, CONST_ANI_FIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_HITBYFIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_FIREAREA) doSendMagicEffect(pos, CONST_ME_MORTAREA) doSummonCreature(zombie_config.monster_name, pos, false) setGlobalStorageValue(zombie_config.storages[2], getGlobalStorageValue(zombie_config.storages[2]) <= 0 and 1 or getGlobalStorageValue(zombie_config.storages[2])+1) doBroadcastMessage("A zombie has spawned! There is currently " .. getGlobalStorageValue(zombie_config.storages[2]) .. " zombies in the zombie event!", MESSAGE_STATUS_CONSOLE_RED) addEvent(spawnZombie, zombie_config.timeBetweenSpawns *1000) end end function CheckZombieEvent(delay) if getGlobalStorageValue(zombie_config.storages[1]) ~= (zombie_config.players.max+1) then if delay > 0 and getGlobalStorageValue(zombie_config.storages[1]) < zombie_config.players.max then doBroadcastMessage("Zombie event starting in " .. delay .. " minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING) elseif delay == 0 and getGlobalStorageValue(zombie_config.storages[1]) < zombie_config.players.min then for _, cid in pairs(getPlayersInZombieEvent()) do doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) end removeZombieTp() doBroadcastMessage("The Zombie event could not start because of to few players participating.\n At least " .. zombie_config.players.min .. " players is needed!", MESSAGE_STATUS_WARNING) ZerarStoragesZombie() elseif delay == 0 and getGlobalStorageValue(zombie_config.storages[1]) >= zombie_config.players.min then removeZombieTp() doBroadcastMessage("The Zombie event is now full [" .. getGlobalStorageValue(zombie_config.storages[1]) .. " players]! The event will soon start.") for _, var in pairs(getPlayersInZombieEvent()) do doPlayerSendTextMessage(var, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. zombie_config.timeToStartEvent .. " seconds! Good luck!") end addEvent(spawnZombie, zombie_config.timeToStartEvent*1000) end addEvent(CheckZombieEvent, 60000, delay-1) end end]]></config> <event type="statschange" name="ZombieStats" event="script"><![CDATA[ domodlib('zombie_config') if isPlayer(cid) and isMonster(attacker) and getCreatureName(attacker) == zombie_config.monster_name then if isInRange(getPlayerPosition(cid), zombie_config.arena[1], zombie_config.arena[2]) then if #getPlayersInZombieEvent() > 1 then doBroadcastMessage(getPlayerName(cid) .. " have been eated by Zombies!", MESSAGE_STATUS_CONSOLE_RED) local corpse = doCreateItem(getPlayerSex(cid) == 1 and 3058 or 6081, 1, getPlayerPosition(cid)) doItemSetAttribute(corpse, "description", "You recognize " .. getCreatureName(cid) .. ". He was killed by "..(isMonster(attacker) and "a "..string.lower(getCreatureName(attacker)) or isCreature(attacker) and getCreatureName(attacker) or "a field item")..".") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) if #getPlayersInZombieEvent() == 1 then local winner = getPlayersInZombieEvent()[1] doBroadcastMessage(getCreatureName(winner)..' has survived at zombie event!') local goblet = doPlayerAddItem(winner, zombie_config.rewards.trophy, 1) doItemSetAttribute(goblet, "description", "Awarded to " .. getPlayerName(winner) .. " for winning the Zombie event.") getZombieRewards(winner, zombie_config.rewards.items) doTeleportThing(winner, getTownTemplePosition(getPlayerTown(winner)), false) doSendMagicEffect(getPlayerPosition(winner), CONST_ME_TELEPORT) doBroadcastMessage(getPlayerName(winner).." won the Zombie event! Congratulations!") HaveCreatureZombie(zombie_config.arena, true) ZerarStoragesZombie() end else doBroadcastMessage("No one survived in the Zombie Event.", MESSAGE_EVENT_ADVANCE) HaveCreatureZombie(zombie_config.arena, true) ZerarStoragesZombie() end return false end end return true]]></event> <globalevent name="Zombie_Start" interval="60000" event="script"><![CDATA[ domodlib('zombie_config') function onThink(interval, lastExecution) if zombie_days[os.date("%A")] then local hrs = tostring(os.date("%X")):sub(1, 5) if isInArray(zombie_days[os.date("%A")], hrs) and getGlobalStorageValue(zombie_config.storages[3]) <= 0 then local tp = doCreateItem(1387, 1, zombie_config.teleport[1]) doItemSetAttribute(tp, "aid", 45110) CheckZombieEvent(zombie_config.CheckTime) doTeleportTimer(zombie_config.teleport[1], zombie_config.CheckTime*60) setGlobalStorageValue(zombie_config.storages[1], 0) setGlobalStorageValue(zombie_config.storages[2], 0) HaveCreatureZombie(zombie_config.arena, true) end end return true end]]></globalevent> <event type="login" name="Zombie_Login" event="script"><![CDATA[ domodlib('zombie_config') function onLogin(cid) registerCreatureEvent(cid, "ZombieBattle") registerCreatureEvent(cid, "ZombieStats") if isInRange(getPlayerPosition(cid), zombie_config.arena[1], zombie_config.arena[2]) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end return true end]]></event> <event type="combat" name="ZombieBattle" event="script"><![CDATA[ domodlib('zombie_config') if isPlayer(cid) and isPlayer(target) and isInRange(getPlayerPosition(cid), zombie_config.arena[1], zombie_config.arena[2]) then doPlayerSendCancel(cid, "You may not attack this player.") return false end return true ]]></event> <movevent type="StepIn" actionid ="45110" event="script"><![CDATA[ domodlib('zombie_config') function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getPlayerAccess(cid) > 3 then return doTeleportThing(cid, zombie_config.teleport[2]) end if getPlayerLevel(cid) < zombie_config.min_Level then doTeleportThing(cid, fromPosition, true) doPlayerSendCancel(cid, "You need to be at least level " .. zombie_config.min_Level .. ".") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end if getGlobalStorageValue(zombie_config.storages[1]) <= zombie_config.players.max then doTeleportThing(cid, zombie_config.teleport[2]) setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) doBroadcastMessage(getPlayerName(cid) .. " entered the Zombie event! Currently " .. getGlobalStorageValue(zombie_config.storages[1]) .. " players have joined!", MESSAGE_STATUS_CONSOLE_RED) if getGlobalStorageValue(zombie_config.storages[1]) == zombie_config.players.max then setGlobalStorageValue(zombie_config.storages[1], getGlobalStorageValue(zombie_config.storages[1])+1) removeZombieTp() doBroadcastMessage("The Zombie event is now full [" .. getGlobalStorageValue(zombie_config.storages[1])-1 .. " players]! The event will soon start.") for _, var in pairs(getPlayersInZombieEvent()) do doPlayerSendTextMessage(var, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. zombie_config.timeToStartEvent .. " seconds! Good luck!") end addEvent(spawnZombie, zombie_config.timeToStartEvent*1000) end end return true end]]></movevent> <talkaction words="/zombiestart;!zombiestart" access="5" event="buffer"><![CDATA[ domodlib('zombie_config') if getGlobalStorageValue(zombie_config.storages[3]) > 0 then doPlayerSendCancel(cid, "The event is already starting.") return true elseif not param or not tonumber(param) then doPlayerSendCancel(cid, "Use only numbers.") return true end local param = tonumber(param) <= 0 and 1 or tonumber(param) local tp = doCreateItem(1387, 1, zombie_config.teleport[1]) doItemSetAttribute(tp, "aid", 45110) CheckZombieEvent(tonumber(param)) doTeleportTimer(zombie_config.teleport[1], tonumber(param)*60) ZerarStoragesZombie() setGlobalStorageValue(zombie_config.storages[3], 1) HaveCreatureZombie(zombie_config.arena, true) ]]></talkaction> <globalevent name="ZombieDebug-Start" type="start" event="buffer"><![CDATA[ domodlib('zombie_config') ZerarStoragesZombie() return true]]></globalevent> </mod>
  6. tem sim, super fácil!! tem algum evento especifico?
  7. function onStepIn(cid, item, position, fromPosition) for var, ret in ipairs(trainers) do local m = getTopCreature(ret).uid if m == 0 then doTeleportThing(cid, ret) return true end end doPlayerSendCancel(cid, "A Sala De Treiner Ja Esta Cheia.") doTeleportThing(cid, fromPosition, false) doSendMagicEffect(fromPosition, 2) return true end
  8. Porque daria pra pegar o bau e colocar na bp? acho errado. Concordo que deveriam aparecer vários baús, digamos assim: 1 báu que contenha o item e espalhados em volta dele, outros "baus trolls" que ao clicar te mandariam para o templo(feito isso o "bau trolls" que você clicou é excluído) até alguém clicar no bau certo, e esse evento teria um tempo, para que os jogadores achassem ele no mapa. sobre a chance como o stormm ja colocou, ficou ótimo! eu colocaria chest normais que não poderiam ser mexidas de lugar!!
  9. é que como o corpse é removido ou criado um teleport, não acha o corpse para "pegar o itens", tem que ir na lib e bloquear esse monstro. BlockMonsters = {"Gaz'Haragoth"},
  10. Muito legal! Meu desafio para você nesse código é fazer com que entregue itens randômicos!! Para variar os itens quando clicar no bau, podendo adquirir itens bons e outros nem tão bom assim kkk se quiser pode colocar chance entre os itens... abraços!! REP+
  11. Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.
  12. local config = { posicao = { x = 1168, y = 731, z = 13}, -- Posição em que o player deve estar no altar item = {{2175,{x=1298, y=720, z=13}},{2455,{x=1292, y=719, z=13}},{2140,{x=1295, y=719, z=13}}}, -- id do item e pos teleporte = {1387, { x = 1209, y = 818, z = 13}, { x = 1850, y = 481, z = 12} }, -- { id do Teleporte / onde será criado o teleporte / onde irá teleportar } tempo = 5000 -- Tempo para que o teleporte desapareça } function removeTP() local t = getTileItemById(config.teleporte[2], config.teleporte[1]).uid return t > 0 and doRemoveItem(t) and doSendMagicEffect(config.teleporte[2], CONST_ME_POFF) end function onUse(cid, item, fromPosition, itemEx, toPosition) local items = {} local pId = getTopCreature(config.posicao).uid if pId == 0 or not isPlayer(pId) then doPlayerSendCancel(cid, "Posição invalida!") return true end for _, k in ipairs(config.item) do local v = getTileItemById(k[2], k[1]) if v.uid == 0 then doPlayerSendCancel(cid, "Todos os itens precisão estar na posição.") return true end table.insert(items, v) end for _, remove in ipairs(items) do doRemoveItem(remove.uid) end doCreateTeleport(config.teleporte[1], config.teleporte[3], config.teleporte[2]) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) addEvent(removeTP, config.tempo) return true end
  13. claro, tem que aumentar a tabela de rewards tbm. troque: local prizes = { [1] = {{itemid = 2160, count = 50}, {itemid = 13536, count = 20}}} -- Mega bit e Oran Berry por local prizes = { [1] = {{itemid = 2160, count = 50}, {itemid = 13536, count = 20}}, [2] = {{itemid = 2160, count = 50}, {itemid = 13536, count = 20}}, [3] = {{itemid = 2160, count = 50}, {itemid = 13536, count = 20}}, [4] = {{itemid = 2160, count = 50}, {itemid = 13536, count = 20}}, [5] = {{itemid = 2160, count = 50}, {itemid = 13536, count = 20}}, [6] = {{itemid = 2160, count = 50}, {itemid = 13536, count = 20}} } -- Mega bit e Oran Berry
  14. https://pastebin.com/raw/yht9Pr5b
  15. function onLogin(cid) local house = getHouseByPlayerGUID(getPlayerGUID(cid)) local pos = {x=32369, y=32241, z=7} -- pos onde será teleportado if isPremium(cid) and getPlayerStorageValue(cid, 548474) <= 0 then setPlayerStorageValue(cid, 548474, 1) elseif not isPremium(cid) and getPlayerStorageValue(cid, 548474) > 0 then doPlayerSendTextMessage(cid, 22, "seu premium acabou") doCreatureChangeOutfit(cid,{lookType = getPlayerSex(cid) == 0 and 136 or 128}) if house then setHouseOwner(house,NO_OWNER_PHRASE,true) end doTeleportThing(cid, pos) setPlayerStorageValue(cid, 548474, 0) end return true end
  16. que bom que conseguiu resolver, rs, tinha ido viajar e só voltei hoje.
  17. a função 'doPlayerAddStamina' n existe no seu servidor, troque por 'doPlayerSetStamina'
  18. slot 3 é backpack? está retornando o id da backpack só kk teria que fazer um loop na backpack function Container.getItems(self, ret) ret = ret or {} for index = self:getSize()-1, 0, -1 do local item = self:getItem(index) if item:isContainer() == true then ret[#ret+1] = item else ret[#ret+1] = item end end return ret end
  19. @ADM Mayk on BaiakME claro man, olha como fica no banco de dados: "Retro Citizen" e como vc coloco no script ["RetroCitizen"] colocou junto. tenta deixar ["Retro Citizen"]
  20. local SHOP_MSG_TYPE = MESSAGE_EVENT_ORANGE local SQL_interval = 30 --- ### Outfits List ### local outfits = { ["RetroCitizen"] = {storage = 789540, out = {[0] = 371,[1] = 370}} -- 0 é sexo female e 1 male } function onThink(interval, lastExecution) local result_plr = db.getResult("SELECT * FROM z_ots_comunication") if(result_plr:getID() ~= -1) then while(true) do id = tonumber(result_plr:getDataInt("id")) local action = tostring(result_plr:getDataString("action")) local delete = tonumber(result_plr:getDataInt("delete_it")) local cid = getPlayerByName(tostring(result_plr:getDataString("name"))) if isPlayer(cid) then local itemtogive_id = tonumber(result_plr:getDataInt("param1")) local itemtogive_count = tonumber(result_plr:getDataInt("param2")) local outfit_name = string.lower(tostring(result_plr:getDataString("param3"))) local itemvip = tonumber(result_plr:getDataInt("param4")) local add_item_type = tostring(result_plr:getDataString("param5")) local add_item_name = tostring(result_plr:getDataString("param6")) local points = tonumber(result_plr:getDataInt("param7")) local received_item = 0 local full_weight = 0 if(action == 'give_item') then full_weight = getItemWeightById(itemtogive_id, itemtogive_count) if isItemRune(itemtogive_id) == TRUE then full_weight = getItemWeightById(itemtogive_id, 1) else full_weight = getItemWeightById(itemtogive_id, itemtogive_count) end local free_cap = getPlayerFreeCap(cid) local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) if full_weight <= free_cap then received_item = doPlayerAddItemEx(cid, new_item) if received_item == RETURNVALUE_NOERROR then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'Voce Recebeu >> '.. add_item_name ..' << Da Nossa Loja, Relogue Para Salvar A Compra.') db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, '>> '.. add_item_name ..' << from OTS shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end if(action == 'give_outfit') then if outfits[outfit_name] then local add_outfit = outfits[outfit_name].out[getplayerSex(cid)] if not canPlayerWearOutfit(cid, add_outfit, 3) then db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) doPlayerAddOutfit(cid, add_outfit, 3) setPlayerStorageValue(cid, outfits[outfit_name].storage, 1) doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, "Voca Recebeu A Roupa " .. add_item_name .. " Da Nossa Loja.") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, "Voce Ja Tem Essa Roupa. Seus Pontos Foram Devolvidos, Obrigado.") db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. points .. " WHERE `id` = " .. getPlayerAccountId(cid) .. ";") end end end end if not(result_plr:next()) then break end end result_plr:free() end return true end no out deixa assim: <outfit id="25" quest="789540"> <list gender="0" lookType="371" name="RetroCitizen"/> <list gender="1" lookType="370" name="RetroCitizen"/> </outfit>
  21. voce trocou o aid dos tiles pra testar como falei? vai la do tile e coloca AID: 46521 e tenta passar com um jogador como ficou a sua tag no movements.xml?
  22. local aid = { [46521] = {89745,1,"Apenas genins ou superior podem ter acesso a esta area!"}, [46522] = {89745,2,"Apenas chunins ou superior podem ter acesso a esta area!"}, [46523] = {89745,3,"Apenas jounins ou superior podem ter acesso a esta area!"}, [46524] = {89745,4,"Apenas anbus ou superior podem ter acesso a esta area!"}, [46525] = {89745,5,"Apenas sennins ou superior podem ter acesso a esta area!"} } function onStepIn(cid, item, position, fromPosition) local t = aid[item.actionid] if not isPlayer(cid) or not t then return true end if getPlayerStorageValue(cid, t[1]) ~= t[2] then doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, 27,t[3]) return true end return true end agora só usar assim: qndo vc quiser colocar tile só pra genins passar vc usa: ACTIONID do tile 46521 qndo vc quiser colocar tile só pra chunins passar vc usa: ACTIONID do tile 46522 qndo vc quiser colocar tile só pra jounins passar vc usa: ACTIONID do tile 46523 assim por adiante igual está no código ali /\
  23. já enviei por PM
  24. local dir = "data/Pokemon Statistics/"..poke.." Attempts.txt" checou pra ver se tem esse arquivo no seu servidor?
  25. não é mais fácil criar um npc de tibia 8.6 e só reprogramar ele para este tipo de situação?

Informação Importante

Confirmação de Termo