Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2014
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.68 KB | None | 0 0
  1. local function changeBack(pos)
  2. doTransformItem(getTileItemById(pos, 22026).uid, 22435)
  3. return true
  4. end
  5. local function changeBackk(pos)
  6. doTransformItem(getTileItemById(pos, 22103).uid, 22437)
  7. return true
  8. end
  9. local function changeBackk(pos)
  10. doTransformItem(getTileItemById(pos, 22253).uid, 22434)
  11. return true
  12. end
  13.  
  14. local function changeBackk(pos)
  15. doTransformItem(getTileItemById(pos, 22101).uid, 22438)
  16. return true
  17. end
  18.  
  19. local function changeBackk(pos)
  20. doTransformItem(getTileItemById(pos, 22104).uid, 22439)
  21. return true
  22. end
  23.  
  24. local function changeBackk(pos)
  25. doTransformItem(getTileItemById(pos, 22105).uid, 22440)
  26. return true
  27. end
  28.  
  29. local function changeBackk(pos)
  30. doTransformItem(getTileItemById(pos, 22102).uid, 22441)
  31. return true
  32. end
  33.  
  34. local function changeBackk(pos)
  35. doTransformItem(getTileItemById(pos, 22075).uid, 22436)
  36. return true
  37. end
  38.  
  39.  
  40. function onUse(cid, item, fromPosition, itemEx, toPosition)
  41. if(item.itemid == 22435) and(getPlayerStorageValue(cid, 8600) == 1) then
  42. doTransformItem(item.uid, 22026)
  43. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  44. random = math.random(1, 6)
  45. if(random == 1) then
  46. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  47. doPlayerAddItem(cid, 22363, 1)
  48. elseif(random == 2) then
  49. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  50. doPlayerAddItem(cid, 2225, 1)
  51. elseif(random == 3) then
  52. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  53. doPlayerAddItem(cid, 2221, 1)
  54. elseif(random == 4) then
  55. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  56. doPlayerAddItem(cid, 2244, 1)
  57. elseif(random >= 5) then
  58. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  59. doPlayerAddItem(cid, 18554, 1)
  60. end
  61.  
  62.  
  63. elseif(item.itemid == 22437) and(getPlayerStorageValue(cid, 8600) == 1) then
  64. doTransformItem(item.uid, 22103)
  65. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  66. random = math.random(1, 6)
  67. if(random == 1) then
  68. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  69. doPlayerAddItem(cid, 22363, 1)
  70. elseif(random == 2) then
  71. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  72. doPlayerAddItem(cid, 2225, 1)
  73. elseif(random == 3) then
  74. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  75. doPlayerAddItem(cid, 2221, 1)
  76. elseif(random == 4) then
  77. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  78. doPlayerAddItem(cid, 2244, 1)
  79. elseif(random >= 5) then
  80. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  81. doPlayerAddItem(cid, 18554, 1)
  82. end
  83.  
  84. elseif(item.itemid == 22434) and(getPlayerStorageValue(cid, 8600) == 1) then
  85. doTransformItem(item.uid, 22253)
  86. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  87. random = math.random(1, 6)
  88. if(random == 1) then
  89. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  90. doPlayerAddItem(cid, 22363, 1)
  91. elseif(random == 2) then
  92. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  93. doPlayerAddItem(cid, 2225, 1)
  94. elseif(random == 3) then
  95. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  96. doPlayerAddItem(cid, 2221, 1)
  97. elseif(random == 4) then
  98. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  99. doPlayerAddItem(cid, 2244, 1)
  100. elseif(random >= 5) then
  101. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  102. doPlayerAddItem(cid, 18554, 1)
  103. end
  104.  
  105. elseif(item.itemid == 22433) and(getPlayerStorageValue(cid, 8600) == 1) then
  106. doTransformItem(item.uid, 22253)
  107. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  108. random = math.random(1, 6)
  109. if(random == 1) then
  110. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  111. doPlayerAddItem(cid, 22363, 1)
  112. elseif(random == 2) then
  113. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  114. doPlayerAddItem(cid, 2225, 1)
  115. elseif(random == 3) then
  116. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  117. doPlayerAddItem(cid, 2221, 1)
  118. elseif(random == 4) then
  119. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  120. doPlayerAddItem(cid, 2244, 1)
  121. elseif(random >= 5) then
  122. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  123. doPlayerAddItem(cid, 18554, 1)
  124. end
  125.  
  126. elseif(item.itemid == 22434) and(getPlayerStorageValue(cid, 8600) == 1) then
  127. doTransformItem(item.uid, 22253)
  128. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  129. random = math.random(1, 6)
  130. if(random == 1) then
  131. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  132. doPlayerAddItem(cid, 22363, 1)
  133. elseif(random == 2) then
  134. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  135. doPlayerAddItem(cid, 2225, 1)
  136. elseif(random == 3) then
  137. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  138. doPlayerAddItem(cid, 2221, 1)
  139. elseif(random == 4) then
  140. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  141. doPlayerAddItem(cid, 2244, 1)
  142. elseif(random >= 5) then
  143. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  144. doPlayerAddItem(cid, 18554, 1)
  145. end
  146.  
  147. elseif(item.itemid == 22438) and(getPlayerStorageValue(cid, 8600) == 1) then
  148. doTransformItem(item.uid, 22101)
  149. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  150. random = math.random(1, 6)
  151. if(random == 1) then
  152. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  153. doPlayerAddItem(cid, 22363, 1)
  154. elseif(random == 2) then
  155. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  156. doPlayerAddItem(cid, 2225, 1)
  157. elseif(random == 3) then
  158. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  159. doPlayerAddItem(cid, 2221, 1)
  160. elseif(random == 4) then
  161. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  162. doPlayerAddItem(cid, 2244, 1)
  163. elseif(random >= 5) then
  164. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  165. doPlayerAddItem(cid, 18554, 1)
  166. end
  167.  
  168. elseif(item.itemid == 22439) and(getPlayerStorageValue(cid, 8600) == 1) then
  169. doTransformItem(item.uid, 22104)
  170. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  171. random = math.random(1, 6)
  172. if(random == 1) then
  173. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  174. doPlayerAddItem(cid, 22363, 1)
  175. elseif(random == 2) then
  176. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  177. doPlayerAddItem(cid, 2225, 1)
  178. elseif(random == 3) then
  179. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  180. doPlayerAddItem(cid, 2221, 1)
  181. elseif(random == 4) then
  182. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  183. doPlayerAddItem(cid, 2244, 1)
  184. elseif(random >= 5) then
  185. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  186. doPlayerAddItem(cid, 18554, 1)
  187. end
  188.  
  189. elseif(item.itemid == 22439) and(getPlayerStorageValue(cid, 8600) == 1) then
  190. doTransformItem(item.uid, 22104)
  191. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  192. random = math.random(1, 6)
  193. if(random == 1) then
  194. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  195. doPlayerAddItem(cid, 22363, 1)
  196. elseif(random == 2) then
  197. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  198. doPlayerAddItem(cid, 2225, 1)
  199. elseif(random == 3) then
  200. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  201. doPlayerAddItem(cid, 2221, 1)
  202. elseif(random == 4) then
  203. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  204. doPlayerAddItem(cid, 2244, 1)
  205. elseif(random >= 5) then
  206. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  207. doPlayerAddItem(cid, 18554, 1)
  208. end
  209.  
  210. elseif(item.itemid == 22440) and(getPlayerStorageValue(cid, 8600) == 1) then
  211. doTransformItem(item.uid, 22105)
  212. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  213. random = math.random(1, 6)
  214. if(random == 1) then
  215. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  216. doPlayerAddItem(cid, 22363, 1)
  217. elseif(random == 2) then
  218. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  219. doPlayerAddItem(cid, 2225, 1)
  220. elseif(random == 3) then
  221. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  222. doPlayerAddItem(cid, 2221, 1)
  223. elseif(random == 4) then
  224. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  225. doPlayerAddItem(cid, 2244, 1)
  226. elseif(random >= 5) then
  227. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  228. doPlayerAddItem(cid, 18554, 1)
  229. end
  230.  
  231. elseif(item.itemid == 22441) and(getPlayerStorageValue(cid, 8600) == 1) then
  232. doTransformItem(item.uid, 22102)
  233. addEvent(changeBack, 300 * 60 * 1000, toPosition)
  234. random = math.random(1, 6)
  235. if(random == 1) then
  236. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  237. doPlayerAddItem(cid, 22363, 1)
  238. elseif(random == 2) then
  239. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  240. doPlayerAddItem(cid, 2225, 1)
  241. elseif(random == 3) then
  242. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  243. doPlayerAddItem(cid, 2221, 1)
  244. elseif(random == 4) then
  245. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  246. doPlayerAddItem(cid, 2244, 1)
  247. elseif(random >= 5) then
  248. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  249. doPlayerAddItem(cid, 18554, 1)
  250. end
  251.  
  252. elseif(item.itemid == 22436) and(getPlayerStorageValue(cid, 8600) == 1) then
  253. doTransformItem(item.uid, 22075)
  254. addEvent(changeBackk, 300 * 60 * 1000, toPosition)
  255. random = math.random(1, 6)
  256. if(random == 1) then
  257. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
  258. doPlayerAddItem(cid, 22363, 1)
  259. elseif(random == 2) then
  260. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
  261. doPlayerAddItem(cid, 2225, 1)
  262. elseif(random == 3) then
  263. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
  264. doPlayerAddItem(cid, 2221, 1)
  265. elseif(random == 4) then
  266. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
  267. doPlayerAddItem(cid, 2244, 1)
  268. elseif(random >= 5) then
  269. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
  270. doPlayerAddItem(cid, 18554, 1)
  271. end
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279. end
  280. return true
  281. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement