Yoko

All sides of Injection
It is currently 2025-10-27 05:10:26

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2007-10-19 23:59:48 
Offline
User avatar

Joined: 2006-02-26 22:41:09
Posts: 90
Вот скрипт
Code:
sub mining() 
var mx, my, mz, i, j
var ismining, ixx, isheavy
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")

uo.setcatchbag('0x400FDED9')

While not UO.Dead()
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my -4 to my+2
UO.Print("Now Mining In: "+str(mx-i)+" "+str(my-j))
ismining = 1
while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock") and ismining

UO.DeleteJournal()
hide()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Usetype('0x0F39')
ixx = 0
ismining=1
while not UO.InJournal("You put") and not UO.InJournal("location") and not UO.InJournal("no ore") and not UO.InJournal("far away") and not UO.InJournal("in rock") and ixx <= 100
wait (100)
ixx = ixx + 1
wend
while UO.InJournal("but fail")
Wait (100)
UO.DeleteJournal()
wend



#if uo.injournal("Rusty") then
#ismining = 0
#endif
#if uo.injournal("Old Copper") then
#ismining = 0
#endif
#if uo.injournal("Dull Copper") then
#ismining = 0
#endif
#if uo.injournal("the Copper") then
#ismining = 0
#endif
#if uo.injournal("Iron") then
#ismining = 0
#endif
#if not ismining then
#uo.print("Not mining here")
#endif
wend
UO.DeleteJournal()
next
next
wend
end sub

sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')

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


Вообщем оч. прошу помоч) Нужно пришить к срипту реконнектор, только так чтобы реконнектор запускался при запуске самого скрипта)


Top
   
 Post subject:
PostPosted: 2007-10-20 08:42:04 
Offline

Joined: 2004-07-14 22:56:46
Posts: 82
Location: Украина, Одесса
Code:
sub mining()
var mx, my, mz, i, j
var ismining, ixx, isheavy
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")
uo.Exec('exec Reconnect')

uo.setcatchbag('0x400FDED9')

While not UO.Dead()
UO.DeleteJournal()
for i = mx-4 to mx+4
for j = my -4 to my+2
UO.Print("Now Mining In: "+str(mx-i)+" "+str(my-j))
ismining = 1
while not UO.InJournal("no ore here") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("in rock") and ismining

UO.DeleteJournal()
hide()
UO.Waittargettile("1341", str(i), str(j), str(mz))
UO.Usetype('0x0F39')
ixx = 0
ismining=1
while not UO.InJournal("You put") and not UO.InJournal("location") and not UO.InJournal("no ore") and not UO.InJournal("far away") and not UO.InJournal("in rock") and ixx <= 100
wait (100)
ixx = ixx + 1
wend
while UO.InJournal("but fail")
Wait (100)
UO.DeleteJournal()
wend



#if uo.injournal("Rusty") then
#ismining = 0
#endif
#if uo.injournal("Old Copper") then
#ismining = 0
#endif
#if uo.injournal("Dull Copper") then
#ismining = 0
#endif
#if uo.injournal("the Copper") then
#ismining = 0
#endif
#if uo.injournal("Iron") then
#ismining = 0
#endif
#if not ismining then
#uo.print("Not mining here")
#endif
wend
UO.DeleteJournal()
next
next
wend
end sub

sub CheckLag()
UO.DeleteJournal()
UO.Click('backpack')

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

sub Reconnect()
var ReconnectTime,rFlag
ReconnectTime='0'
rFlag=1
repeat
while (uo.ObjAtLayer('Bpack')=='')
if rFlag then
ReconnectTime=MakeTime()
rFlag=0
endif
wait(20000)
uo.Say('')
wait(3000)
uo.Say('')
wait(3000)
uo.Say('')
wait(3000)
uo.LDblClick(357,164)
uo.LClick(616,459)
wait(3000)
wend
wait(3000)
if (rFlag==0) and (ReconnectTime<>'0') then
uo.TextOpen()
uo.TextPrint('Disconnected & Reconnected @ '+ReconnectTime)
rFlag=1
ReconnectTime='0'
endif
until false
end sub

sub MakeTime()
var d,t,ret,i
ret=str(uo.Time())
t=""
for i=0 to Len(ret)
t=ret[Len(ret)-i]+t
if (i==2) or (i==4) then
t=":"+t
endif
next
ret=str(uo.Date())
d=""
for i=0 to Len(ret)
d=ret[Len(ret)-i] + d
if (i==2) or (i==4) then
d="."+d
endif
next
ret=t+" @ "+d
return ret
end sub

_________________
ХХДЕНТОНХХ: Холодостойкий Хронометрирующий Дроид с Единым Наступательным Трансмутатором для Ограниченного Нападения и Хронометрированного Хищения
http://uokings.ru/news.php


Top
   
 Post subject:
PostPosted: 2007-10-20 20:35:53 
Offline
User avatar

Joined: 2006-02-26 22:41:09
Posts: 90
hide()-Тут ошибку выдает(


Top
   
 Post subject:
PostPosted: 2007-10-20 22:15:48 
Offline
User avatar

Joined: 2007-10-12 20:48:07
Posts: 100
О_о потому что нету такой функции. Либо вставляй функцию хайда, либо удаляй эту строчку, на которую он ругается. Если хайд у тебя не особо нужен.

_________________
Image
Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited