Problem with my magery sc

Ask for help

Moderators: Murderator+, Murderator

Post Reply
crazy1
Posts: 12
Joined: 2008-01-31 17:43:42

Problem with my magery sc

Post by crazy1 »

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: Select all

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
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Code: Select all

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
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
crazy1
Posts: 12
Joined: 2008-01-31 17:43:42

Post by crazy1 »

thank you for your help
Post Reply