


Moderators: Murderator+, Murderator
Code: Select all
# Крафт Тотал манок
sub Total_Mana()
VAR Sunduk = "0x403F363A" ; Серийник сундука с регами и бутылками.
VAR Bottle = "0x0F0E" ; тип пустых бутылок.
VAR Mortar = "0x0E9B" ; тип пестика.
VAR FullBottle = '0x0F09'
VAR Reagent = '0x0F87'
VAR k = 0
VAR t
While TRUE
wait( 2000 )
UO.FindType( Reagent, -1, Sunduk )
if UO.FindCount() == 0 Then
UO.Print( "Reagents not found, script terminated" )
return
end if
UO.Grab( '60', 'finditem' ) ; Кол-во регов на 1 бутылку * 10.
wait( 2000 )
UO.FindType( Bottle, -1, Sunduk )
if UO.FindCount() == 0 Then
UO.Print( "Empty bottles not found, script terminated" )
return
end if
UO.Grab( '10', 'finditem' )
wait( 2000 )
While UO.Count( Reagent ) > 6 and UO.Count( Bottle ) >0 ; Кол-во регов на 1 бутылку
UO.DeleteJournal()
UO.CancelMenu()
UO.WaitMenu ( 'What', 'total mana refresh' )
UO.UseType( Reagent )
k = 0
while NOT UO.InJournal( 'You put' ) AND NOT UO.InJournal( 'fail' ) AND ( k < 30 )
if UO.InJournal( "Neon: stopmaking" ) then
while NOT UO.InJournal( 'You put' ) AND NOT UO.InJournal( 'fail' ) AND ( k < 30 )
wait( 500 )
wend
if UO.Count( FullBottle ) > 0 then
UO.FindType( FullBottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
end if
if UO.Count( Bottle ) > 0 then
UO.FindType( Bottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
end if
if UO.Count( Reagent ) > 0 then
UO.FindType( Bottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
end if
return
else
k = k + 1
wait( 500 )
end if
wend
if UO.Count( FullBottle ) > 0 then
UO.FindType( FullBottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
end if
wend
if UO.Count( Bottle ) > 0 then
UO.FindType( Bottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
end if
Wend
end sub
Code: Select all
UO.WaitMenu ( 'What', 'total mana refresh' )