Postado Abril 12, 2015 10 anos TEM COMO MUDA ESSE EVENTO PARA AUTOMATICO TIPO DUAS VEZ NA SEMANA . VLW REP ++ dofile("./_woe.lua") local config = woe_config function onSay(cid, words, param) if words == "/woe" and param == "/!/SETUP" then Woe.setup() return true end Woe.getInfo() local myTable = {} for _, i in ipairs({"%d", "%B", "%Y", "%X"}) do table.insert(myTable, os.date(i, infoLua[4])) end if Woe.isStarted() then text = "tempo restante = " .. Woe.timeToEnd().mins .. ":" .. Woe.timeToEnd().secs .. "\nCastle " .. Castle.name .. " conquistado atualmente pela guild " .. Woe.guildName() .. ".\n" .. Woe.breakerName() .. " quebre o empe "..myTable[1].." / "..myTable[2].." / "..myTable[3].." no tempo "..myTable[4].."." else text = "o domínio do castelo passado foi vencido por " .. Woe.guildName() .. ".\n" .. Woe.breakerName() .. " quebre o empe "..myTable[1].." / "..myTable[2].." / "..myTable[3].." no tempo "..myTable[4].."." end if words == "/woe" then if getPlayerAccess(cid) >= config.accessToStar then if param == "on" then if Woe.isTime() ~= true then doBroadcastMessage("[Castle Domain] Será iniciado em até 5 minutos... Registre seu char para entrar no castle com !guildjoin (Obrigatório ter Guild)", config.bcType) doBroadcastMessage("[Castle Domain] Terá uma duração de " .. config.timeToEnd .. " minutos. Pàgina do Castle Domain: http://falconiaworld.com/?subtopic=domain", config.bcType) setGlobalStorageValue(stor.WoeTime, 1) else doPlayerSendCancel(cid, "[Castle Domain] já está funcionando.") end elseif param == "off" then if Woe.isTime() == true then doBroadcastMessage("[Castle Domain] Cancelado!", config.bcType) setGlobalStorageValue(stor.WoeTime, 0) setGlobalStorageValue(stor.Started, 0) if isCreature(getThingFromPos(Castle.empePos).uid) == TRUE then doRemoveCreature(getThingFromPos(Castle.empePos).uid) end if getThingFromPos(Castle.desde).itemid > 0 then doRemoveItem(getThingFromPos(Castle.desde).uid) end Woe.removePre() Woe.removePortals() else doPlayerSendCancel(cid, "[Castle Domain] Não está funcionando.") end elseif param == "empe" then doSummonCreature("empe", Castle.empePos) elseif param == "go" then local newPos = Castle.empePos newPos.y = newPos.y + 1 doTeleportThing(cid, newPos, FALSE) elseif param == "info" then doPlayerPopupFYI(cid, text) else doPlayerSendCancel(cid, "Parametro invalido.") end elseif getPlayerAccess(cid) < config.accessToStar then if param == "info" then doPlayerPopupFYI(cid, text) end else doPlayerSendCancel(cid, "Não é possivel.") end elseif words == "!recall" then if Woe.isStarted() == true then if getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER then if Woe.isInCastle(cid) == true then local members = Woe.getGuildMembers(getPlayerGuildId(cid)) if #members > 1 then if(exhaust(cid, stor.recall, config.recallTime) == 1) then for _, i in ipairs(members) do if getPlayerGuildLevel(i) ~= GUILDLEVEL_LEADER then local pos = getClosestFreeTile(cid, getCreaturePosition(cid), FALSE, TRUE) doTeleportThing(i, pos, FALSE) end end doCreatureSay(cid, "Emergencia, juntem-se", TALKTYPE_SAY) else doPlayerSendCancel(cid, "[Castle Domain] Espere " .. config.recallTime / 60 .. " minutos, para usar o comando novamente.") end else doPlayerSendCancel(cid, "[Castle Domain] Nenhum membro online.") end else doPlayerSendCancel(cid, "[Castle Domain] Não pode ser usado no caslte.") end else doPlayerSendCancel(cid, "[Castle Domain] Você não é o lider.") end else doPlayerSendCancel(cid, "[Castle Domain] Não esta funcionando.") end end return true end
Postado Abril 12, 2015 10 anos Especifique melhor seu pedido, por exemplo: quais serão os dias da semana. _ .-'` `} _./) / } .'o \ | } '.___.'`.\ {` /`\_/ , `. } ME DA UMA NOZ! \=' .-' _`\ { `'`;/ `, } _\ @ ; } /__`;-...'--' Cluck!
Postado Abril 12, 2015 10 anos Nesta talkaction há diversas ações referentes ao evento. Se possível, informe qual(is) dela(s) você quer que sejam executadas no globalevent. não respondo pms solicitando suporte em programação/scripting
Postado Abril 12, 2015 10 anos Autor 2 dia na semana configuravel e horario tb e deixa uma parte ai tipo o comando !recall . Editado Abril 12, 2015 10 anos por macalo (veja o histórico de edições)
Postado Abril 12, 2015 10 anos Ops, desculpe... To vendo aqui. Editado Abril 12, 2015 10 anos por Snowsz (veja o histórico de edições) _ .-'` `} _./) / } .'o \ | } '.___.'`.\ {` /`\_/ , `. } ME DA UMA NOZ! \=' .-' _`\ { `'`;/ `, } _\ @ ; } /__`;-...'--' Cluck!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.