Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. local questCreatures = {
  2.  
  3. [11] = {nome ="beezer", kills = 50},
  4.  
  5. [2] = {nome ="beaver", kills = 25},
  6.  
  7. [3] = {nome ="snake", kills = 25},
  8.  
  9. [4] = {nome ="dog", kills = 50},
  10.  
  11. [5] = {nome ="bandit", kills = 150},
  12.  
  13. [6] = {nome ="shinobi fire", kills = 70},
  14.  
  15. [7] = {nome ="dog fear", kills = 50},
  16.  
  17. [8] = {nome ="bandit sword", kills = 40},
  18.  
  19. [9] = {nome ="boxer", kills = 50},
  20.  
  21. [10] = {nome ="nukenin", kills = 80},
  22.  
  23. [11] = {nome ="anbu", kills = 150},
  24.  
  25. [12] = {nome ="giant furie", kills = 200},
  26.  
  27. [13] = {nome ="sword man", kills = 200},
  28.  
  29. [14] = {nome ="insecnoide", kills = 200},
  30.  
  31. [15] = {nome ="bison", kills = 350},
  32.  
  33. [16] = {nome ="unknown", kills = 350},
  34.  
  35. [17] = {nome ="frozen monster", kills = 450},
  36.  
  37. [18] = {nome ="gama bunta", kills = 250},
  38.  
  39. [19] = {nome ="black anbu", kills = 350},
  40.  
  41. [20] = {nome ="kimachi yagou", kills = 350},
  42.  
  43. [21] = {nome ="yeti", kills = 350},
  44.  
  45. [22] = {nome ="Tsuchikage Golem I", kills = 350},
  46.  
  47. [23] = {nome ="elite guarde", kills = 350},
  48.  
  49. [24] = {nome ="master anbu", kills = 350},
  50.  
  51. [25] = {nome ="chouza akimichi", kills = 350},
  52.  
  53. [26] = {nome ="white arak", kills = 350},
  54.  
  55. [27] = {nome ="master anbu", kills = 350},
  56.  
  57. [28] = {nome ="master anbu", kills = 350},
  58.  
  59. [29] = {nome ="mutation", kills = 350},
  60.  
  61. [30] = {nome ="giant arak", kills = 350},
  62.  
  63. [31] = {nome ="wolfeyko", kills = 350},
  64.  
  65. [32] = {nome ="doki", kills = 350},
  66.  
  67. [33] = {nome ="scorpion", kills = 350},
  68.  
  69. [34] = {nome ="black widow", kills = 350},
  70.  
  71. [35] = {nome ="ice serpent", kills = 350},
  72.  
  73. [36] = {nome ="suna no kami", kills = 350},
  74. }
  75.  
  76. if getPlayerStorageValue(cid, 411987) ~= -1 then
  77. doPlayerSendTextMessage(cid, 27,"Você têm atualmente a task de matar "..getPlayerStorageValue(cid, 411987).."")
  78. end
  79. if getPlayerStorageValue(cid, 411988) <= os.time() then
  80.  
  81. if getPlayerLevel(cid) <= 50 then
  82.  
  83. local randomico = questCreatures[math.random(1, 5)]
  84.  
  85. setPlayerStorageValue(cid, 411987, randomico.nome)
  86.  
  87. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  88.  
  89. elseif getPlayerLevel(cid) > 50 and getPlayerLevel(cid) <= 100 then
  90.  
  91. local randomico = questCreatures[math.random(6, 10)]
  92.  
  93. setPlayerStorageValue(cid, 411987, randomico.nome)
  94. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  95. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  96.  
  97. elseif getPlayerLevel(cid) > 100 and getPlayerLevel(cid) <= 200 then
  98.  
  99. local randomico = questCreatures[math.random(11, 17)]
  100.  
  101. setPlayerStorageValue(cid, 411987, randomico.nome)
  102. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  103. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  104.  
  105. elseif getPlayerLevel(cid) > 200 and getPlayerLevel(cid) <= 300 then
  106.  
  107. local randomico = questCreatures[math.random(18, 22)]
  108.  
  109. setPlayerStorageValue(cid, 411987, randomico.nome)
  110. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  111. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  112.  
  113. elseif getPlayerLevel(cid) > 300 and getPlayerLevel(cid) <= 400 then
  114.  
  115. local randomico = questCreatures[math.random(23, 24)]
  116.  
  117. setPlayerStorageValue(cid, 411987, randomico.nome)
  118. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  119. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  120.  
  121. elseif getPlayerLevel(cid) > 400 and getPlayerLevel(cid) <= 500 then
  122.  
  123. local randomico = questCreatures[math.random(25, 29)]
  124.  
  125. setPlayerStorageValue(cid, 411987, randomico.nome)
  126. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  127. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  128.  
  129. elseif getPlayerLevel(cid) > 500 and getPlayerLevel(cid) <= 550 then
  130.  
  131. local randomico = questCreatures[math.random(30, 31)]
  132.  
  133. setPlayerStorageValue(cid, 411987, randomico.nome)
  134. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  135. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  136.  
  137. elseif getPlayerLevel(cid) > 550 and getPlayerLevel(cid) <= 600 then
  138.  
  139. local randomico = questCreatures[math.random(30, 31)]
  140.  
  141. setPlayerStorageValue(cid, 411987, randomico.nome)
  142. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  143. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  144.  
  145. elseif getPlayerLevel(cid) > 600 and getPlayerLevel(cid) <= 700 then
  146.  
  147. local randomico = questCreatures[math.random(32, 35)]
  148.  
  149. setPlayerStorageValue(cid, 411987, randomico.nome)
  150. setPlayerStorageValue(cid, 411988, os.time()+ 24 * 60 * 60)
  151. doPlayerSendTextMessage(cid, 27,"Você recebeu a task de matar "..randomico.kills .." ".. randomico.nome.."")
  152.  
  153. end
  154. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement