Ir para conteúdo
  • 0

1 boss pra quem ganha WOE


Dersinho

Pergunta

bom no meu server existe um boss mais queria que ele nacece 1 x a cada fim de WOE =

Xtibia - eliteimperiosv

 

woe_config.dias = {"tuesday", "thursday", "saturday"} esse sao os dias que o woe funciona as 22 horas

 

resumindo queria 1 boss pra quem vencer woe agradeço desde ja!

Link para o comentário
Compartilhar em outros sites

8 respostass a esta questão

Posts Recomendados

  • 0

Posta o script do woe pra eu editar

Castle, woe_config, stor = {}, {}, {}



--castle name (?)
Castle.name = 'Ruthenburg'


--aid of entry.

Castle.tiles = 3131


--aid for created portals.
Castle.portals = 3132


--aid of flags in castle.
Castle.banderas = 3133


--aid of empes bases.
Castle.bases = 3134


--uids in case you have decorations with info.
Castle.decoraciones = {}


--where you teleported from temple.
Castle.pos = {x = 911, y = 945, z = 7}


--where players are teleported when finished or castle owner change.
Castle._exit = {x = 1019, y = 1030, z = 7}


--where portal appears
Castle.desde = {x = 911, y = 894, z = 7, stackpos = 1}




--true / false
default_map = true
--if you will not use default map you should config all the pos.


--main empe pos => with this pos all castle pos will be calculated (default map only)
Castle.empePos = {x = 911, y = 901, z = 5, stackpos = 253}


if default_map then
local pos = Castle.empePos


--entry for guild by using flags.
Castle.guildEntry = {x = pos.x - 9, y = pos.y + 4, z = pos.z}


--each floor should be all floor.
Castle.salas = 
{
a = {fromx = pos.x - 18, tox = pos.x + 18, fromy = pos.y - 10, toy =  pos.y + 28, z = pos.z + 2},
b = {fromx = pos.x - 18, tox = pos.x + 18, fromy = pos.y - 10, toy =  pos.y + 28, z = pos.z + 1},
c = {fromx = pos.x - 18, tox = pos.x + 18, fromy = pos.y - 10, toy =  pos.y + 28, z = pos.z}
}


--pre empes pos
Castle.PreEmpes = 
{
{x = pos.x - 13, y = pos.y + 3, z = pos.z + 1, stackpos = 253}, 
{x = pos.x + 13, y = pos.y + 3, z = pos.z + 1, stackpos = 253}
}


--when you kill pre empes new portals appears.
Castle.PrePortalsPos = 
{
{x = pos.x - 4, y =  pos.y - 6, z = pos.z + 1, stackpos = 1},
{x = pos.x + 4, y =  pos.y - 6, z = pos.z + 1, stackpos = 1}
}


Castle.PreToPos = 
{
[1] = {x = pos.x - 7, y =  pos.y + 26, z = pos.z},
[2] = {x = pos.x + 7, y =  pos.y + 26, z = pos.z}
}


else
--edit those if not using default map
--read above to know what is everything.
--break this comment to use [...]
--[[
Castle.guildEntry = {x = 902, y = 905, z = 5}


Castle.salas = 
{
a = {fromx=37, tox=73, fromy=24, toy=62, z=7},
b = {fromx=37, tox=73, fromy=24, toy=62, z=6},
c = {fromx=37, tox=73, fromy=24, toy=62, z=5}
}


Castle.PreEmpes = 
{
{x=898, y=904, z=6, stackpos=253}, 
{x=924, y=904, z=6, stackpos=253}
}


Castle.PrePortalsPos = 
{
{x=907, y=895, z=6, stackpos=1},
{x=915, y=895, z=6, stackpos=1}
}


Castle.PreToPos = 
{
[1] = {x = 918, y = 927, z = 5},
[2] = {x = 904, y = 927, z = 5}
}
]]
end


--duration
woe_config.timeToEnd = 5


--bc type
woe_config.bcType = MESSAGE_EVENT_ADVANCE


--days
woe_config.dias = {"tuesday", "thursday", "saturday"}


--time to start
woe_config.horaPartida = 22


--access to start
woe_config.accessToStar = 4


--recall delay
woe_config.recallTime = 3 * 60


--rewards for winners
woe_config.premios = true


--storage for register players 
stor.register = 8589


--recall delay stor
stor.recall = 23155


--global stor started
stor.Started = 7801


--global stor [...]
stor.WoeTime = 7802

 

 

 

