Advertisement
Guest User

reeh_JahScript Across Three ESPs

a guest
May 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. Improved Followers.esp:
  2. Begin reeh_jahScript
  3.  
  4. short nolore
  5. float myx
  6. float myy
  7. float myz
  8. float warpTimer
  9. short p_speed
  10. short OnPCHitMe
  11. short flyCheck
  12.  
  13. if ( GetJournalIndex "MV_RunawaySlave" < 10 )
  14. return
  15. endif
  16.  
  17. if ( GetJournalIndex "MV_RunawaySlave" >= 105 )
  18. return
  19. endif
  20.  
  21. if ( GetDisabled == 1 )
  22. return
  23. endif
  24.  
  25. if ( GetJournalIndex "MV_RunawaySlave" >= 105 )
  26. if ( CellChanged == 1 )
  27. disable "reeh_jah"
  28. endif
  29. endif
  30.  
  31. if ( OnDeath == 1 )
  32. Journal "MV_RunawaySlave" 90
  33. endif
  34.  
  35. if ( GetCurrentAiPackage == 3 )
  36.  
  37. if (OnPCHitMe == 1)
  38. StopCombat
  39. set OnPCHitMe to 0
  40. Say "Vo\a\m\Flw_AM002.mp3" "Careful with that, friend."
  41. endif
  42.  
  43. set p_speed to ( ( Player->GetSpeed ) + 85 )
  44. SetSpeed, p_speed
  45.  
  46. if ( GetWeaponDrawn )
  47. elseif ( GetSpellReadied )
  48. return
  49. elseif ( GetDistance Player > 800 )
  50. set warpTimer to warpTimer + GetSecondsPassed
  51. if ( warpTimer > 10 )
  52. set warpTimer to 0
  53. set myx to ( Player->GetPos x )
  54. set myy to ( Player->GetPos y )
  55. set myz to ( Player->GetPos z )
  56. SetPos x myx
  57. SetPos y myy
  58. SetPos z myz
  59. endif
  60. endif
  61.  
  62. if ( Player->GetEffect sEffectLevitate == 1 )
  63. if ( flyCheck == 0 )
  64. cast pbo_comp_lev player; levitate self 0 0 0 spells
  65. addspell pbo_comp_lev2; levitate ability 35-200
  66. set flyCheck to 1
  67. endif
  68. else
  69. if ( flyCheck == 1 )
  70. removespell pbo_comp_lev2
  71. set flyCheck to 0
  72. endif
  73. endif
  74.  
  75. if ( flyCheck == 1 )
  76. if ( GetWeaponDrawn == 0 )
  77. set myz to ( Player->GetPos z )
  78. SetPos z myz
  79. endif
  80. endif
  81.  
  82. if ( GetJournalIndex "MV_RunawaySlave" >= 20 )
  83. if ( GetJournalIndex "MV_RunawaySlave" < 90 )
  84.  
  85. if ( GetDistance "Im_Kilaya" <= 512 )
  86. Journal "MV_RunawaySlave" 97
  87. setSpeed 55
  88. endif
  89.  
  90. if (GetDistance "Savile Imayn" <=512 )
  91. Journal "MV_RunawaySlave" 103
  92. setSpeed 55
  93. endif
  94.  
  95. endif
  96. endif
  97. else
  98. setSpeed 55
  99. return
  100. endif
  101.  
  102. end
  103. -----
  104. gr_ScriptImprovements.esp:
  105. Begin reeh_jahScript
  106. ;better death checking
  107. ;makes sure he stops following you at end of quest
  108. ;makes sure he starts following in the first place
  109. ;improved his reaction based on who you take him to
  110.  
  111. short nolore
  112. short isdead
  113.  
  114. if ( isdead == 1 )
  115. if ( OnActivate == 1 )
  116. if ( GetDeadCount reeh_jah == 0 )
  117. return
  118. else
  119. activate
  120. endif
  121. endif
  122. return
  123. endif
  124.  
  125. if ( GetJournalIndex "MV_RunawaySlave" < 20 )
  126. return
  127. endif
  128.  
  129. if ( gethealth <= 1 )
  130. sethealth 0
  131. Journal "MV_RunawaySlave" 90
  132. set isdead to 1
  133. return
  134. elseif ( OnDeath == 1 )
  135. Journal "MV_RunawaySlave" 90
  136. set isdead to 1
  137. return
  138. endif
  139.  
  140. if ( MenuMode == 1 )
  141. return
  142. endif
  143.  
  144. if ( GetDisabled == 1 )
  145. setdelete 1
  146. return
  147. endif
  148.  
  149. if ( GetJournalIndex "MV_RunawaySlave" >= 105 )
  150. if ( CellChanged == 1 )
  151. disable
  152. endif
  153. return
  154. endif
  155.  
  156. if ( GetJournalIndex "MV_RunawaySlave" >= 30 )
  157. if ( GetJournalIndex "MV_RunawaySlave" < 36 )
  158. if ( GetCurrentAiPackage != 3 )
  159. AiFollow player 0 0 0 0
  160. endif
  161. endif
  162. endif
  163.  
  164. if ( GetCurrentAiPackage != 3 )
  165. return
  166. endif
  167.  
  168. if ( GetJournalIndex "MV_RunawaySlave" < 90 )
  169. if ( GetDistance "Im_Kilaya" <= 512 )
  170. moddisposition 25
  171. say "vo\a\m\Flw_AM003.mp3" "Thank you."
  172. Journal "MV_RunawaySlave" 97
  173. AiWander 384 5 0 0 60 20 10 10 0 0 0 0
  174. endif
  175. if ( GetDistance "Savile Imayn" <= 512 )
  176. moddisposition -50
  177. Journal "MV_RunawaySlave" 103
  178. AiWander 0 0 0 0 0 0 0 0 0 0 0 0
  179. ForceSneak
  180. endif
  181. endif
  182.  
  183. end
  184. -----
  185. gr_Keys (Daduke compatible):
  186. Begin reeh_jahScript
  187.  
  188. short nolore
  189. short button
  190. short doOnce
  191. short isdead
  192.  
  193. if ( isdead == 1 )
  194. if ( OnActivate == 1 )
  195. if ( GetDeadCount reeh_jah == 0 )
  196. return
  197. else
  198. activate
  199. endif
  200. endif
  201. return
  202. endif
  203.  
  204. if ( GetJournalIndex "MV_RunawaySlave" < 20 )
  205. return
  206. endif
  207.  
  208. if ( gethealth <= 1 )
  209. sethealth 0
  210. Journal "MV_RunawaySlave" 90
  211. set isdead to 1
  212. return
  213. elseif ( OnDeath == 1 )
  214. Journal "MV_RunawaySlave" 90
  215. set isdead to 1
  216. return
  217. endif
  218.  
  219. if ( MenuMode == 1 )
  220. return
  221. endif
  222.  
  223. if ( GetDisabled == 1 )
  224. setdelete 1
  225. return
  226. endif
  227.  
  228. if ( GetJournalIndex "MV_RunawaySlave" >= 105 )
  229. if ( CellChanged == 1 )
  230. disable
  231. endif
  232. return
  233. endif
  234.  
  235. if ( GetJournalIndex "MV_RunawaySlave" >= 30 )
  236. if ( GetJournalIndex "MV_RunawaySlave" < 36 )
  237. if ( GetCurrentAiPackage != 3 )
  238. AiFollow player 0 0 0 0
  239. endif
  240. endif
  241. endif
  242.  
  243. if ( GetJournalIndex "MV_RunawaySlave" < 103 )
  244. if ( doOnce == 0 )
  245. if ( getdistance player <= 256 )
  246. if ( player->getitemcount key_tel_aruhn_slave1 > 0 )
  247. messagebox "You have the key to Reeh-Jah's slave bracer. Do you wish to remove the bracer?" "Yes" "No"
  248. set doOnce to 1
  249. endif
  250. endif
  251. endif
  252. if ( doOnce == 1 )
  253. set button to GetButtonPressed
  254. if ( button == -1 )
  255. return
  256. elseif ( button == 0 )
  257. drop slave_bracer_left 1
  258. moddisposition 25
  259. say "vo\a\m\Hlo_AM135.mp3" "Blessed we are."
  260. set doonce to 2
  261. elseif ( button == 1 )
  262. set doonce to 2
  263. endif
  264. endif
  265. endif
  266.  
  267. if ( GetCurrentAiPackage != 3 )
  268. return
  269. endif
  270.  
  271. if ( GetJournalIndex "MV_RunawaySlave" < 90 )
  272. if ( GetDistance "Im_Kilaya" <= 512 )
  273. moddisposition 25
  274. say "vo\a\m\Flw_AM003.mp3" "Thank you."
  275. Journal "MV_RunawaySlave" 97
  276. AiWander 384 5 0 0 60 20 10 10 0 0 0 0
  277. endif
  278. if ( GetDistance "Savile Imayn" <= 512 )
  279. moddisposition -50
  280. Journal "MV_RunawaySlave" 103
  281. AiWander 0 0 0 0 0 0 0 0 0 0 0 0
  282. ForceSneak
  283. endif
  284. endif
  285.  
  286. end
  287. -----
  288. Make of this what you will.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement