Помогите. Искал но не нашел

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
dioXido
Posts: 37
Joined: 2005-09-20 09:39:03

Помогите. Искал но не нашел

Post by dioXido »

Вот переделал скрипт под себя. НО, он копает вокруг себя как надо, когда, чар повернется вниз, то постоянно появлятся: Селект таргет, таркет кан...... Пожалуйста помогите, или дайте скрипт куда можно забахать эти кординаты. Искал по поиску нашел, скрип Монтайна, но он не подходит

Code: Select all

var tShovel='0x0F39' #кирка
########################################################
var tSeif='0x403F8FCD' #ид сейфа########################################################
var tEat='0x097B' #Еда
########################################################


sub go(x,y,k,m)
while UO.GetX()<>x or UO.GetY()<>y
UO.Press(k)
CheckLag()
wend
if m==1 then
Dig()
end if
end sub

sub main()
while Not UO.Dead()
FollowMine()
UnLoad()
ToEat()
GoBeg()
wend
end sub

sub FollowMine()
dig()
go(2361,850,0,0) #ok
go(2361,849,0,0) #ok
go(2361,848,0,0) #ok
go(2359,848,0,1) #ok
go(2359,847,0,0) #ok
go(2356,847,0,1) #ok
go(2355,847,0,1) #ok
go(2355,846,0,0) #ok
go(2354,846,0,1) #ok
go(2354,844,0,0) #ok
go(2353,844,0,1) #ok
go(2353,843,0,0) #ok
go(2352,843,0,1) #ok
go(2352,842,0,0) #ok
go(2350,842,0,1) #ok
go(2350,841,0,0) #ok
go(2348,841,0,1) #ok
go(2348,840,0,0) #ok
go(2346,840,0,1) #ok
go(2346,838,0,1) #ok
go(2354,838,0,1) #ok
go(2354,842,0,0) #ok
go(2356,842,0,1) #ok
go(2356,842,0,1) #ok
go(2356,844,0,0) #ok
go(2357,844,0,1) #ok
go(2357,845,0,0) #ok
go(2361,845,0,1) #ok
go(2361,846,0,0) #ok?
go(2361,847,0,0) #ok?
go(2361,848,0,0)
go(2361,850,0,0)



end sub

sub GoBeg()
go(2361,850,0,1)
end sub

sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')
repeat
wait(50)
until UO.InJournal('backpack')
end sub

sub tohide()
while NOT UO.Hidden()
UO.DeleteJournal()
UO.Warmode('0')
UO.UseSkill('Hiding')
repeat
wait(50)
until UO.InJournal('You have hidden') OR UO.InJournal('seem to hide') OR UO.InJournal('preoccupied') or UO.Dead()
wend
end sub

sub UnLoad()
var i
DIM Item[13]

Item[1]=0x19B9 ; >3 ore
Item[2]=0x19B7 ; 1 ore
Item[3]=0x19BA ; 2 ore
Item[4]=0x19B8 ; 3 ore
Item[5]=0x0F11 ; saphires
Item[6]=0x0F16 ; amethysts
Item[7]=0x0F18 ; tourmalines
Item[8]=0x0F15 ; citrines
Item[9]=0x0F10 ; emeralds
Item[10]=0x0F0F ; star sapphires
Item[11]=0x0F26 ; diamonds
Item[12]=0x0EED ; gold

for i = 1 to 12
UO.FindType(Item[i], '-1', 'backpack')
while UO.GetQuantity('finditem') > 0
UO.MoveItem('finditem','-1',tSeif)
Wait(1000)
CheckLag()
UO.FindType(Item[i],'-1','backpack')
wend
next
end sub

sub ToEat()
UO.Useskill('Spirit Speak')
wait(3000)
UO.UseObject(tSeif)
UO.FindType(tEat,'0x0000',tSeif)
if UO.FindCount() > 0 then
UO.MoveItem('finditem','20','backpack')
else
return
end if
repeat
CheckLag()
uo.UseType(tEat)
while not uo.InJournal("can't") and not uo.InJournal('full') and not uo.InJournal('stuffed') and not uo.InJournal('hungry') and not uo.InJournal('satiated') and not UO.Dead()
wait(100)
wend
until uo.InJournal('too full') or UO.Dead()
UO.FindType(tEat, '0x0000','backpack')
if UO.FindCount() > 0 then
UO.MoveItem('finditem','20',tSeif)
end if
end sub

sub Dig()
var mx = UO.GetX("self"), my = UO.GetY("self"), mz = UO.GetZ("self"),TileNum='1339', t=0
var i,j
if UO.Dead() then
UO.CloseUO()
end if
for i = mx-1 to mx+1
for j = my-1 to my+1
tohide()
while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock")
tohide()
CheckLag()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Exec("usetype " + tShovel)
while not UO.InJournal("You put") and not UO.InJournal("location") and not UO.InJournal("no ore") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("in rock") and not UO.InJournal("OOPS") and not UO.InJournal("attacking you")
wait(500)
wend
if UO.InJournal('something with ore') OR UO.InJournal("attacking you") then
t=1
end if
if UO.InJournal("but fail") then
wait(1000)
end if
wend
UO.DeleteJournal()
next
next
if t == 1 then
Pause()
end if
return 1
end sub

sub Pause()
UO.DeleteJournal()
REPEAT
WAIT(3000)
UO.Print("!@! ELEMENTAL !@!")
UNTIL UO.InJournal('GO')
UO.Print("!@! KOPAU !@!")

Code: Select all

Будь паинькой пользуй теги. aka I'm
Post Reply