Editado por omega blueheaven
Péssima formatação: um código grande postado sem [code] nem [spoiler]
Link para o comentário
Compartilhar em outros sites

  • 0

Cara isso eh a config, tem que ser o script todo

dofile("./_woe.lua")
local config = woe_config
local reward = 200000 -- 200k
local function EndWoe()
Woe.getInfo()
setGlobalStorageValue(stor.Started, 0)
setGlobalStorageValue(stor.WoeTime, 0)
Woe.expulsar(infoLua[2], Castle.salas.a.fromx, Castle.salas.a.tox, Castle.salas.a.fromy, Castle.salas.a.toy, Castle.salas.a.z, Castle._exit)
Woe.expulsar(infoLua[2], Castle.salas.b.fromx, Castle.salas.b.tox, Castle.salas.b.fromy, Castle.salas.b.toy, Castle.salas.b.z, Castle._exit)
Woe.expulsar(infoLua[2], Castle.salas.c.fromx, Castle.salas.c.tox, Castle.salas.c.fromy, Castle.salas.c.toy, Castle.salas.c.z, Castle._exit)
doBroadcastMessage("WoE is finished", config.bcType)
doBroadcastMessage("The castle " .. Castle.name .. " is owned by ".. Woe.guildName() ..".", config.bcType)
if isCreature(getThingFromPos(Castle.empePos).uid) then
doRemoveCreature(getThingFromPos(Castle.empePos).uid)
end
Woe.removePre()
Woe.removePortals()
doRemoveItem(getThingFromPos(Castle.desde).uid)
Woe.save()
for _, cid in ipairs(getPlayersOnline()) do
if infoLua[2] == getPlayerGuildId(cid) then
doPlayerAddMoney(cid, reward)
end
end
Woe.remove()
setGlobalStorageValue(24503, -1)
end
function onThink(interval, lastExecution)
Woe.getInfo()
if Woe.isTime() then
if not Woe.isStarted() then
doSummonCreature("empe", Castle.empePos)
doSummonCreature("pre1", Castle.PreEmpes[1])
doSummonCreature("pre2", Castle.PreEmpes[2])
doBroadcastMessage("War has started...", config.bcType)
setGlobalStorageValue(stor.Started, 1)
Woe.updateInfo({os.time(), infoLua[2], infoLua[3], infoLua[4]})
doCreateTeleport(1387, Castle.pos, Castle.desde)
addEvent(EndWoe, config.timeToEnd * 60 * 1000)
end
end
return true
end
Link para o comentário
Compartilhar em outros sites

  • 0

Debaixo do

addEvent(EndWoe, config.timeToEnd * 60 * 1000)

Vc coloca

addEvent(doCreateMonster, config.timeToEnd * 60 * 1000, "NOME DO BOSS", {x=1, y=1, z=1)

Ai vc coloca o nome do boss e a posicao em que ele vai nacer.

Link para o comentário
Compartilhar em outros sites

  • 0
[11/10/2013 20:50:26] >> Loading script systems
[11/10/2013 20:50:27] [Error - LuaScriptInterface::loadFile] data/globalevents/scripts/woe.lua:54: '}' expected near ')'
[11/10/2013 20:50:27] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/woe.lua)
[11/10/2013 20:50:27] data/globalevents/scripts/woe.lua:54: '}' expected near ')'
[11/10/2013 20:50:27] >> Loading chat channels
[11/10/2013 20:50:27] >> Loading outfits
[11/10/2013 20:50:27] >> Loading experience stages
[11/10/2013 20:50:27] >> Loading monsters
[11/10/2013 20:50:27] >> Loading mods...

 

 

 

function onThink(interval, lastExecution)
Woe.getInfo()
if Woe.isTime() then
if not Woe.isStarted() then
doSummonCreature("empe", Castle.empePos)
doSummonCreature("pre1", Castle.PreEmpes[1])
doSummonCreature("pre2", Castle.PreEmpes[2])
doBroadcastMessage("War has started...", config.bcType)
setGlobalStorageValue(stor.Started, 1)
Woe.updateInfo({os.time(), infoLua[2], infoLua[3], infoLua[4]})
doCreateTeleport(1387, Castle.pos, Castle.desde)
addEvent(EndWoe, config.timeToEnd * 60 * 1000)
addEvent(doCreateMonster, config.timeToEnd * 60 * 1000, "esnakecharmer", {x=1226, y=1168, z=7)
end
end
return true
end

 

 

Editado por Dersinho
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...