Advertisement
Pasterbiner123321

Untitled

Apr 3rd, 2024
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.46 KB | None | 0 0
  1. -- CONFIGS
  2.  
  3. local easy = {
  4. minQTDE = 50,
  5. maxQTDE = 220,
  6.  
  7. minEXP = 250000,
  8. maxEXP = 750000,
  9.  
  10. prizesID = {7492, 7493},
  11. prizesNAME = {"Epic Gem", "Legendary Gem"},
  12. minQTDEPremios = 0,
  13. maxQTDEPremios = 2,
  14.  
  15. PremioFixoID = 2160,
  16. PremioFixoNAME = "Crystal Coin",
  17. PremioFixoQTDE = 1,
  18.  
  19. taskPoints = 1
  20. }
  21.  
  22. local medium = {
  23. minQTDE = 100,
  24. maxQTDE = 400,
  25.  
  26. minEXP = 500000,
  27. maxEXP = 1500000,
  28.  
  29. prizesID = {7492, 7493},
  30. prizesNAME = {"Epic Gem", "Legendary Gem"},
  31. minQTDEPremios = 1,
  32. maxQTDEPremios = 3,
  33.  
  34. PremioFixoID = 2160,
  35. PremioFixoNAME = "Crystal Coin",
  36. PremioFixoQTDE = 2,
  37.  
  38. taskPoints = 2
  39. }
  40.  
  41. local hard = {
  42. minQTDE = 150,
  43. maxQTDE = 500,
  44.  
  45. minEXP = 1000000,
  46. maxEXP = 3000000,
  47.  
  48. prizesID = {7492, 7493},
  49. prizesNAME = {"Epic Gem", "Legendary Gem"},
  50. minQTDEPremios = 2,
  51. maxQTDEPremios = 4,
  52.  
  53. PremioFixoID = 2160,
  54. PremioFixoNAME = "Crystal Coin",
  55. PremioFixoQTDE = 3,
  56.  
  57. taskPoints = 3
  58. }
  59.  
  60. local expert = {
  61. minQTDE = 200,
  62. maxQTDE = 600,
  63.  
  64. minEXP = 2000000,
  65. maxEXP = 6000000,
  66.  
  67. prizesID = {7492, 7493},
  68. prizesNAME = {"Epic Gem", "Legendary Gem"},
  69. minQTDEPremios = 3,
  70. maxQTDEPremios = 5,
  71.  
  72. PremioFixoID = 2160,
  73. PremioFixoNAME = "Crystal Coin",
  74. PremioFixoQTDE = 4,
  75.  
  76. taskPoints = 4
  77. }
  78.  
  79. DT_TasksEasy = {"Cyclops", "Tarantula", "Dwarf Guard", "Lizard Sentinel", "Kongar", "Minotaur", "Rotworm", "Ghoul", "Crocodile", "Dwarf", "Sibang", "Scarab"}
  80. DT_TasksMedium = {"Dragon", "Crystal Spider", "Bonebeast", "Lizard Templar", "Pirate Corsair", "Quara Mantassin", "Quara Constrictor", "Wyvern", "Vampire", "Orc Berserker", "Mummy", "Crypt Shambler", "Ancient Scarab"}
  81. DT_TasksHard = {"Dragon Lord", "Serpent Spawn", "Frost Dragon", "Behemoth", "Giant Spider", "Hydra", "Quara Predator Scout", "Orc Leader", "Hero", "Renegade Quara Pincher", "Dark Torturer", "Elf Capitan"}
  82. DT_TasksExpert = {"Demon", "Dragon Lord", "Serpent Spawn", "Frost Dragon", "Dark Torturer", "Warlock", "Defiler", "Undead Dragon", "Elf Capitan", "Elf Necromanta", "Elf Lord"}
  83.  
  84. -- SCRIPT
  85.  
  86.    
  87.     DT_STORAGES = {
  88.         PONTOS = 367643975,
  89.         EXPERT = 367643974,
  90.         HARD = 367643973,
  91.         MEDIUM = 367643972,
  92.         EASY = 367643971,
  93.         HAVE_STARTED = 367643970,
  94.             }
  95.            
  96.     --RESETAR STORAGES
  97.         for i = 1, 6 do
  98.         db.query('DELETE FROM `player_storage` WHERE `player_storage`.`key` = '.. 367643969+i ..'')
  99.         end  
  100.        
  101.     -- EASY (100-)
  102.         DT_CHOSENTASK_EASY = DT_TasksEasy[math.random(#DT_TasksEasy)]
  103.         DT_NEEDKILL_EASY = math.ceil(math.random(easy.minQTDE, easy.maxQTDE))
  104.         DT_EXPPRIZE_EASY = math.random(easy.minEXP, easy.maxEXP)
  105.        
  106.         DT_PRIZEID_EASY = easy.prizesID
  107.         DT_PRIZENAME_EASY = easy.prizesNAME
  108.         DT_PREMIOQTDE_EASY = math.random(easy.minQTDEPremios, easy.maxQTDEPremios)
  109.        
  110.         DT_PREMIOFIXO_ID_EASY = easy.PremioFixoID
  111.         DT_PREMIOFIXO_NAME_EASY = easy.PremioFixoNAME
  112.         DT_PREMIOFIXO_QTDE_EASY = easy.PremioFixoQTDE
  113.        
  114.         DT_TASKPOINTS_EASY = easy.taskPoints
  115.        
  116.     -- MEDIUM (150-)
  117.         DT_CHOSENTASK_MEDIUM = DT_TasksMedium[math.random(#DT_TasksMedium)]
  118.         DT_NEEDKILL_MEDIUM = math.ceil(math.random(medium.minQTDE, medium.maxQTDE))
  119.         DT_EXPPRIZE_MEDIUM = math.random(medium.minEXP, medium.maxEXP)
  120.        
  121.         DT_PRIZEID_MEDIUM = medium.prizesID
  122.         DT_PRIZENAME_MEDIUM = medium.prizesNAME
  123.         DT_PREMIOQTDE_MEDIUM = math.random(medium.minQTDEPremios, medium.maxQTDEPremios)
  124.        
  125.         DT_PREMIOFIXO_ID_MEDIUM = medium.PremioFixoID
  126.         DT_PREMIOFIXO_NAME_MEDIUM = medium.PremioFixoNAME
  127.         DT_PREMIOFIXO_QTDE_MEDIUM = medium.PremioFixoQTDE
  128.        
  129.         DT_TASKPOINTS_MEDIUM = medium.taskPoints
  130.    
  131.     --HARD (200-)
  132.         DT_CHOSENTASK_HARD = DT_TasksHard[math.random(#DT_TasksHard)]
  133.         DT_NEEDKILL_HARD = math.ceil(math.random(hard.minQTDE, hard.maxQTDE))
  134.         DT_EXPPRIZE_HARD = math.random(hard.minEXP, hard.maxEXP)
  135.        
  136.         DT_PRIZEID_HARD = hard.prizesID
  137.         DT_PRIZENAME_HARD = hard.prizesNAME
  138.         DT_PREMIOQTDE_HARD = math.random(hard.minQTDEPremios, hard.maxQTDEPremios)
  139.        
  140.         DT_PREMIOFIXO_ID_HARD = hard.PremioFixoID
  141.         DT_PREMIOFIXO_NAME_HARD = hard.PremioFixoNAME
  142.         DT_PREMIOFIXO_QTDE_HARD = hard.PremioFixoQTDE
  143.        
  144.         DT_TASKPOINTS_HARD = hard.taskPoints
  145.        
  146.     --EXPERT (200+)
  147.         DT_CHOSENTASK_EXPERT = DT_TasksExpert[math.random(#DT_TasksExpert)]
  148.         DT_NEEDKILL_EXPERT = math.ceil(math.random(expert.minQTDE, expert.maxQTDE))
  149.         DT_EXPPRIZE_EXPERT = math.random(expert.minEXP, expert.maxEXP)
  150.        
  151.         DT_PRIZEID_EXPERT = expert.prizesID
  152.         DT_PRIZENAME_EXPERT = expert.prizesNAME
  153.         DT_PREMIOQTDE_EXPERT = math.random(expert.minQTDEPremios, expert.maxQTDEPremios)
  154.        
  155.         DT_PREMIOFIXO_ID_EXPERT = expert.PremioFixoID
  156.         DT_PREMIOFIXO_NAME_EXPERT = expert.PremioFixoNAME
  157.         DT_PREMIOFIXO_QTDE_EXPERT = expert.PremioFixoQTDE
  158.        
  159.         DT_TASKPOINTS_EXPERT = expert.taskPoints
  160.  
  161.         -- FUNÇÃO PRA PEGAR OS NOMES DOS ITEM
  162. function getAllTableText(aa, bb, cc)
  163. local tablecheck = aa
  164.  
  165. if not tablecheck then
  166.     return false
  167. end
  168.  
  169. local lang = bb
  170. local ponto = ""
  171. if not lang then
  172.     lang = "and"
  173. end
  174. if cc then
  175. ponto = "."
  176. end
  177. local text = ""
  178. for i = 1, #tablecheck do
  179.     if i == 1 then
  180.     text = tablecheck[i]
  181.     elseif i == #tablecheck then
  182.     text = text .." "..lang.." "..tablecheck[i]..""..ponto..""
  183.     else
  184.     text = text ..", "..tablecheck[i]
  185.     end
  186. end
  187. return text
  188. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement