Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local raids = {
- -- Config
- raidStorage = 12345,
- cost = 50000,
- cooldown = 1800,
- moneyMsg = "You dont have enough money.",
- mainTitle = "Pick a Raid!",
- mainMsg = "Pick the raid you wish to start. Each raid will cost you 50k",
- -- End Config
- -- Table of available raids
- [1] = {raid = 'Arachir the Ancient One'},
- [2] = {raid = 'Diblis The Fair'},
- [3] = {raid = 'Ferumbras'},
- [4] = {raid = 'Ghazbaran'},
- [5] = {raid = 'Horned Fox'},
- [6] = {raid = 'Morgaroth'},
- [7] = {raid = 'Necropharus'},
- [8] = {raid = 'Orshabaal'},
- [9] = {raid = 'Sir Valorcrest'},
- [10] = {raid = 'The Old Widow'},
- [11] = {raid = 'Zevelon Duskbringer'},
- [12] = {raid = 'Zulazza the Corruptor'},
- [13] = {raid = 'Apocalypse'},
- }
- function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
- -- Check if system is on cooldown
- if Game.getStorageValue(raids.raidStorage) > os.time() then
- player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must wait ".. showTimeLeft(Game.getStorageValue(raids.raidStorage) - os.time(), true) ..", before you can start another boss raid.")
- item:getPosition():sendMagicEffect(CONST_ME_POFF)
- return false
- end
- player:sendBossRaidWindow(raids)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement