Ir para conteúdo

Vodkart

Héroi
  • Registro em

Tudo que Vodkart postou

  1. vou refazer o simple task pro 5.0 autoloot npc auction mas depois das provas, talvez no começo de julho kkk então aguardem
  2. local config = { loginMessage = getConfigValue("loginMessage"), useFragHandler = getBooleanFromString(getConfigValue("useFragHandler")) } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. "Hello ." doPlayerSendTextMessage(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to manage your account and if you want to start over then type {cancel}.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to create an account or type {recover} to recover an account.") end if (not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "critical") registerCreatureEvent(cid, "recompensa") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "TopFrags") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "VipReceive") registerCreatureEvent(cid, "expvip") registerCreatureEvent(cid, "PlayerKill") registerCreatureEvent(cid, "AuraLogin") registerCreatureEvent(cid, "Auto Loot") registerCreatureEvent(cid, "vipeffects") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "TopEffect") registerCreatureEvent(cid, "BlessAmulet") registerCreatureEvent(cid, "ProtectLevel") registerCreatureEvent(cid, "TiraBattle") registerCreatureEvent(cid, "hmup") registerCreatureEvent(cid, "Popup1") registerCreatureEvent(cid, "blesscheck") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "CastleExp") registerCreatureEvent(cid, "DesertDeath") registerCreatureEvent(cid, "DesertCombat") registerCreatureEvent(cid, "BattleDeath") registerCreatureEvent(cid, "ZombieThink") registerCreatureEvent(cid, "ZombieDeath") registerCreatureEvent(cid, "BattleCombat") registerCreatureEvent(cid, "FragsGuildLogin") registerCreatureEvent(cid, "FragsGuildKill") registerCreatureEvent(cid, "ctf") registerCreatureEvent(cid, "ga1") registerCreatureEvent(cid, "ga2") registerCreatureEvent(cid, "ga3") registerCreatureEvent(cid, "gv1") registerCreatureEvent(cid, "gv2") registerCreatureEvent(cid, "gv3") if (InitArenaScript ~= 0) then InitArenaScript = 1 for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) end setPlayerStorageValue(cid, 42350, 0) setPlayerStorageValue(cid, 42352, 0) registerCreatureEvent(cid, "deathchannel") if getPlayerStorageValue(cid, 48913) == -1 then setPlayerStorageValue(cid, 48913, 0) end return true end OBS: tais usando o onlogin.lua certo? porque tem server que tem mais de um, podendo entrar em conflito e tal, é bom dar uma visualizada nisso.
  3. Antes de mais nada execute essas querys no seu banco de dados ALTER TABLE `guilds` ADD `frags` INT(11) NOT NULL DEFAULT 0; ALTER TABLE `guilds` ADD `acesstime` INT(15) NOT NULL DEFAULT 0;
  4. a tabela é 'storage' e colocaram 'storages' function onLogin(cid) if vip.hasVip(cid) and getPlayerStorageValue(cid, 27001) <= 0 then setPlayerStorageValue(cid, 27001, 1) elseif getPlayerStorageValue(cid, 27001) > 0 and not vip.hasVip(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Auto Loot] You VIP is Over, Start a new list!") setPlayerStorageValue(cid, 27001, -1) setPlayerStorageValue(cid, info.storage[1], -1) end return true end function onKill(cid, target, lastHit) if isPlayer(cid) and getAutoLootDays(cid) > 0 and isMonster(target) then addEvent(corpseRetireItems, 0, cid ,getThingPos(target)) end return true end
  5. local storage = 342005 function onSay(cid, words, param) local limit = isInArray({1,2,5,6}, getPlayerVocation(cid)) and 200 or isInArray({3,7}, getPlayerVocation(cid)) and 100 or 0 local amount = getPlayerStorageValue(cid, storage) <= 0 and 0 or getPlayerStorageValue(cid, storage) if limit <= 0 or amount == limit then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce nao pode usar ou atingiu o limite maximo de "..limit.." Mana Scroll por character.") return true end if doPlayerRemoveItem(cid,9020,1) and getCreatureMaxMana(cid) <= 1900000 then setPlayerStorageValue(cid, storage, amount+1) setCreatureMaxMana(cid, getCreatureMaxMana(cid) + 1000) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce recebeu 1000 de Mana.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce nao tem Mana scroll ou ja atingiu o Mana Maximo de mana permitido digite !mymp.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return true end -- local storage = 342006 function onSay(cid, words, param) local limit = isInArray({4,8}, getPlayerVocation(cid)) and 200 or isInArray({3,7}, getPlayerVocation(cid)) and 100 or 0 local amount = getPlayerStorageValue(cid, storage) <= 0 and 0 or getPlayerStorageValue(cid, storage) if limit <= 0 or amount == limit then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce nao pode usar ou atingiu o limite maximo de "..limit.." Life Scroll por character.") return true end if doPlayerRemoveItem(cid,11213,1) and getCreatureMaxHealth(cid) <= 1900000 then setPlayerStorageValue(cid, storage, amount+1) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + 1000) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "voce recebeu 1000 de Life.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce nao tem life scroll ou ja atingiu o LIFE Maximo de life permitido digite !myhp.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return true end
  6. eu ja coloquei no npc qndo ele entrar, vai ser anunciado...
  7. https://tibiaking.com/forums/topic/78605-mods-86-perfect-zombie-system-automático-v10/
  8. dai usa assim: npcgoup.lua function onTimer() local pos = {x=1050,y=1060,z=7} -- Local onde aparece o npc local npc = doCreateNpc("Goup", pos ) -- Altere o (Goup) pelo nome do seu npc. local nMin = 15 -- tempo em minuto para o npc sumir. addEvent(doRemoveCreature, nMin*60*1000, npc) return true end e a tag vc usa desse jeito: <globalevent name="NpcSumir" time="14:00" event="script" value="npcgoup.lua"/>
  9. me envia por MP a lib do seu battleifield que eu edito pra vc.
  10. npc 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 oracle(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getGlobalStorageValue(24658) <= 0 then -- ALTERAR Storage usado no Sistema, colocar sempre o mesmo npcHandler:say("O Evento Está Fechado.", cid) return true end if doPlayerRemoveMoney(cid, 1000) then -- ALTERAR 10000, esse é o valor para entrar doTeleportThing(cid, {x=1009,y=804,z=12}) -- ALTERAR coordenada da sala de espera doBroadcastMessage("O Player "..getPlayerName(cid).." entrou no evento.",22) else npcHandler:say("Voce Não Possui 1000 gold.", cid) -- ALTERAR frase caso o player não tenha 10k return true end return true end function oracle1(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end npcHandler:say("Volte Quando Tive 1000 gold", cid) -- ALTERAR frase caso o player diga No return true end local node0 = keywordHandler:addKeyword({'evento'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce Possui 10g Para Me Paga?'}) -- ALTERAR segunda frase de interação node0:addChildKeyword({'yes'}, oracle, {blessing = 1}) node0:addChildKeyword({'no'}, oracle1, {blessing = 1}) npcHandler:addModule(FocusModule:new()) npc por tempo: https://tibiaking.com/forums/topic/27682-globalevents-npc-aparecendo-sozinho/
  11. é que seu servidor deve ser em milesegundos, ai na TAG do globalevents.xml troca o 60 por 60000, ficando assim: <globalevent name="GlobalBattle" interval="60000" event="script" value="BattleGlobalEvents.lua"/>
  12. posta o script do npc
  13. kkkkk quem sabe quando eu tiver tempo eu refaço esse código, até pq tem que colocar uma sala de espera, etc... npc que apareça em determinado horário, tempo de espera e por ai vai.
  14. Beleza, mas isso ai já outra coisa, seria creaturescript, teria que ver o código e tal... como eu já fiz um zombie system eu não tenho muito interesse de responder mais este tópico, até porque o globalevents que tinha erro já foi resolvido. abraços.
  15. testa assim, se funcionar depois eu coloco em determinado horário. function onThink(interval, lastExecution) local storage = {24658,24659} -- ALTERAR storage usado no sistema deixar todos iguais local items = {{2160,1500},{9020,300}} -- itens local arena = {{x = 1024, y = 892, z = 12},{x = 1224, y = 1085, z = 12}} -- area positions if getGlobalStorageValue(storage[1]) <= 0 then return true end function getPlayersInLixoEvent() local t = {} for _, pid in pairs(getPlayersOnline()) do if isInRange(getPlayerPosition(pid), arena[1], arena[2]) and getPlayerAccess(pid) < 3 then t[#t+1] = pid end end return t end function getLixoRewards(cid, items) local backpack = doPlayerAddItem(cid, 10518, 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 checkArenaLixo() if #getPlayersInLixoEvent() > 1 then addEvent(checkArenaLixo, 3000) -- ainda em batalha elseif #getPlayersInLixoEvent() == 1 then local cid = getPlayersInLixoEvent()[1] setGlobalStorageValue(storage[1], -1) setGlobalStorageValue(storage[2], -1) getLixoRewards(cid, items) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você é o Vencedor do Evento.") -- ALTERAR frase para o vencedor do premio doBroadcastMessage("O Player "..getPlayerName(cid).." é o Vencedor do Evento.",22) -- ALTERAR frase para todos, do ganhador do premio else setGlobalStorageValue(storage[1], -1) setGlobalStorageValue(storage[2], -1) doBroadcastMessage("Todos os Jogadores Se mataram, fim do Evento.",22) -- ALTERAR frase para todos, do ganhador do premio end end if getGlobalStorageValue(storage[2]) <= 0 then setGlobalStorageValue(storage[2], 1) addEvent(checkArenaLixo, 3000) end return true end
  16. coloca area pvp pelo rme
  17. e existe o nome do item sendo "armor +2" no items.xml ?
  18. Vodkart postou uma resposta no tópico em Suporte Tibia OTServer
    ela não existe mais, no caso tem que passar o arquivo de MODS para lua, digamos todos, seja talkaction, creaturescript, etc... Todos com arquivos individuais... @TOPIC no caso do npc dele não estava bugado, mas sim o sistema de bank no serve kkkk era só ir em config.lua e deixar essa linha ativada: bankSystem = true -- Ativar banksystem
  19. function getMilharNumber(number) local vod, kar, t = string.match(number,'^([^%d]*%d)(%d*)(.-)$') return vod..(kar:reverse():gsub('(%d%d%d)', '%1.'):reverse())..t end function onSay(cid, words, param) local str,max = "Rank Blance\n\n",10 local query = db.getResult("SELECT `name`, `balance` FROM `players` WHERE `id` > 6 AND `group_id` < 2 ORDER BY `balance` DESC, `name` ASC;") if (query:getID() ~= -1) then k = 1 repeat str = str .. "\n " .. k .. ". "..query:getDataString("name").." - [" .. getMilharNumber(query:getDataInt("balance")) .. "]" k = k + 1 until not query:next() or k > max query:free() end return doShowTextDialog(cid,6500, str) end @poko360 se ainda bugar tenta trocar essa linha: return doShowTextDialog(cid,6500, str) por return doPlayerPopupFYI(cid, str)
  20. aquele é o global event msm, tem a função main --> onTime()
  21. local config = { semana_mes = "semana", days = {1,2,3,4,5,6,7}, -- Dia das semanas que irá acontecer o evento goblet = 5805, -- Troféu que vai pro vencedor do evento rewards = {2195, 2152, 2160}, -- Recompensas. moneyReward = {2160, 10, 1},-- moneyId, quantidade, usar1 pra usar 0 pra não usar playerCount = 2001, -- Storage dos players que entram e sai do evento zombieCount = 2002, -- Storage do zombie do event teleportActionId = 2008, -- Action ID do teleport teleportPosition = {x = 652, y = 1020, z = 7, stackpos = 1}, -- Onde o teleport é criado teleportToPosition = {x = 559, y = 589, z = 7}, -- Pra onde será teleportad?o teleportId = 1387, -- ID do teleporte timeToStartEvent = 2, -- Minutos que o portal irá ficar aberto até os player entrarem timeBetweenSpawns = 20, -- Segundos dps do evento ser startado começarem a aparecer os zombie zombieName = "event zombie", -- Nome do zombie sumonado playersNeededToStartEvent = 3, -- Players necessários pro evento ser iniciado -- Area que o zumbi vai spawnar fromPosition = {x = 543, y = 578, z = 7}, -- top de fromPosition até toPosition = {x = 577, y = 600, z = 7} -- -- em baixo toPostion } function onTime() local time = os.date("*t") if (config.semana_mes == "semana" and isInArray(config.days,time.wday)) or (config.semana_mes == "mes" and isInArray(config.days,time.day)) or config.semana_mes == "" then local tp = doCreateTeleport(config.teleportId, config.teleportToPosition, config.teleportPosition) doItemSetAttribute(tp, "aid", config.teleportActionId) doBroadcastMessage("Zombie event starting in " .. config.timeToStartEvent .. " minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING) setGlobalStorageValue(config.playerCount, 0) setGlobalStorageValue(config.zombieCount, 0) addEvent(startEvent, config.timeToStartEvent * 1000 * 60) end return true end function startEvent() local fromp, top = config.fromPosition, config.toPosition if getGlobalStorageValue(config.playerCount) >= config.playersNeededToStartEvent then addEvent(spawnZombie, config.timeBetweenSpawns * 1000) doBroadcastMessage("Good luck in the zombie event people! The teleport has closed!", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doPlayerSendTextMessage(getPlayers.uid, MESSAGE_EVENT_ADVANCE, "The first zombie will spawn in " .. config.timeBetweenSpawns .. " seconds! Good luck!") pvgaylord() end end end end else doBroadcastMessage("The Zombie event could not start because of to few players participating.\n At least " .. config.playersNeededToStartEvent .. " players is needed!", MESSAGE_STATUS_WARNING) for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} getPlayers = getThingfromPos(areapos) if isPlayer(getPlayers.uid) then doTeleportThing(getPlayers.uid, getTownTemplePosition(getPlayerTown(getPlayers.uid)), false) doSendMagicEffect(getPlayerPosition(getPlayers.uid), CONST_ME_TELEPORT) end end end end end end function spawnZombie() if getGlobalStorageValue(config.playerCount) >= 2 then pos = {x = math.random(config.fromPosition.x, config.toPosition.x), y = math.random(config.fromPosition.y, config.toPosition.y), z = math.random(config.fromPosition.z, config.toPosition.z)} doSummonCreature(config.zombieName, pos) doSendMagicEffect(pos, CONST_ME_MORTAREA) setGlobalStorageValue(config.zombieCount, getGlobalStorageValue(config.zombieCount)+1) doBroadcastMessage("A zombie has spawned! There is currently " .. getGlobalStorageValue(config.zombieCount) .. " zombies in the zombie event!", MESSAGE_STATUS_CONSOLE_RED) addEvent(spawnZombie, config.timeBetweenSpawns * 1000) else local fromp, top = config.fromPosition, config.toPosition for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do areapos = {x = x, y = y, z = z, stackpos = 253} cid = getThingfromPos(areapos).uid if isPlayer(cid) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) doBroadcastMessage(getCreatureName(cid)..' has survived at zombie event!') for _,items in ipairs(config.rewards) do doPlayerAddItem(cid, items, 1) end if config.moneyReward[3] == 1 then doPlayerAddItem(cid, config.moneyReward[1], config.moneyReward[2]) end doBroadcastMessage(getPlayerName(cid) .. " won the Zombie event! Congratulations!", MESSAGE_STATUS_WARNING) local goblet = doPlayerAddItem(cid, config.goblet, 1) doItemSetAttribute(goblet, "description", "Awarded to " .. getPlayerName(cid) .. " for winning the Zombie event.") elseif isMonster(cid) then doRemoveCreature(cid) end end end end end end function pvgaylord() local fromp, top, p, m = config.fromPosition, config.toPosition, 0, 0 for x = fromp.x, top.x do for y = fromp.y, top.y do for z = fromp.z, top.z do local areapos = {x = x, y = y, z = z, stackpos = 253} local cid = getThingfromPos(areapos).uid if isPlayer(cid) then p = p+1 elseif isMonster(cid) then m = m+1 end end end end if p ~= getGlobalStorageValue(config.playerCount) then setGlobalStorageValue(config.playerCount, p) end if p < 2 then return true end addEvent(pvgaylord,100,nil) end
  22. 1° local conditionRedx = createConditionObject(CONDITION_OUTFIT) setConditionParam(conditionRedx, CONDITION_PARAM_TICKS, -1) addOutfitCondition(conditionRedx, {lookType = 143, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94, lookTypeEx = 0, lookAddons = 3}) local conditionGreen = createConditionObject(CONDITION_OUTFIT) setConditionParam(conditionGreen, CONDITION_PARAM_TICKS, -1) addOutfitCondition(conditionGreen, {lookType = 134, lookHead = 82, lookBody = 82, lookLegs = 82, lookFeet = 82, lookTypeEx = 0, lookAddons = 3}) local conditionRedf = createConditionObject(CONDITION_OUTFIT) setConditionParam(conditionRedf, CONDITION_PARAM_TICKS, -1) addOutfitCondition(conditionRedf, {lookType = 335, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94, lookTypeEx = 0, lookAddons = 3}) local conditionGreenf = createConditionObject(CONDITION_OUTFIT) setConditionParam(conditionGreenf, CONDITION_PARAM_TICKS, -1) addOutfitCondition(conditionGreenf, {lookType = 335, lookHead = 82, lookBody = 82, lookLegs = 82, lookFeet = 82, lookTypeEx = 0, lookAddons = 3}) function onUse(cid, item, frompos, item2, topos) if item.uid == 2499 and getPlayerStorageValue(cid, 72) == 1 then setPlayerStorageValue(cid, 82, os.time()+120) addEvent(flag, 2000, cid) doRemoveItem(getTileItemById({x = 1352, y = 1000, z = 6}, 1437).uid, 1) addEvent(voltabandeira, 120000, cid) setGlobalStorageValue(11, 1) doAddCondition(cid, conditionRedf) doTeleportThing(cid, {x=1353, y=1000, z=6}) for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, 71) == 1 or getPlayerStorageValue(pid, 72) == 1 then doPlayerSendTextMessage(pid, MESSAGE_STATUS_WARNING, "[CTF] O " .. getCreatureName(cid) .. " roubou a bandeira do time verde!") end end elseif item.uid == 2500 and getPlayerStorageValue(cid, 71) == 1 then setPlayerStorageValue(cid, 83, os.time()+120) addEvent(flag, 2000, cid) setGlobalStorageValue(12, 1) doRemoveItem(getTileItemById({x = 1404, y = 1000, z = 6}).uid, 1) addEvent(voltabandeira, 120000, cid) doAddCondition(cid, conditionGreenf) doTeleportThing(cid, {x=1403, y=1000, z=6}) for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, 71) == 1 or getPlayerStorageValue(pid, 72) == 1 then doPlayerSendTextMessage(pid, MESSAGE_STATUS_WARNING, "[CTF] O " .. getCreatureName(cid) .. " roubou a bandeira do time vermelho!") end end end return true end function flag (cid) if getPlayerStorageValue(cid, 82) >= os.time() or getPlayerStorageValue(cid, 83) >= os.time() then doSendAnimatedText(getThingPos(cid), 'FLAG!', COLOR_DARKYELLOW) addEvent(flag, 3000, cid) end return true end function voltabandeira (cid) if getPlayerStorageValue(cid, 72) == 1 and getPlayerStorageValue(cid, 82) == os.time() then setPlayerStorageValue(cid, 82, 0) doAddCondition(cid, conditionRedx) setGlobalStorageValue(11, 0) doItemSetAttribute(doCreateItem(1437, 1, {x = 1351, y = 1000, z = 6, stackpos = 1}), "uid", 2499) for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, 71) == 1 or getPlayerStorageValue(pid, 72) == 1 then doPlayerSendTextMessage(pid, MESSAGE_STATUS_WARNING, "[CTF] O " .. getCreatureName(cid) .. " ficou muito tempo com a bandeira verde e ela foi devolvida para sua base.") end end elseif getPlayerStorageValue(cid, 71) == 1 and getPlayerStorageValue(cid, 83) == os.time() then doItemSetAttribute(doCreateItem(1435, 1, {x = 1405, y = 1000, z = 6, stackpos = 1}), "uid", 2500) setPlayerStorageValue(cid, 83, 0) setGlobalStorageValue(12, 0) doAddCondition(cid, conditionGreen) for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, 71) == 1 or getPlayerStorageValue(pid, 72) == 1 then doPlayerSendTextMessage(pid, MESSAGE_STATUS_WARNING, "[CTF] O " .. getCreatureName(cid) .. " ficou muito tempo com a bandeira vermelha e ela foi devolvida para sua base.") end end end return true end sobre o battlefield, está faltando a LIB dele.
  23. 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.
  24. qual erro eu vou atualizar essa bagaça pro 5.0, vou voltar o npc que vc escolhe a task que quer, claro que terá que ter level, poits, certa storage, etc... e to pensando em fazer o sistema de boss ainda.
  25. A query nao foi executada, não está achando a coluna na DB

Informação Importante

Confirmação de Termo