Дайте макрос на мининг инфо в нутри
Posted: 2004-04-26 14:07:22
если не сложно макрос с реколом домой по рунам и выгрузкой каму не трудно подкиньте
Code: Select all
sub meditation()
While UO.Mana<UO.INT
UO.UseSkill("Meditation")
wait(10000)
wend
End sub
sub miningrud()
while (1==1)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("setcatchbag")
m_rune_1()
mining()
mining()
GoN()
GoN()
GoN()
GoN()
GoN()
GoWN()
GoWN()
mining()
mining()
GoSE()
GoSE()
GoE()
GoE()
GoE()
GoE()
GoE()
mining()
mining()
razgruzka()
m_rune_2()
mining()
mining()
GoN()
GoN()
GoN()
GoN()
GoN()
GoWN()
GoWN()
mining()
mining()
razgruzka()
m_rune_3()
mining()
mining()
razgruzka()
wend
end sub
sub recall()
var runebookid = "0x401ab25b"
#0x029 ->41
#,recall 0x401ab25b 5
uo.set( "norbcheck", "1" )
uo.set( "norbcalc", "1" )
uo.recall( runebookid, "5" )
wait(4500)
end sub
sub m_rune_1()
var runebookid = "0x401ab25b"
#0x029 ->41
#,recall 0x401ab25b 11
uo.set( "norbcheck", "1" )
uo.set( "norbcalc", "1" )
uo.recall( runebookid, "11" )
wait(4500)
end sub
sub m_rune_2()
var runebookid = "0x401ab25b"
#0x029 ->41
#,recall 0x401ab25b 17
uo.set( "norbcheck", "1" )
uo.set( "norbcalc", "1" )
uo.recall( runebookid, "17" )
wait(4500)
end sub
sub m_rune_3()
var runebookid = "0x401ab25b"
#0x029 ->41
#,recall 0x401ab25b 23
uo.set( "norbcheck", "1" )
uo.set( "norbcalc", "1" )
uo.recall( runebookid, "23" )
wait(4500)
end sub
sub razgruzka()
uo.deletejournal()
recall:
recall()
if uo.injournal("The spell")==1 then
goto recall
uo.deletejournal()
end if
meditation()
UO.Say ("bank")
wait (1000)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
end sub
sub mining()
wait(1000)
UO.exec("useskill Hiding")
UO.Press(113)
wait(1000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(395,205)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(419,239)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(436,260)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(452,276)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(472,299)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(375,237)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(383,251)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(433,275)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(450,298)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(452,320)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(366,252)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(365,276)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(385,297)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(412,324)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(434,342)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(338,275)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(361,297)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(383,317)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(401,330)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(421,351)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(318,297)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(338,315)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(376,354)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(378,352)
wait(5000)
UO.Exec("usetype pickaxe3")
wait(1000)
UO.LClick(399,378)
wait(5000)
end sub
sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')
repeat
wait(500)
until UO.InJournal('backpack')
end sub
sub GoN()
VAR walkwait=300
VAR x,y,dir=0
VAR key=33 ; PgUp
x=UO.GetX()
y=UO.GetY()
while UO.GetDir()<>dir
UO.Press(key)
wait(walkwait)
If UO.GetDir()<>dir Then
CheckLag()
Endif
wend
UO.Press(key)
wait(walkwait)
If x==UO.GetX() AND y==UO.GetY() Then
CheckLag()
Endif
If UO.GetY()+1==y Then
return -1
Else
return 1
Endif
end sub
sub GoE()
VAR walkwait=300
VAR x,y,dir=2
VAR key=34 ; PgDown
x=UO.GetX()
y=UO.GetY()
while UO.GetDir()<>dir
UO.Press(key)
wait(walkwait)
If UO.GetDir()<>dir Then
CheckLag()
Endif
wend
UO.Press(key)
wait(walkwait)
If x==UO.GetX() AND y==UO.GetY() Then
CheckLag()
Endif
If UO.GetX()-1==x Then
return -1
Else
return 1
Endif
end sub
sub GoWN()
VAR walkwait=300
VAR x,y,dir=7
VAR key=38 ; UpArrow
x=UO.GetX()
y=UO.GetY()
If UO.GetDir()<>dir Then
UO.Press(key)
wait(walkwait)
If UO.GetDir()<>dir Then
CheckLag()
Endif
Endif
If UO.GetDir()==dir Then
UO.Press(key)
wait(walkwait)
If x==UO.GetX() AND y==UO.GetY() Then
CheckLag()
Endif
If UO.GetDir()==dir Then
return -1
Else
return UO.GetDir()
Endif
Else
return UO.GetDir()
Endif
end sub
sub GoSE()
VAR walkwait=300
VAR x,y,dir=3
VAR key=40 ; DownArrow
x=UO.GetX()
y=UO.GetY()
If UO.GetDir()<>dir Then
UO.Press(key)
wait(walkwait)
If UO.GetDir()<>dir Then
CheckLag()
Endif
Endif
If UO.GetDir()==dir Then
UO.Press(key)
wait(walkwait)
If x==UO.GetX() AND y==UO.GetY() Then
CheckLag()
Endif
If UO.GetDir()==dir Then
return -1
Else
return UO.GetDir()
Endif
Else
return UO.GetDir()
Endif
end sub
Code: Select all
sub recall()
var runebookid = "0x401ab25b"
#0x029 ->41
#,recall 0x401ab25b 5
uo.set( "norbcheck", "1" )
uo.set( "norbcalc", "1" )
uo.recall( runebookid, "5" )
wait(4500)
end sub
sub m_rune_1()
var runebookid = "0x401ab25b"
#0x029 ->41
#,recall 0x401ab25b 11
uo.set( "norbcheck", "1" )
uo.set( "norbcalc", "1" )
uo.recall( runebookid, "11" )
wait(4500)
end sub
Code: Select all
sub razgruzka()
uo.deletejournal()
recall:
recall()
if uo.injournal("The spell")==1 then
goto recall
uo.deletejournal()
end if
meditation()
UO.Say ("bank")
wait (1000)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
UO.say (",setreceivingcontainer 0x4010C1CB")
wait (1000)
UO.exec("waittargetobject 0x4000B5F1")
UO.exec("emptycontainer 500")
wait (2500)
end sub
Lord Ruslan Nightmare wrote:Ужасный скриптЯ таких в страшном сне не видел...Последний раз я такие скрипты писал полгода назад... Особо меня пугают сложные махинации с emptycontainer, т.к. я вообще не понимаю их смысл.