Yoko
http://forum.yoko.com.ua/

Problem with my magery sc
http://forum.yoko.com.ua/viewtopic.php?f=3&t=13610
Page 1 of 1

Author:  crazy1 [ 2008-05-22 15:23:24 ]
Post subject:  Problem with my magery sc

Alright here is the code. The problem I seem to be having is that if I set the max mana to 100 after it meds up there it just keeps saying I am at peace and won't cast again. Any ideas would be great.

Thank you

Code:
sub PGMagery()
UO.print("Magery PG for BeePK")
   VAR maxmana
   VAR minmana
   VAR temp
   VAR i
#EINSTELLUNGEN
#--Bis wieviel Mana Meditieren ?
maxmana = 99
#--Ab wieviel Mana Meditieren ?
minmana = 90
   Repeat
     Repeat
     Wait(100)
       UO.Exec ("cast 'Night Sight' self")
       Wait(3000)
       i = 0
#wait
       While (i < 50)
         Wait(20)
         i = i+1
       Wend
         Wait(200)


     Until UO.mana < minmana

     UO.press(9)   # press TAB
     Wait(200)
      Repeat
       UO.useskill('Meditation')
Wait(1000)
     Until UO.mana > maxmana
   Until False
end sub

Author:  Destruction [ 2008-05-22 17:46:31 ]
Post subject: 

Code:
sub PGMagery()
   uo.print( "Magery PG for BeePK" )
   var maxmana = 99
   var minmana = 90
   repeat
      while uo.mana > minmana
         uo.cast( "Night Sight", "self" )
         wait( 4200 )
      wend
      uo.warmode( false )
      while uo.mana < maxmana
         uo.useskill( "Meditation" )
         wait( 1000 )
      wend
   until false
endsub

Author:  crazy1 [ 2008-05-22 19:23:34 ]
Post subject: 

thank you for your help

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/