Advertisement
Guest User

Untitled

a guest
May 25th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. local raids = {
  2. -- Config
  3. raidStorage = 12345,
  4. cost = 50000,
  5. cooldown = 1800,
  6. moneyMsg = "You dont have enough money.",
  7. mainTitle = "Pick a Raid!",
  8. mainMsg = "Pick the raid you wish to start. Each raid will cost you 50k",
  9. -- End Config
  10.  
  11. -- Table of available raids
  12. [1] = {raid = 'Arachir the Ancient One'},
  13. [2] = {raid = 'Diblis The Fair'},
  14. [3] = {raid = 'Ferumbras'},
  15. [4] = {raid = 'Ghazbaran'},
  16. [5] = {raid = 'Horned Fox'},
  17. [6] = {raid = 'Morgaroth'},
  18. [7] = {raid = 'Necropharus'},
  19. [8] = {raid = 'Orshabaal'},
  20. [9] = {raid = 'Sir Valorcrest'},
  21. [10] = {raid = 'The Old Widow'},
  22. [11] = {raid = 'Zevelon Duskbringer'},
  23. [12] = {raid = 'Zulazza the Corruptor'},
  24. [13] = {raid = 'Apocalypse'},
  25. }
  26.  
  27. function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey)
  28.  
  29. -- Check if system is on cooldown
  30. if Game.getStorageValue(raids.raidStorage) > os.time() then
  31. player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You must wait ".. showTimeLeft(Game.getStorageValue(raids.raidStorage) - os.time(), true) ..", before you can start another boss raid.")
  32. item:getPosition():sendMagicEffect(CONST_ME_POFF)
  33. return false
  34. end
  35. player:sendBossRaidWindow(raids)
  36. return true
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement