SHARE
TWEET

Untitled

a guest Feb 22nd, 2020 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Daenamaryllis
  2. #Heliantha
  3. #Roseantha
  4.  
  5. Thread.new {
  6. loop{
  7. target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /arm|arms|child|guardsman/i }
  8. start_script( "sloot" ) if target.status =~ /dead|gone/ && target.name =~ /thief|rogue|bandit|mugger|outlaw|highwayman|marauder|brigand|thug|robber/i
  9. wait_while { running?('sloot') }
  10. wait_while { running?('wander') }
  11. fput ("gird") if ( righthand.nil? ) && Char.name =~ /Daenamaryllis|Roseantha|Heliantha|Kaight|Lilium|Daeoas/
  12. fput ("ready shield") if ( lefthand.nil? ) && Char.name =~ /Kaight|Akio|Phocosoen/
  13. fput "stand" if !standing?
  14. sleep 0.1
  15. waitrt?
  16. GameObj.pcs.each {|s| if s.status =~ /kneeling|sitting|^lying|prone/ && s.status !~ /stunned/ ;fput "pull #{s.noun}";end;}
  17. sleep 0.1
  18. GameObj.pcs.each {|s| if s.status =~ /stunned/ && Spell[108].affordable? && Char.name =~ /Daenamaryllis|Daeoas|Heliantha|Roseantha|Lilium/ ;fput "prep 108";fput "cast #{s.noun}";end;}
  19. waitrt?
  20. waitcastrt?
  21. sleep 1
  22.  
  23. #REQUIRED FOR SIGIL OF POWER
  24. missingmana = maxmana - checkmana
  25.  
  26. #SIGIL OF DEFENSE
  27. if !Spell[9707].active? && Spell[9707].known? && Spell[9707].affordable?
  28.     Spell[9707].cast if checkmana > 5
  29.     sleep 1
  30. #SIGIL OF OFFENSE
  31. elsif !Spell[9708].active? && Spell[9708].known? && Spell[9708].affordable?
  32.     Spell[9708].cast if checkmana > 5
  33.     sleep 1
  34. #SYMBOL OF PROTECTION
  35. elsif Char.name !~ /Kaight/ && !Spell[9805].active? && Spell[9805].known? && Spell[9805].affordable?
  36.     Spell[9805].cast
  37.     sleep 0.1
  38. #SYMBOL OF COURAGE
  39. elsif Char.name !~ /Kaight/ && !Spell[9806].active? && Spell[9806].known? && Spell[9806].affordable?
  40.     Spell[9806].cast
  41.     sleep 0.1
  42. #SIGN OF WARDING
  43. elsif !Spell[9903].active? && Spell[9903].known? && Spell[9903].affordable?
  44.     Spell[9903].cast
  45.     sleep 1
  46. #SIGN OF STRIKING
  47. elsif Char.name =~ /Daenamaryllis/ && !Spell[9904].active? && Spell[9904].known? && Spell[9904].affordable?
  48.     Spell[9904].cast if Spell[9904].affordable?
  49.     sleep 1
  50. #SIGN OF DEFENDING
  51. elsif !Spell[9907].active? && Spell[9907].known? && Spell[9907].affordable?
  52.     Spell[9907].cast
  53.     sleep 1
  54. #SIGN OF SMITING
  55. elsif Char.name =~ /Daenamaryllis/ && !Spell[9908].active? && Spell[9908].known? && Spell[9908].affordable?
  56.     Spell[9908].cast if Spell[9908].affordable?
  57.     sleep 1
  58. #SIGN OF SWORDS
  59. elsif Char.name =~ /Daenamaryllis/ && !Spell[9912].active? && Spell[9912].known? && Spell[9912].affordable?
  60.     Spell[9912].cast if Spell[9912].affordable?
  61.     sleep 1
  62. #SIGN OF SHIELDS
  63. elsif Char.name =~ /Daenamaryllis|Daeoas/ && !Spell[9913].active? && Spell[9913].known? && Spell[9913].affordable?
  64.     Spell[9913].cast
  65.     sleep 1
  66. #BURST OF SWIFTNESS
  67. elsif Char.name =~ /Bob/ && Spell[9625].known? && !Spell[9051].active? && Spell[9625].affordable?
  68.     Spell[9625].cast if checkstamina > 31
  69.     sleep 1
  70. #SURGE OF STRENGTH
  71. elsif Char.name =~ /Bob/ && Spell[9605].known? && !Spell[9606].active? && Spell[9605].affordable?
  72.     Spell[9605].cast if checkstamina > 31
  73.     sleep 1
  74. #SIGIL OF CONCENTRATION
  75. elsif !Spell[9714].active? && Spell[9714].known? && Spell[9714].affordable?
  76.     Spell[9714].cast if checkstamina > 31
  77.     sleep 1
  78. #SIGIL OF POWER
  79. elsif missingmana >= 25 && Spell[9718].known? && Spell[9718].affordable? && checkstamina > 75
  80.     Spell[9718].cast if checkstamina > 75
  81.     sleep 2
  82. end
  83.  
  84. if checkpoison  
  85. fput("incant 114") if Spell[114].affordable? && Spell[114].known?
  86. end
  87.  
  88. if checkdisease
  89. fput("incant 113") if Spell[113].affordable? && Spell[113].known?
  90. end
  91.  
  92. }
  93.  
  94. }
  95.  
  96. loop {
  97. wait_while { running?('sloot') }
  98. sleep 1
  99. if Char.name =~ /Daenamaryllis/
  100.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|'child'|'guard'|'guardsman'/i }
  101.     fput "stance guarded" if Char.stance != 'defensive'
  102.     sleep 1
  103.         waitrt? if !(target.status =~ /dead|gone/)
  104.         waitcastrt? if !(target.status =~ /dead|gone/)
  105.        
  106.         start_script( "sloot" ) && target.status =~ /dead|gone/
  107.         wait_while { running?('sloot') }
  108.        
  109.             fput "search creeper"
  110.             fput "stow left" if ( lefthand? )
  111.             sleep 0.25
  112.             fput "search plant"
  113.             fput "stow left" if ( lefthand? )
  114.             sleep 0.25
  115.             fput "search tumbleweed"
  116.             fput "stow left" if ( lefthand? )
  117.             sleep 0.25
  118.             fput "search shrub"
  119.             fput "stow left" if ( lefthand? )
  120.             sleep 0.25
  121.             fput "loot room"
  122.        
  123.             while !(target.status =~ /dead|gone/) && !dead?
  124.            
  125. #               put "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/
  126. #               fput("incant 1110 ##{target.id}") if target.status !~ /dead|gone/ && Spell[1110].affordable? && Spell[1110].known?             
  127. #               fput "guarded" if checkstance != "guarded" && target.status !~ /dead|gone/
  128. #               waitrt?
  129. #               waitcastrt?
  130. #               sleep 0.25
  131.                    
  132. #               fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/
  133. #               fput("incant 118 evoke ##{target.id}") if target.status !~ /dead|gone/ && Spell[1110].affordable? && Spell[1110].known?
  134. #               fput "guarded" if checkstance != "guarded" && target.status !~ /dead|gone/
  135. #               waitrt?
  136. #               waitcastrt?
  137. #               sleep 0.25
  138.                                    
  139.                 fput "stance offensive"  if standing? && checkstance != "offensive" && target.status !~ /dead|gone/ && Spell[111].affordable? && target.name !~ /dreadnought raptor|mastodonic leopard/
  140.                 fput("incant 111 ##{target.id}") if target.status !~ /dead|gone/ && Spell[111].affordable? && Spell[111].known? && target.name !~ /dreadnought raptor|mastodonic leopard/
  141.                 fput "guarded" if checkstance != "guarded" && target.status !~ /dead|gone/ && target.name !~ /dreadnought raptor|mastodonic leopard/
  142.                 waitrt?
  143.                 waitcastrt?
  144.                 sleep 0.25
  145.  
  146. #               fput("incant 1106 ##{target.id}") if target.status !~ /dead|gone/ && Spell[1106].affordable? && Spell[1106].known? && target.name !~ /cold guardian|sacristan spirit|wraith|kiramon worker|kiramon defender/
  147. #               waitrt?
  148. #               waitcastrt?
  149. #               sleep 0.25
  150.                
  151.                 fput "stance offensive"  if standing? && checkstance != "offensive" && target.status !~ /dead|gone/ && target.name !~ /dreadnought raptor|mastodonic leopard/
  152.                 fput("incant 1700 evoke ##{target.id}") if target.status !~ /dead|gone/ && Spell[1700].known? && target.name !~ /dreadnought raptor|mastodonic leopard/
  153.                 waitrt?
  154.                 waitcastrt?
  155.                 fput "guarded" if checkstance != "guarded" && target.status !~ /dead|gone/ && target.name !~ /dreadnought raptor|mastodonic leopard/
  156.                 sleep 0.25
  157.                
  158.                 fput("incant 1101 ##{target.id}") if target.status !~ /dead|gone/ && Spell[1101].affordable? && Spell[1101].known? && target.name =~ /dreadnought raptor|mastodonic leopard/
  159.                
  160. #               fput "stance defensive" if checkstance != "defensive"
  161. #                   wait_while { running?('sloot') }
  162. #                   start_script( "combo" )
  163. #                   wait_while { running?('combo') }
  164. #               sleep 0.25
  165. #               waitrt?
  166. #               waitcastrt?
  167.  
  168.                 start_script( "sloot" ) if target.status =~ /dead|gone/
  169.                 wait_while { running?('sloot') }
  170.                
  171.             end
  172.         waitrt?
  173.         waitcastrt?
  174. #   elsif percentmind(100)
  175. #       echo ""
  176. #       echo ""
  177. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  178. #       echo ""
  179. #       echo ""
  180. #       fput "disband"
  181. #       kill_script 'wander'
  182. #       start_script 'go2', [ "3619" ]
  183. #       wait_while { running?('go2') }
  184. #       fput ("store weapon")
  185. #       start_script 'sloot', [ "sell" ]
  186. #       wait_while { running?('sloot') }
  187. #       exit
  188.     else
  189.     sleep 5
  190.     start_script 'wander' if checknpcs.nil?
  191.     wait_while { running?('wander') }
  192.     sleep 0.25
  193.     end
  194. elsif Char.name =~ /Heliantha/
  195.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|'child'|'guard'|'guardsman'/i }
  196.     sleep 2
  197.         waitrt? if !(target.status =~ /dead|gone/)
  198.         waitcastrt? if !(target.status =~ /dead|gone/)
  199.  
  200.             fput "stance guarded" if standing? && checkstance != "guarded"
  201.  
  202. #           fput ("prep 703") if Spell[703].affordable? && Spell[703].known? && target.name =~ /hierophant|dogmatist/
  203. #           fput ("cast")
  204. #           waitcastrt?
  205.            
  206.             fput ("prep 709") if Spell[709].affordable? && Spell[709].known? && target.status !~ /dead|gone/ && target.name !~ /grifflet|griffin|dreadnought raptor|mastodonic leopard|shrub|creeper|tumbleweed|plant|vine|bush/
  207.             fput ("cast")
  208.             waitcastrt?
  209.                
  210.             while !(target.status =~ /dead|gone/) && !dead?
  211.            
  212.                 fput "sign of wracking" if (checkmana < 20 && checkspirit >= 6 )
  213.            
  214.                 fput("sacrifice ##{target.id}") if target.status =~ /stunned/ && Spell[9008].active? && missingmana >= 100
  215.                 waitcastrt?
  216.                
  217. #               fput "send 5 daena" if (checkmana > 20)
  218. #               fput "sign of wracking" if (checkmana < 20 && checkspirit >= 6 )
  219.            
  220. #               fput("incant 711 ##{target.id}") if target.status !~ /dead|gone/ && Spell[711].affordable? && Spell[711].known? && target.name =~ /dreadnought raptor|mastodonic leopard/
  221.                
  222. #               fput("incant 1700 ##{target.id}") if target.status !~ /dead|gone/ && Spell[1700].affordable? && Spell[1700].known? && target.name =~ /dreadnought raptor|mastodonic leopard/
  223.            
  224. #               fput("incant 705 ##{target.id}") if target.status !~ /dead|gone/ && Spell[705].affordable? && Spell[705].known? && target.name !~ /dreadnought raptor|mastodonic leopard/
  225. #               waitcastrt?
  226.            
  227.                 fput("incant 702 ##{target.id}") if target.status !~ /dead|gone/ && Spell[702].affordable? && Spell[702].known?
  228.                 waitcastrt?
  229.  
  230.                 fput("sacrifice ##{target.id}") if target.status =~ /stunned/ && Spell[9008].active? && missingmana >= 100
  231.                 waitcastrt?
  232.  
  233. #               start_script( "sloot" ) if target.status =~ /dead|gone/
  234. #               wait_while { running?('sloot') }
  235.  
  236.             end
  237. #   elsif percentmind(100)
  238. #       echo ""
  239. #       echo ""
  240. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  241. #       echo ""
  242. #       echo ""
  243. #       fput "disband"
  244. #       kill_script 'wander'
  245. #       start_script 'go2', [ "3619" ]
  246. #       wait_while { running?('go2') }
  247. #       fput ("store weapon")
  248. #       start_script 'sloot', [ "sell" ]
  249. #       wait_while { running?('sloot') }
  250. #       exit
  251. #   else
  252. #   sleep 5
  253. #   start_script 'wander' if checknpcs.nil?
  254. #   wait_while { running?('wander') }
  255. #   sleep 0.25
  256.     fput "stop 709"
  257. #   fput "loot room"
  258.     end
  259. elsif Char.name =~ /Roseantha/
  260.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|'child'|'guard'|'guardsman'/i }
  261.     sleep 2
  262.         waitrt? if !(target.status =~ /dead|gone/)
  263.         waitcastrt? if !(target.status =~ /dead|gone/)
  264.  
  265.             fput "send 3 helia" if (checkmana > 20)
  266.  
  267.             fput "stance guarded" if standing? && checkstance != "guarded"
  268.  
  269.  
  270.             fput ("prep 703") if Spell[703].affordable? && Spell[703].known? && target.status !~ /dead|gone/ && target.name =~ /hierophant|dogmatist/
  271.             fput ("cast")
  272.             waitcastrt?
  273.            
  274. #           fput ("prep 709") if Spell[709].affordable? && Spell[709].known? && target.status !~ /dead|gone/ && target.name !~ /grifflet|griffin|dreadnought raptor|mastodonic leopard|shrub|creeper|tumbleweed|plant|vine|bush/
  275. #           fput ("cast")
  276. #           waitcastrt?
  277.                
  278.             while !(target.status =~ /dead|gone/) && !dead?
  279.            
  280.                 fput "sign of wracking" if (checkmana < 20 && checkspirit >= 6 )
  281.            
  282.                 fput("sacrifice ##{target.id}") if target.status =~ /stunned/ && Spell[9008].active? && missingmana >= 100
  283.                 waitcastrt?
  284.                        
  285. #               fput "send 5 daena" if (checkmana > 20)
  286. #               fput "sign of wracking" if (checkmana < 20 && checkspirit >= 6 )
  287.                
  288. #               fput("incant 711 ##{target.id}") if target.status !~ /dead|gone/ && Spell[711].affordable? && Spell[705].known? && target.name =~ /dreadnought raptor|mastodonic leopard/
  289.                
  290. #               fput("incant 1700 ##{target.id}") if target.status !~ /dead|gone/ && Spell[1700].affordable? && Spell[1700].known? && target.name =~ /dreadnought raptor|mastodonic leopard/
  291.            
  292. #               fput("incant 705 ##{target.id}") if target.status !~ /dead|gone/ && Spell[705].affordable? && Spell[705].known? && target.name !~ /dreadnought raptor|mastodonic leopard/
  293. #               waitcastrt?
  294.            
  295.                 fput("incant 702 ##{target.id}") if target.status !~ /dead|gone/ && Spell[702].affordable? && Spell[702].known?
  296.                 waitcastrt?
  297.  
  298.                 fput("sacrifice ##{target.id}") if target.status =~ /stunned/ && Spell[9008].active? && missingmana >= 100
  299.                 waitcastrt?
  300.  
  301. #               start_script( "sloot" ) if target.status =~ /dead|gone/
  302. #               wait_while { running?('sloot') }
  303.  
  304.             end
  305. #   elsif percentmind(100)
  306. #       echo ""
  307. #       echo ""
  308. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  309. #       echo ""
  310. #       echo ""
  311. #       fput "disband"
  312. #       kill_script 'wander'
  313. #       start_script 'go2', [ "3619" ]
  314. #       wait_while { running?('go2') }
  315. #       fput ("store weapon")
  316. #       start_script 'sloot', [ "sell" ]
  317. #       wait_while { running?('sloot') }
  318. #       exit
  319. #   else
  320. #   sleep 5
  321. #   start_script 'wander' if checknpcs.nil?
  322. #   wait_while { running?('wander') }
  323. #   sleep 0.25
  324. #   fput "loot room"
  325.     end
  326. elsif Char.name =~ /Lilium/
  327.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|'child'|'guard'|'guardsman'/i }
  328.     sleep 2
  329.         waitrt? if !(target.status =~ /dead|gone/)
  330.         waitcastrt? if !(target.status =~ /dead|gone/)
  331.            
  332. #           fput "send 10 Kaight" if Char.name =~ /Lilium/ && checkmana > 75
  333.            
  334.             fput("incant 320 ##{target.id}") if target.status !~ /dead|gone/ && !Spell[320].active? && Spell[320].affordable? && Spell[320].known? && target.name !~ /construct|shrub|creeper|tumbleweed|plant|vine|bush/
  335.             sleep 0.25
  336.             waitrt?
  337.             waitcastrt?
  338.    
  339.             fput("incant 309 evoke ##{target.id}") if target.status !~ /dead|gone/ && !Spell[309].active? && Spell[309].affordable? && target.name !~ /construct|shrub|creeper|tumbleweed|plant|vine|bush/
  340.             sleep 0.25
  341.             waitrt?
  342.             waitcastrt?
  343.            
  344. #           fput("incant 240") if target.status !~ /dead|gone/ && !Spell[240].active? && Spell[240].affordable? && Spell[240].known? && target.name !~ /construct/
  345. #           sleep 0.25
  346. #           waitrt?
  347. #           waitcastrt?
  348.            
  349.             while !(target.status =~ /dead|gone/) && !dead?
  350.            
  351.                 fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/ && !Spell[1617].active?
  352.                 fput("kill ##{target.id}") if target.status !~ /dead|gone/ && target.name =~ /construct/
  353.    
  354.                 fput "stance offensive" if standing? && checkstance != "offensive" && Spell[306].affordable? && !Spell[1617].active?
  355.                 fput("incant 306 evoke ##{target.id}") if target.status !~ /dead|gone/ && Spell[306].affordable? && target.name !~ /construct/
  356.                 sleep 0.25
  357.                 waitrt?
  358.  
  359. #               fput "guarded" if checkstance != "guarded" && target.status !~ /dead|gone/
  360. #               waitcastrt?
  361.                
  362.                 start_script( "sloot" ) if target.status =~ /dead|gone/
  363.                 wait_while { running?('sloot') }
  364.                
  365.             end
  366.         waitrt?
  367.         waitcastrt?
  368.     elsif percentmind > 80
  369.         fput "boost long"
  370. #   elsif percentmind(100)
  371. #       echo ""
  372. #       echo ""
  373. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  374. #       echo ""
  375. #       echo ""
  376. #       fput "stance defensive" if checkstance != "defensive"
  377. #       fput "disband"
  378. #       kill_script 'wander'
  379. #       start_script 'go2', [ "3672" ]
  380. #       wait_while { running?('go2') }
  381. #       fput ("store weapon")
  382. #       start_script 'sloot', [ "sell" ]
  383. #       wait_while { running?('sloot') }
  384. #       exit
  385.     else
  386.     sleep 5
  387.     start_script 'wander' if checknpcs.nil?
  388.     wait_while { running?('wander') }
  389.     sleep 0.25
  390.     end
  391. elsif Char.name =~ /Daeoas/
  392.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|'child'|'guard'|'guardsman'|'construct'/i }
  393.     sleep 1
  394.         waitrt? if !(target.status =~ /dead|gone/)
  395.         waitcastrt? if !(target.status =~ /dead|gone/)
  396.  
  397.     fput "loot room"
  398.  
  399.             fput "stance guarded" if standing? && checkstance != "guarded"
  400.  
  401.             fput "release"
  402.             fput ("prep 703") if Spell[703].affordable? && Spell[703].known? && target.status !~ /dead|gone/ && target.name =~ /seer|adept|elemental|magus|siren|radical/
  403.             fput ("cast")
  404.             waitcastrt?
  405.            
  406.             fput "release"
  407.             fput ("prep 709") if Spell[709].affordable? && Spell[709].known? && target.status !~ /dead|gone/ && target.name !~ /griffin|construct/
  408.             fput ("cast")
  409.             waitcastrt?
  410.                
  411.             while !(target.status =~ /dead|gone/) && !dead?
  412.                 fput("sacrifice ##{target.id}") if target.status =~ /stunned/ && Spell[9008].active? && missingmana >= 100
  413.                 waitcastrt?
  414.                
  415. #               fput("incant 705 ##{target.id}") if target.status !~ /dead|gone/ && Spell[705].affordable? && Spell[705].known?
  416. #               waitcastrt?
  417.            
  418.                 fput("incant 702 ##{target.id}") if target.status !~ /dead|gone/ && Spell[702].affordable? && Spell[702].known? && target.name !~ /construct|taint|being|gremlock/
  419.                 waitcastrt?
  420.  
  421.                 start_script( "sloot" ) if target.status =~ /dead|gone/
  422.                 wait_while { running?('sloot') }
  423.             end
  424.         waitrt?
  425.         waitcastrt?
  426. #   elsif percentmind > 80
  427. #       fput "boost long"
  428. #   elsif percentmind(100)
  429. #       echo ""
  430. #       echo ""
  431. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  432. #       echo ""
  433. #       echo ""
  434. #       fput "disband"
  435. #       kill_script 'wander'
  436. #       start_script 'go2', [ "3619" ]
  437. #       wait_while { running?('go2') }
  438. #       fput ("store weapon")
  439. #       start_script 'sloot', [ "sell" ]
  440. #       wait_while { running?('sloot') }
  441. #       exit
  442. #   else
  443. #   sleep 5
  444. #   start_script 'wander' if checknpcs.nil?
  445. #   wait_while { running?('wander') }
  446. #   sleep 0.25
  447.     fput "stop 709"
  448.     fput "loot room"
  449.     end
  450. elsif Char.name =~ /Kaight/
  451.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|'child'|'guard'|'guardsman'/i }
  452.     sleep 1
  453.         waitrt? if !(target.status =~ /dead|gone/)
  454.         waitcastrt? if !(target.status =~ /dead|gone/)
  455.            
  456.             fput "stance guarded" if standing? && checkstance != "guarded"
  457.            
  458.             start_script( "sloot" ) if target.status =~ /dead|gone/
  459.             wait_while { running?('sloot') }
  460.  
  461.             fput "send 10 akio" if Char.name =~ /Kaight/ && checkmana > 75
  462.            
  463. #           fput("incant 1618") if target.status !~ /dead|gone/ && !Spell[1618].active? && Spell[1618].affordable? && Spell[1618].known?
  464. #           sleep 0.25
  465. #           waitrt?
  466. #           waitcastrt?
  467.                        
  468.             fput("incant 1607") if target.status !~ /dead|gone/ && !Spell[1607].active? && Spell[1607].affordable? && Spell[1607].known? && checkstamina < 50
  469.             sleep 0.25
  470.             waitrt?
  471.             waitcastrt?
  472.                
  473. #           fput "release"
  474. #           fput("prep 1614") if target.status !~ /dead|gone/ && Spell[1614].affordable? && Spell[1614].known?
  475. #           fput ("cast")
  476. #           waitcastrt?
  477.            
  478.             fput "release"
  479.             fput("prep 1608") if target.status !~ /dead|gone/ && Spell[1608].affordable? && Spell[1608].known? && target.name !~ /shrub|creeper|tumbleweed|plant|vine|bush/
  480.             fput ("cast")
  481.             waitcastrt?
  482.            
  483. #           fput "release"
  484. #           fput("prep 1602") if target.status !~ /dead|gone/ && Spell[1602].affordable? && Spell[1602].known?
  485. #           fput ("cast")
  486. #           waitcastrt?
  487.            
  488.             start_script( "sloot" ) if target.status =~ /dead|gone/
  489.             wait_while { running?('sloot') }
  490.            
  491.             fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/ && target.name =~ /griffin/
  492.             fput("cman feint ##{target.id}") if target.status !~ /dead|gone/ && target.name !~ /griffen|construct|shrub|creeper|tumbleweed|plant|vine|bush/
  493.             waitrt?
  494.            
  495.             fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone|prone|kneeling/ && target.name !~ /griffin/
  496.             fput("shield bash ##{target.id}") if target.status !~ /dead|gone|prone|kneeling/ && target.name !~ /griffen|construct|shrub|creeper|tumbleweed|plant|vine|bush/
  497.             waitrt?
  498.            
  499. #               fput("incant 1615 ##{target.id}") if target.status !~ /dead|gone/ && Spell[1630].affordable? && Spell[1615].known? && target.name =~ /ithzir adept|ithzir seer|war griffin/
  500. #               waitcastrt?
  501.                
  502.             while !(target.status =~ /dead|gone/) && !dead?
  503.            
  504.                 start_script( "sloot" ) if target.status =~ /dead|gone/
  505.                 wait_while { running?('sloot') }
  506.            
  507.                 fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/ && target.name !~ /griffin/
  508.                 fput "mstrike" if checkstamina >= 50 && !Spell[9005].active? && target.status !~ /dead|gone/ && target.name !~ /griffin/
  509.                 waitrt?
  510.                
  511.                 fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/
  512.                 fput("kill ##{target.id}") if target.status !~ /dead|gone/
  513.                 waitrt?
  514.                
  515.                 start_script( "sloot" ) if target.status =~ /dead|gone/
  516.                 wait_while { running?('sloot') }
  517.             end
  518.         waitrt?
  519.         waitcastrt?
  520. #   elsif percentmind > 80
  521. #        fput "boost long"
  522. #   elsif percentmind(100)
  523. #       echo ""
  524. #       echo ""
  525. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  526. #       echo ""
  527. #       echo ""
  528. #       fput "disband"
  529. #       kill_script 'wander'
  530. #       start_script 'go2', [ "3619" ]
  531. #       wait_while { running?('go2') }
  532. #       fput ("store weapon")
  533. #       start_script 'sloot', [ "sell" ]
  534. #       wait_while { running?('sloot') }
  535. #       exit
  536.     else
  537.     sleep 5
  538. #   start_script 'wander' if checknpcs.nil?
  539. #   wait_while { running?('wander') }
  540.     sleep 0.25
  541.     end
  542. elsif Char.name =~ /Akio/
  543.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /"arm"|"arms"|"child"|"guard"|"guardsman"/i }
  544.     sleep 1
  545.         waitrt? if !(target.status =~ /dead|gone/)
  546.         waitcastrt? if !(target.status =~ /dead|gone/)
  547.                
  548.             fput "release"
  549.             fput ("prep 909") if Spell[912].affordable? && Spell[909].known? && target.name !~ /construct|griffin/
  550.             fput ("cast")
  551.             waitcastrt?
  552.  
  553.             fput("incant 917 fire ##{target.id}") if Spell[917].affordable? && Spell[917].known? && target.name !~ /griffin/
  554.             waitcastrt?
  555.  
  556.             while !(target.status =~ /dead|gone/) && !dead?
  557.    
  558.                 fput "stance offensive" if standing? && checkstance != "offensive" && Spell[520].affordable? && target.name !~ /construct/
  559.                 fput("incant 908 ##{target.id}") if target.status !~ /dead|gone/ && Spell[520].affordable? && target.name !~ /construct/
  560.                 fput "stance guarded" if checkstance != "guarded"
  561.                 waitcastrt?
  562.    
  563.                 fput "stance offensive" if standing? && checkstance != "offensive" && Spell[910].affordable?
  564.                 fput("incant 904 evoke ##{target.id}") if target.status !~ /dead|gone/ && Spell[910].affordable?
  565.                 fput "stance guarded" if checkstance != "guarded"
  566.                 waitcastrt?
  567.  
  568.                 start_script( "sloot" ) if target.status =~ /dead|gone/
  569.                 wait_while { running?('sloot') }
  570.             end
  571.         waitrt?
  572.         waitcastrt?
  573. #   elsif percentmind > 80
  574. #       fput "boost long"
  575. #   elsif percentmind(100)
  576. #       echo ""
  577. #       echo ""
  578. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  579. #       echo ""
  580. #       echo ""
  581. #       fput "stance defensive" if checkstance != "defensive"
  582. #       fput "disband"
  583. #       kill_script 'wander'
  584. #       start_script 'go2', [ "3672" ]
  585. #       wait_while { running?('go2') }
  586. #       fput ("store weapon")
  587. #       start_script 'sloot', [ "sell" ]
  588. #       wait_while { running?('sloot') }
  589. #       exit
  590.     else
  591.     sleep 5
  592.     start_script 'wander' if checknpcs.nil?
  593.     wait_while { running?('wander') }
  594.     sleep 0.25
  595.     end
  596. elsif Char.name =~ /Felstump|Phocosoen/
  597.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|child|guardsman/i }
  598.     fput "stance guarded" if Char.stance != 'guarded'
  599.     sleep 1
  600.         waitrt? if !(target.status =~ /dead|gone/)
  601.         waitcastrt? if !(target.status =~ /dead|gone/)
  602.             while !(target.status =~ /dead|gone/) && !dead?
  603.                    
  604.                 fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/
  605.                 fput("kill ##{target.id}") if target.status !~ /dead|gone/
  606.                 waitrt?
  607.                 sleep 0.25
  608.  
  609. #               start_script( "sloot" ) if target.status =~ /dead|gone/ && target.name !~ /spirit/
  610. #               wait_while { running?('sloot') }
  611.             end
  612.         waitrt?
  613.         waitcastrt?
  614. #   elsif percentmind > 80
  615. #       fput "boost long"
  616. #   elsif percentmind(100)
  617. #       echo ""
  618. #       echo ""
  619. #       echo "Your mind is full.  Heading to town to absorb experience and rest."
  620. #       echo ""
  621. #       echo ""
  622. #       fput "disband"
  623. #       kill_script 'wander'
  624. #       start_script 'go2', [ "3619" ]
  625. #       wait_while { running?('go2') }
  626. #       fput ("store weapon")
  627. #       start_script 'sloot', [ "sell" ]
  628. #       wait_while { running?('sloot') }
  629. #       exit
  630. #   else
  631. #   sleep 5
  632. #   start_script 'wander' if checknpcs.nil?
  633. #   wait_while { running?('wander') }
  634. #   sleep 0.25
  635.     end
  636. elsif Char.name =~ /Vallystee/
  637.     if target = GameObj.npcs.find { |npc| npc.type =~ /aggressive npc/ && npc.noun !~ /'arm'|'arms'|child|guardsman/i }
  638.     fput "stance guarded" if Char.stance != 'guarded'
  639.     sleep 1
  640.         waitrt? if !(target.status =~ /dead|gone/)
  641.         waitcastrt? if !(target.status =~ /dead|gone/)
  642.             while !(target.status =~ /dead|gone/) && !dead?
  643.            
  644. #               fput("incant 1201 ##{target.id}") if target.status !~ /dead|gone/ && Spell[1202].affordable?
  645. #               waitcastrt?
  646.                
  647.                 fput "stance offensive" if standing? && checkstance != "offensive" && target.status !~ /dead|gone/
  648.                 fput ("jab ##{target.id}") if target.status !~ /dead|gone/
  649.                 sleep 0.25
  650.                 waitrt?
  651.  
  652.  
  653.                 start_script( "sloot" ) if target.status =~ /dead|gone/ && target.name !~ /zombie|sentry|hawk-owl|arachnid|basilisk|centaur/
  654.                 wait_while { running?('sloot') }
  655.             end
  656.         waitrt?
  657.         waitcastrt?
  658. #   elsif percentmind > 80
  659. #       fput "boost long"
  660.     elsif percentmind(100)
  661.         echo ""
  662.         echo ""
  663.         echo "Your mind is full.  Heading to town to absorb experience and rest."
  664.         echo ""
  665.         echo ""
  666.         fput "disband"
  667.         kill_script 'wander'
  668.         start_script 'go2', [ "228" ]
  669.         wait_while { running?('go2') }
  670.         fput ("store weapon")
  671.         start_script 'sloot', [ "sell" ]
  672.         wait_while { running?('sloot') }
  673.         start_script 'waggle'
  674.         exit
  675.     else
  676.     sleep 1
  677.     start_script 'wander' if checknpcs.nil?
  678.     wait_while { running?('wander') }
  679.     sleep 0.25
  680.     end
  681. end
  682. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top