function onRaid()
local monster = Game.createMonster("White Pale", Position(32224, 32761, 10))
monster:setReward(true)
end
local mwallPos = Position(32999, 32301, 7)
local mwallId = 1498
local item = Tile(mwallPos):getItemById(mwallId)
if item then
item:remove()
end
function onRaid()
local monster = Game.createMonster("White Pale", Position(32224, 32761, 10))
monster:setReward(true)
local mwallPos = Position(32999, 32301, 7)
local mwallId = 1498
local item = Tile(mwallPos):getItemById(mwallId)
if item then
item:remove()
end
end
local mwallPos = Position(32999, 32301, 7)
local mwallId = 1498
local timeToRemove = 120 -- 120 minutes / 2 hours
function onRaid()
local monster = Game.createMonster("White Pale", Position(32224, 32761, 10))
monster:setReward(true)
local item = Tile(mwallPos):getItemById(mwallId)
if item then
item:remove()
end
addEvent(removeBossCreateWall, timeToRemove * 60 * 1000, monster:getId())
end
function removeBossCreateWall(monsterId)
local item = Tile(mwallPos):getItemById(mwallId)
if not item then
Game.createItem(mwallId, 1, mwallPos)
end
local boss = Monster(monsterId)
if boss then
boss:remove()
end
end
local mwallPos = Position(32999, 32301, 7)
local mwallId = 1498
local timeToRemove = 120 -- 120 minutes / 2 hours
function onRaid()
local monster = Game.createMonster("Tyrn", Position(33094, 32404, 13))
monster:setReward(true)
local item = Tile(mwallPos):getItemById(mwallId)
if item then
item:remove()
end
addEvent(removeBossCreateWall, timeToRemove * 60 * 1000, monster:getId())
end
function removeBossCreateWall(monsterId)
local item = Tile(mwallPos):getItemById(mwallId)
if not item then
Game.createItem(mwallId, 1, mwallPos)
end
local boss = Monster(monsterId)
if boss then
boss:remove()
end
end
<?xml version="1.0" encoding="utf-8"?>
<raid>
<!--
// Raid System by 5mok3
// DO NOT CHANGE INTERVAL UNLESS YOU ARE SURE WHAT YOU ARE DOING!!
-->
<!--Announcements-->
<script delay="1000" script="Tyrn.lua" />
<announce delay="1000" type="event" message="Beware of Tyrn!" />
<!--Single Spawns-->
<!-- <singlespawn delay="1000" name="Tyrn" x="33094" y="32404" z="13" /> -->
</raid>
Game.broadcastMessage("Beware of Tyrn!", MESSAGE_EVENT_ADVANCE)
[Warning - Event::checkScript] Can not load script: scripts/spawn/raids.lua
data/globalevents/scripts/spawn/raids.lua:12: '}' expected (to close '{' at line 9) near '['
local raids = {
-- Weekly
['Monday'] = {
['08:00'] = {raidName = 'RatsThais'},
['18:00'] = {raidName = 'Roshaevil'}
},
['Tuesday'] = {
['18:00'] = {raidName = 'Falangon'}
['19:00'] = {raidName = 'Midnight Panther'}
},
['Wednesday'] = {
['15:00'] = {raidName = 'Draptor'}
['18:00'] = {raidName = 'Sinistrus'}
},
['Thursday'] = {
['18:00'] = {raidName = 'Nelsus'}
['21:00'] = {raidName = 'Undead Cavebear'}
},
['Friday'] = {
['18:00'] = {raidName = 'Jaul'}
['21:00'] = {raidName = 'Titanica'}
},
['Saturday'] = {
['18:00'] = {raidName = 'Obujos'}
['23:00'] = {raidName = 'Draptor'}
},
['Sunday'] = {
['18:00'] = {raidName = 'Tanjis'}
['20:00'] = {raidName = 'Undead Cavebear'}
},
-- By date (Day/Month)
['31/10'] = {
['16:00'] = {raidName = 'Halloween Hare'}
}
}
function onThink(interval, lastExecution, thinkInterval)
local day, date = os.date('%A'), getRealDate()
local raidDays = {}
if raids[day] then
raidDays[#raidDays + 1] = raids[day]
end
if raids[date] then
raidDays[#raidDays + 1] = raids[date]
end
if #raidDays == 0 then
return true
end
for i = 1, #raidDays do
local settings = raidDays[i][getRealTime()]
if settings and not settings.alreadyExecuted then
Game.startRaid(settings.raidName)
settings.alreadyExecuted = true
end
end
return true
end