Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.34 KB | None | 0 0
  1. quest ride begin
  2. state start begin
  3. function Ride( vnum, remain_time )
  4. ride_info = {
  5. [71114] = { 20110, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  6. [71115] = { 20110, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  7. [71116] = { 20111, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  8. [71117] = { 20111, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  9. [71118] = { 20112, 5*60, apply.DEF_GRADE_BONUS, 125, 85, false },
  10. [71119] = { 20112, 5*60, apply.DEF_GRADE_BONUS, 200, 85, false },
  11. [71120] = { 20113, 5*60, apply.ATT_GRADE_BONUS, 200, 85, false },
  12. [71121] = { 20113, 5*60, apply.ATT_GRADE_BONUS, 300, 85, false },
  13. [71161] = { 20219, 5*60, apply.STR, 100, 1, false, false, false},
  14. [71124] = { 20114, 5*60, apply.MOV_SPEED, 0, 1, false },
  15. [71125] = { 20115, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  16. [71126] = { 20116, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  17. [71127] = { 20117, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  18. [71128] = { 20118, 5*60, apply.ATTBONUS_MONSTER, 20, 20, false },
  19. [71137] = { 20120, 5*60, apply.MOV_SPEED, 0, 1, false, false, false},
  20. [71138] = { 20121, 5*60, apply.MOV_SPEED, 0, 1, false, false, false},
  21. [71139] = { 20122, 5*60, apply.MOV_SPEED, 0, 1, false, false, false},
  22. [71140] = { 20123, 5*60, apply.MOV_SPEED, 0, 1, false, false, false},
  23. [71141] = { 20124, 5*60, apply.MOV_SPEED, 0, 1, false, false, false},
  24. [71142] = { 20125, 5*60, apply.MOV_SPEED, 0, 1, false, false, false},
  25. [71131] = { 20119, 5*60, apply.MOV_SPEED, 60, 1, false },
  26. [71132] = { 20119, 5*60, apply.MOV_SPEED, 60, 1, false },
  27. [71133] = { 20226, 5*60, apply.MOV_SPEED, 60, 1, false },
  28. [71134] = { 20227, 5*60, apply.ATTBONUS_MONSTER, 20, 1, false },
  29. [71161] = { 20219, 5*60, apply.ATTBONUS_MONSTER, 20, 1, false },
  30. [71164] = { 20220, 5*60, apply.MOV_SPEED, 60, 1, false, false, false},
  31. [71165] = { 20221, 5*60, apply.MOV_SPEED, 60, 1, false, false, false},
  32. [71166] = { 20222, 5*60, apply.MOV_SPEED, 60, 1, false, false, false},
  33.  
  34. -- Mounturi upgradable
  35. [52001] = { 20201, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 0, false, true },
  36. [52002] = { 20201, 60*60*24*365, apply.MALL_EXPBONUS, 0, 0, false, true },
  37. [52003] = { 20201, 60*60*24*365, apply.MAX_HP, 0, 0, false, true },
  38. [52004] = { 20201, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 0, false, true },
  39. [52005] = { 20201, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 0, false, true },
  40. [52006] = { 20205, 60*60*24*365, apply.ATTBONUS_MONSTER, 3, 0, false, true },
  41. [52007] = { 20205, 60*60*24*365, apply.MALL_EXPBONUS, 3, 0, false, true },
  42. [52008] = { 20205, 60*60*24*365, apply.MAX_HP, 250, 0, false, true },
  43. [52009] = { 20205, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false, true },
  44. [52010] = { 20205, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false, true },
  45. [52011] = { 20209, 60*60*24*365, apply.ATTBONUS_MONSTER, 5, 0, false, true },
  46. [52012] = { 20209, 60*60*24*365, apply.MALL_EXPBONUS, 5, 0, false, true },
  47. [52013] = { 20209, 60*60*24*365, apply.MAX_HP, 500, 0, false, true },
  48. [52014] = { 20209, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false, true },
  49. [52015] = { 20209, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  50.  
  51. [52016] = { 20202, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 0, false, true },
  52. [52017] = { 20202, 60*60*24*365, apply.MALL_EXPBONUS, 0, 0, false, true },
  53. [52018] = { 20202, 60*60*24*365, apply.MAX_HP, 0, 0, false, true },
  54. [52019] = { 20202, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 0, false, true },
  55. [52020] = { 20202, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 0, false, true },
  56. [52021] = { 20206, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 0, false, true },
  57. [52022] = { 20206, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 0, false, true },
  58. [52023] = { 20206, 60*60*24*365, apply.MAX_HP, 250, 0, false, true },
  59. [52024] = { 20206, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false, true },
  60. [52025] = { 20206, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false, true },
  61. [52026] = { 20210, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 0, false, true },
  62. [52027] = { 20210, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 0, false, true },
  63. [52028] = { 20210, 60*60*24*365, apply.MAX_HP, 500, 0, false, true },
  64. [52029] = { 20210, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false, true },
  65. [52030] = { 20210, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  66.  
  67. [52031]= { 20204, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 0, false, true },
  68. [52032]= { 20204, 60*60*24*365, apply.MALL_EXPBONUS, 0, 0, false, true },
  69. [52033]= { 20204, 60*60*24*365, apply.MAX_HP, 0, 0, false, true },
  70. [52034]= { 20204, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 0, false, true },
  71. [52035]= { 20204, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 0, false, true },
  72. [52036]= { 20208, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 0, false, true },
  73. [52037]= { 20208, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 0, false, true },
  74. [52038]= { 20208, 60*60*24*365, apply.MAX_HP, 250, 0, false, true },
  75. [52039]= { 20208, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false, true },
  76. [52040]= { 20208, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false, true },
  77. [52041]= { 20212, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 0, false, true },
  78. [52042]= { 20212, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 0, false, true },
  79. [52043]= { 20212, 60*60*24*365, apply.MAX_HP, 500, 0, false, true },
  80. [52044]= { 20212, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false, true },
  81. [52045]= { 20212, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  82.  
  83. [52046]= { 20203, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 0, false, true },
  84. [52047]= { 20203, 60*60*24*365, apply.MALL_EXPBONUS, 0, 0, false, true },
  85. [52048]= { 20203, 60*60*24*365, apply.MAX_HP, 0, 0, false, true },
  86. [52049]= { 20203, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 0, false, true },
  87. [52050]= { 20203, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 0, false, true },
  88. [52051]= { 20207, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 0, false, true },
  89. [52052]= { 20207, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 0, false, true },
  90. [52053]= { 20207, 60*60*24*365, apply.MAX_HP, 250, 0, false, true },
  91. [52054]= { 20207, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false, true },
  92. [52055]= { 20207, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false, true },
  93. [52056]= { 20211, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 0, false, true },
  94. [52057]= { 20211, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 0, false, true },
  95. [52058]= { 20211, 60*60*24*365, apply.MAX_HP, 500, 0, false, true },
  96. [52059]= { 20211, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false, true },
  97. [52060]= { 20211, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  98.  
  99. [52061]= { 20213, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 0, false, true },
  100. [52062]= { 20213, 60*60*24*365, apply.MALL_EXPBONUS, 0, 0, false, true },
  101. [52063]= { 20213, 60*60*24*365, apply.MAX_HP, 0, 0, false, true },
  102. [52064]= { 20213, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 0, false, true },
  103. [52065]= { 20213, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 0, false, true },
  104. [52066]= { 20214, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 0, false, true },
  105. [52067]= { 20214, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 0, false, true },
  106. [52068]= { 20214, 60*60*24*365, apply.MAX_HP, 250, 0, false, true },
  107. [52069]= { 20214, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false, true },
  108. [52070]= { 20214, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false, true },
  109. [52071]= { 20215, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 0, false, true },
  110. [52072]= { 20215, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 0, false, true },
  111. [52073]= { 20215, 60*60*24*365, apply.MAX_HP, 500, 0, false, true },
  112. [52074]= { 20215, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false, true },
  113. [52075]= { 20215, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  114.  
  115. [52076]= { 20216, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 0, false, true },
  116. [52077]= { 20216, 60*60*24*365, apply.MALL_EXPBONUS, 0, 0, false, true },
  117. [52078]= { 20216, 60*60*24*365, apply.MAX_HP, 0, 0, false, true },
  118. [52079]= { 20216, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 0, false, true },
  119. [52080]= { 20216, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 0, false, true },
  120. [52081]= { 20217, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 0, false, true },
  121. [52082]= { 20217, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 0, false, true },
  122. [52083]= { 20217, 60*60*24*365, apply.MAX_HP, 250, 0, false, true },
  123. [52084]= { 20217, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false, true },
  124. [52085]= { 20217, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false, true },
  125. [52086]= { 20218, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 0, false, true },
  126. [52087]= { 20218, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 0, false, true },
  127. [52088]= { 20218, 60*60*24*365, apply.MAX_HP, 500, 0, false, true },
  128. [52089]= { 20218, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false, true },
  129. [52090]= { 20218, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  130.  
  131. [52091]= { 20223, 60*60*24*365, apply.ATTBONUS_MONSTER, 0, 0, false, true },
  132. [52092]= { 20223, 60*60*24*365, apply.MALL_EXPBONUS, 0, 0, false, true },
  133. [52093]= { 20223, 60*60*24*365, apply.MAX_HP, 0, 0, false, true },
  134. [52094]= { 20223, 60*60*24*365, apply.DEF_GRADE_BONUS, 0, 0, false, true },
  135. [52095]= { 20223, 60*60*24*365, apply.ATT_GRADE_BONUS, 0, 0, false, true },
  136. [52096]= { 20224, 60*60*24*365, apply.ATTBONUS_MONSTER, 3 , 0, false, true },
  137. [52097]= { 20224, 60*60*24*365, apply.MALL_EXPBONUS, 3 , 0, false, true },
  138. [52098]= { 20224, 60*60*24*365, apply.MAX_HP, 250, 0, false, true },
  139. [52099]= { 20224, 60*60*24*365, apply.DEF_GRADE_BONUS, 50, 0, false, true },
  140. [52100]= { 20224, 60*60*24*365, apply.ATT_GRADE_BONUS, 30, 0, false, true },
  141. [52101]= { 20225, 60*60*24*365, apply.ATTBONUS_MONSTER, 5 , 0, false, true },
  142. [52102]= { 20225, 60*60*24*365, apply.MALL_EXPBONUS, 5 , 0, false, true },
  143. [52103]= { 20225, 60*60*24*365, apply.MAX_HP, 500, 0, false, true },
  144. [52104]= { 20225, 60*60*24*365, apply.DEF_GRADE_BONUS, 150, 0, false, true },
  145. [52105]= { 20225, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  146.  
  147. -- Mounturi Test
  148. [56004]= { 20505, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  149. [56005]= { 20506, 60*60*24*365, apply.ATT_GRADE_BONUS, 100, 0, false, true },
  150.  
  151. }
  152.  
  153. if pc.level < ride_info[vnum][5] then
  154. syschat("Nivelul tau este prea mic pentru acest mount.")
  155. else
  156. if ride_info[vnum][2] == 0 and remain_time != 0 then
  157. pc.mount( ride_info[vnum][1], remain_time*60 )
  158. pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60 )
  159. else
  160. pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
  161. pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2] )
  162. end
  163.  
  164. if true == ride_info[vnum][6] then
  165. pc.remove_item(vnum, 1)
  166. end
  167. end
  168. end
  169.  
  170. when login begin
  171. local vnum, remain_time = pc.get_special_ride_vnum()
  172.  
  173. if 0 != vnum then
  174. ride.Ride(vnum, remain_time)
  175. end
  176. end
  177.  
  178. when 71114.use or 71115.use or 71116.use or 71117.use or
  179. 71118.use or 71119.use or 71120.use or 71121.use or 71124.use or
  180. 71125.use or 71126.use or 71127.use or 71128.use or
  181. 71131.use or 71132.use or 71133.use or 71134.use or
  182. 71137.use or 71138.use or 71139.use or 71140.use or
  183. 71141.use or 71142.use or 71161.use or 71164.use or
  184. 71165.use or 71166.use or 71171.use or 71172.use or
  185. 71176.use or 71177.use or 52001.use or 52002.use or
  186. 52003.use or 52004.use or 52005.use or 52006.use or 52007.use or 52008.use or 52009.use or 52010.use or 52011.use or 52012.use or 52013.use or 52014.use or 52015.use or
  187. 52016.use or 52017.use or 52018.use or 52019.use or 52020.use or 52021.use or 52022.use or 52023.use or 52024.use or 52025.use or 52026.use or 52027.use or 52028.use or 52029.use or 52030.use or
  188. 52031.use or 52032.use or 52033.use or 52034.use or 52035.use or 52036.use or 52037.use or 52038.use or 52039.use or 52040.use or 52041.use or 52042.use or 52043.use or 52044.use or 52045.use or
  189. 52046.use or 52047.use or 52048.use or 52049.use or 52050.use or 52051.use or 52052.use or 52053.use or 52054.use or 52055.use or 52056.use or 52057.use or 52058.use or 52059.use or 52060.use or
  190. 52061.use or 52062.use or 52063.use or 52064.use or 52065.use or 52066.use or 52067.use or 52068.use or 52069.use or 52070.use or 52071.use or 52072.use or 52073.use or 52074.use or 52075.use or
  191. 52076.use or 52077.use or 52078.use or 52079.use or 52080.use or 52081.use or 52082.use or 52083.use or 52084.use or 52085.use or 52086.use or 52087.use or 52088.use or 52089.use or 52090.use or
  192. 52091.use or 52092.use or 52093.use or 52094.use or 52095.use or 52096.use or 52097.use or 52098.use or 52099.use or 52100.use or 52101.use or 52102.use or 52103.use or 52104.use or 52105.use or
  193. 56004.use or 56005.use begin
  194.  
  195. if pc.is_polymorphed() then
  196. syschat("Nu poti calari in timp ce esti transformat.")
  197. elseif false == pc.is_riding() then
  198. if true == horse.is_summon() then
  199. horse.unsummon()
  200. end
  201. ride.Ride(item.vnum, 0)
  202. else
  203. pc.unmount()
  204. end
  205. end
  206. end
  207. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement