Advertisement
Guest User

Untitled

a guest
Jan 12th, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.16 KB | None | 0 0
  1. begin ab01gutDismountScript
  2. ; this is meant to be called as player->startscript ab01gutDismountScript
  3. float x1
  4. float x2
  5. if ( MenuMode )
  6. return
  7. endif
  8. if ( ScriptRunning ab01gutExitDialogueScript )
  9. return
  10. endif
  11. while ( GetItemCount "ab01reequipGreaves" > 0 )
  12. RemoveItem ab01reequipGreaves 1
  13. endwhile
  14. while ( GetItemCount "ab01guRidingClothArg" > 0 )
  15. RemoveItem ab01guRidingClothArg 1
  16. endwhile
  17. while ( GetItemCount "ab01guRidingClothKha" > 0 )
  18. RemoveItem ab01guRidingClothKha 1
  19. endwhile
  20. while ( GetItemCount "ab01guRidingCloth" > 0 )
  21. RemoveItem ab01guRidingCloth 1
  22. endwhile
  23. while ( GetItemCount "ab01guRidingFeet" > 0 )
  24. RemoveItem ab01guRidingFeet 1
  25. endwhile
  26. ;ab01gutMountScript should have set x1 to armor weight class of player boots before mounting  (-1=None; 0=Light; 1=Medium; 2=Heavy)
  27. ;ab01gutMountScript should have set x2 to armor weight class of player greaves before mounting (-1=None; 0=Light; 1=Medium; 2=Heavy)
  28. if ( x1 == 0 )
  29. if ( GetItemCount "boots of blinding speed[unique]" > 0 )
  30. startscript ab01gutReequipBBSScript
  31. elseif ( GetItemCount "glass_boots" > 0 )
  32. equip glass_boots
  33. elseif ( GetItemCount "heavy_leather_boots" > 0 )
  34. equip heavy_leather_boots
  35. elseif ( GetItemCount "chitin boots" > 0 )
  36. equip "chitin boots"
  37. elseif ( GetItemCount "netch_leather_boots" > 0 )
  38. equip netch_leather_boots
  39. elseif ( GetItemCount "fur_boots" > 0 )
  40. equip fur_boots
  41. endif
  42. elseif ( x1 == 1 )
  43. if ( GetItemCount "indoril boots" > 0 )
  44. equip "indoril boots"
  45. elseif ( GetItemCount "orcish_boots" > 0 )
  46. equip orcish_boots
  47. elseif ( GetItemCount "bonemold_boots" > 0 )
  48. equip bonemold_boots
  49. endif
  50. elseif ( x1 == 2 )
  51. if ( GetItemCount "daedric_boots" > 0 )
  52. equip daedric_boots
  53. elseif ( GetItemCount "ebony_boots" > 0 )
  54. equip ebony_boots
  55. elseif ( GetItemCount "dwemer_boots" > 0 )
  56. equip dwemer_boots
  57. elseif ( GetItemCount "templar boots" > 0 )
  58. equip "templar boots"
  59. elseif ( GetItemCount "imperial boots" > 0 )
  60. equip "imperial boots"
  61. elseif ( GetItemCount "steel_boots" > 0 )
  62. equip steel_boots
  63. elseif ( GetItemCount "iron boots" > 0 )
  64. equip "iron boots"
  65. endif
  66. endif
  67. if ( x1 == -1 )
  68. if ( GetRace "Argonian" )
  69. elseif ( GetRace "Khajiit" )
  70. else
  71. if ( GetItemCount "exquisite_shoes_01" > 0 )
  72. equip exquisite_shoes_01
  73. elseif ( GetItemCount "extravagant_shoes_02" > 0 )
  74. equip extravagant_shoes_02
  75. elseif ( GetItemCount "extravagant_shoes_01" > 0 )
  76. equip extravagant_shoes_01
  77. elseif ( GetItemCount "expensive_shoes_03" > 0 )
  78. equip expensive_shoes_03
  79. elseif ( GetItemCount "expensive_shoes_02" > 0 )
  80. equip expensive_shoes_02
  81. elseif ( GetItemCount "expensive_shoes_01" > 0 )
  82. equip expensive_shoes_01
  83. elseif ( GetItemCount "common_shoes_05" > 0 )
  84. equip common_shoes_05
  85. elseif ( GetItemCount "common_shoes_04" > 0 )
  86. equip common_shoes_04
  87. elseif ( GetItemCount "common_shoes_03" > 0 )
  88. equip common_shoes_03
  89. elseif ( GetItemCount "common_shoes_02" > 0 )
  90. equip common_shoes_02
  91. elseif ( GetItemCount "common_shoes_01" > 0 )
  92. equip common_shoes_01
  93. endif
  94. endif
  95. endif
  96. if ( x2 == 0 )
  97. if ( GetItemCount "glass_greaves" > 0 )
  98. equip glass_greaves
  99. elseif ( GetItemCount "BM_wolf_greaves_snow" > 0 )
  100. equip BM_wolf_greaves_snow
  101. elseif ( GetItemCount "BM wolf greaves" > 0 )
  102. equip "BM wolf greaves"
  103. elseif ( GetItemCount "DarkBrotherhood greaves" > 0 )
  104. equip "DarkBrotherhood greaves"
  105. elseif ( GetItemCount "chitin greaves" > 0 )
  106. equip "chitin greaves"
  107. elseif ( GetItemCount "netch_leather_greaves" > 0 )
  108. equip netch_leather_greaves
  109. elseif ( GetItemCount "fur_greaves" > 0 )
  110. equip fur_greaves
  111. endif
  112. elseif ( x2 == 1 )
  113. if ( GetItemCount "adamantium_greaves" > 0 )
  114. equip adamantium_greaves
  115. elseif ( GetItemCount "Helsethguard_greaves" > 0 )
  116. equip Helsethguard_greaves
  117. elseif ( GetItemCount "BM_bear_greaves_snow" > 0 )
  118. equip BM_bear_greaves_snow
  119. elseif ( GetItemCount "orcish_greaves" > 0 )
  120. equip orcish_greaves
  121. elseif ( GetItemCount "BM_Ice_greaves" > 0 )
  122. equip BM_Ice_greaves
  123. elseif ( GetItemCount "BM bear greaves" > 0 )
  124. equip "BM bear greaves"
  125. elseif ( GetItemCount "bonemold_greaves" > 0 )
  126. equip bonemold_greaves
  127. elseif ( GetItemCount "imperial_chain_greaves" > 0 )
  128. equip imperial_chain_greaves
  129. endif
  130. elseif ( x2 == 2 )
  131. if ( GetItemCount "daedric_greaves_htab" > 0 )
  132. equip daedric_greaves_htab
  133. elseif ( GetItemCount "daedric_greaves" > 0 )
  134. equip daedric_greaves
  135. elseif ( GetItemCount "Indoril_MH_Guard_Greaves" > 0 )
  136. equip Indoril_MH_Guard_Greaves
  137. elseif ( GetItemCount "Indoril_Almalexia_Greaves" > 0 )
  138. equip Indoril_Almalexia_Greaves
  139. elseif ( GetItemCount "ebony_greaves" > 0 )
  140. equip ebony_greaves
  141. elseif ( GetItemCount "BM_NordicMail_greaves" > 0 )
  142. equip BM_NordicMail_greaves
  143. elseif ( GetItemCount "dwemer_greaves" > 0 )
  144. equip dwemer_greaves
  145. elseif ( GetItemCount "templar_greaves" > 0 )
  146. equip "templar_greaves"
  147. elseif ( GetItemCount "imperial_greaves" > 0 )
  148. equip "imperial_greaves"
  149. elseif ( GetItemCount "steel_greaves" > 0 )
  150. equip steel_greaves
  151. elseif ( GetItemCount "iron_greaves" > 0 )
  152. equip "iron_greaves"
  153. endif
  154. endif
  155. ; safety
  156. if ( GetWaterWalking >= 234 )
  157. ModWaterWalking -234
  158. endif
  159. if ( GetSpellEffects "ab01mountAbility" )
  160. set x1 to 1
  161. elseif ( GetSpell "ab01mountAbility" )
  162. set x1 to 1
  163. else
  164. set x1 to 0
  165. endif
  166. if ( x1 > 0.5 )
  167. set x1 to GetPos X
  168. set x1 to ( x1 + 100 )
  169. SetPos X x1
  170. set x1 to GetPos Y
  171. set x1 to ( x1 + 100 )
  172. SetPos Y x1
  173. tcl ; try moving to the ground to avoid damage with MCP feather changes (tcl moves player to the ground )
  174. tcl
  175. endif
  176. ClearForceJump
  177. ClearForceMoveJump
  178. RemoveSpell "ab01mountAbility"
  179. RemoveSpellEffects "ab01mountAbility"
  180. set ab01compMounted to 0
  181. StopScript ab01gutDismountScript
  182. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement