Advertisement
Guest User

70 to 75 Magery

a guest
Aug 23rd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. sysmsg "Magery Trainer Script 70-75" 88
  2. sysmsg "Version 2.0" 88
  3.  
  4. if not findalias 'bankbag'
  5. msg "bank"
  6. pause 1000
  7. sysmsg "Select a bag with reagents in your bank" 88
  8. promptalias 'bankbag'
  9. endif
  10.  
  11. @removelist 'trainregs'
  12. @createlist 'trainregs'
  13.  
  14. pushlist 'trainregs' 0xf88 // nightshade
  15. pushlist 'trainregs' 0xf7b // bloodmoss
  16.  
  17. //
  18. // Actions list
  19. //
  20. @removelist 'actions'
  21. @createlist 'actions'
  22. pushlist 'actions' 'restock'
  23.  
  24. while not dead
  25.  
  26. //
  27. // Reg check
  28. //
  29. if not @inlist! 'actions' 'restock'
  30. // train regs
  31. for 0 to 'trainregs'
  32. if @counttype trainregs[] 'any' 'backpack' < 5
  33. @clearlist 'actions'
  34. pushlist 'actions' 'restock'
  35. continue
  36. endif
  37. endfor
  38. endif
  39.  
  40. //
  41. // Restock regs
  42. //
  43. if @inlist! 'actions' 'restock'
  44. sysmsg "Checking / restocking regs" 88
  45. pause 200
  46. @clearlist 'actions'
  47. resync
  48. msg "bank"
  49. pause 1000
  50. msg "bank"
  51. pause 1000
  52. useobject 'bankbag'
  53. pause 2000
  54. //
  55. // Reg restocking is extremely unreliable!
  56. //
  57. for 0 to 'trainregs'
  58. removetimer 'restock'
  59. createtimer 'restock'
  60. while counttype trainregs[] 'any' 'backpack' < 100
  61. sysmsg "restocking reagent" 44
  62. movetype trainregs[] 'bankbag' 'backpack' 0 0 0 'any' 100
  63. pause 1500
  64. if timer 'restock' > 30000
  65. sysmsg "I cannot restock the train regs" 44
  66. stop
  67. endif
  68. endwhile
  69. endfor
  70. pushlist 'actions' 'train'
  71. continue
  72. endif
  73.  
  74. //
  75. // Train
  76. //
  77. if @inlist! 'actions' 'train'
  78. pause 200
  79. @clearlist 'actions'
  80. //
  81. // TRAINING
  82. //
  83. if mana < 20
  84. useskill 'meditation'
  85. pause 11500
  86. while mana < 60
  87. endwhile
  88. endif
  89. if mana > 20
  90. @canceltarget
  91. cast "Invisibility"
  92. waitfortarget 5000
  93. target! 'self'
  94. msg "guards"
  95. pushlist 'actions' 'train'
  96. endif
  97.  
  98. //
  99. // Server save fix
  100. //
  101. if @injournal 'world will save' 'system'
  102. sysmsg 'pausing for world save' 44
  103. pause 30000
  104. @clearjournal
  105. endif
  106.  
  107. //
  108. // skill check
  109. //
  110. if skill 'Magery' == 75
  111. headmsg "Im done" 93
  112. stop
  113. endif
  114.  
  115. pushlist 'actions' 'train'
  116.  
  117. pause 1000
  118.  
  119. endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement