скрипт на бс
Moderators: Murderator+, Murderator
скрипт на бс
дайте скрипт плизз на ковку ножей !
sub BSSoul()
VAR Exit=0, LastTimer, Container='0x40058930', Forge='0x40181955'
VAR CountIng=1000 ; Skol`ko ingov podnimaet
VAR MenuIron="'Blacksmithing' 'Weapons'"
VAR MenuOther="'Colored' 'Weapons'"
VAR MenuSwords="Weapons' 'Swords'"
VAR MenuDagger="'Swords' '(3'"
VAR i=0
DIM ColorOfIng[6]
DIM NameOre[6]
NameOre[0]="'"
NameOre[1]="'Rusty "
NameOre[2]="'Old Copper "
NameOre[3]="'Dull Copper "
NameOre[4]="'Bronze "
ColorOfIng[0]='0x0000' ; Iron
ColorOfIng[1]='0x0750' ; Rusty
ColorOfIng[2]='0x0590' ; Old Copper
ColorOfIng[3]='0x060A' ; Dull Copper
ColorOfIng[4]='0x0488' ; Bronze
UO.UseObject(Container)
while NOT UO.Dead()
For i=0 to 4
UO.FindType('0x1BEF',ColorOfIng[i],Container)
If UO.GetQuantity('finditem')>10 Then
UO.Grab(STR(CountIng),'finditem')
wait(1000)
UO.Exec('automenu '+MenuDagger)
UO.Exec('automenu '+NameOre[i]+MenuSwords)
If i>0 Then
UO.Exec('automenu '+MenuOther)
Endif
UO.Exec('automenu '+MenuIron)
While Exit<>1
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.UseType(0x1BEF) ; ings
while NOT UO.InJournal("You put") AND NOT UO.InJournal("You have failed")
wait(100)
wend
If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100 ;time to make a dagger
EndIf
CheckLag()
UO.FindType('0x0F51',-1,'backpack')
If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(Forge) ;forge
wait(3000)
Endif
UO.FindType('0x1BEF',-1,'backpack')
If UO.GetQuantity('finditem')<10 Then
UO.FindType('0x1BEF',ColorOfIng[i],Container)
If UO.GetQuantity('finditem')<10 Then
UO.FindType('0x1BEF',ColorOfIng[i],'backpack')
UO.SetReceivingContainer(Container)
UO.Grab('all','finditem')
UO.UnSetReceivingContainer()
Exit=1
Endif
Else
wait(1000)
UO.Grab(STR(CountIng-10),'finditem')
Endif
Wend
Exit=0
UO.CancelMenu()
Endif
Next
wend
end sub
sub CheckLag()
IF UO.Waiting() > 0 THEN
UO.Exec("canceltarget")
END IF
UO.DeleteJournal()
UO.Click('backpack')
REPEAT
WAIT(50)
UNTIL UO.InJournal('backpack')
end sub
VAR Exit=0, LastTimer, Container='0x40058930', Forge='0x40181955'
VAR CountIng=1000 ; Skol`ko ingov podnimaet
VAR MenuIron="'Blacksmithing' 'Weapons'"
VAR MenuOther="'Colored' 'Weapons'"
VAR MenuSwords="Weapons' 'Swords'"
VAR MenuDagger="'Swords' '(3'"
VAR i=0
DIM ColorOfIng[6]
DIM NameOre[6]
NameOre[0]="'"
NameOre[1]="'Rusty "
NameOre[2]="'Old Copper "
NameOre[3]="'Dull Copper "
NameOre[4]="'Bronze "
ColorOfIng[0]='0x0000' ; Iron
ColorOfIng[1]='0x0750' ; Rusty
ColorOfIng[2]='0x0590' ; Old Copper
ColorOfIng[3]='0x060A' ; Dull Copper
ColorOfIng[4]='0x0488' ; Bronze
UO.UseObject(Container)
while NOT UO.Dead()
For i=0 to 4
UO.FindType('0x1BEF',ColorOfIng[i],Container)
If UO.GetQuantity('finditem')>10 Then
UO.Grab(STR(CountIng),'finditem')
wait(1000)
UO.Exec('automenu '+MenuDagger)
UO.Exec('automenu '+NameOre[i]+MenuSwords)
If i>0 Then
UO.Exec('automenu '+MenuOther)
Endif
UO.Exec('automenu '+MenuIron)
While Exit<>1
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.UseType(0x1BEF) ; ings
while NOT UO.InJournal("You put") AND NOT UO.InJournal("You have failed")
wait(100)
wend
If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100 ;time to make a dagger
EndIf
CheckLag()
UO.FindType('0x0F51',-1,'backpack')
If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(Forge) ;forge
wait(3000)
Endif
UO.FindType('0x1BEF',-1,'backpack')
If UO.GetQuantity('finditem')<10 Then
UO.FindType('0x1BEF',ColorOfIng[i],Container)
If UO.GetQuantity('finditem')<10 Then
UO.FindType('0x1BEF',ColorOfIng[i],'backpack')
UO.SetReceivingContainer(Container)
UO.Grab('all','finditem')
UO.UnSetReceivingContainer()
Exit=1
Endif
Else
wait(1000)
UO.Grab(STR(CountIng-10),'finditem')
Endif
Wend
Exit=0
UO.CancelMenu()
Endif
Next
wend
end sub
sub CheckLag()
IF UO.Waiting() > 0 THEN
UO.Exec("canceltarget")
END IF
UO.DeleteJournal()
UO.Click('backpack')
REPEAT
WAIT(50)
UNTIL UO.InJournal('backpack')
end sub