Yoko

All sides of Injection
It is currently 2026-01-16 23:09:21

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2009-01-10 14:49:41 
Offline

Joined: 2005-01-24 16:04:51
Posts: 4
http://www.zuluhotel.net

Code:

sub main()
var i
uo.print("Poneslas`!!!")
While UO.Life>0
for i=1 to 15
kopat()
uo.press(116)
wait(1000)
uo.press(116)
next
uo.press(116)
wait(1000)
uo.press(116)
uo.print("Idem nazad!!!")
kopat()
for i=1 to 15
uo.press(117)
wait(1000)
uo.press(117)
next
uo.press(117)
wait(1000)
uo.press(117)

wend
end sub

sub kopat()
var where_x,where_y,where_z,coords,i
UO.DeleteJournal()
where_x=uo.getx()
where_y=uo.gety()
where_z=uo.getz()
for i=-2 to 2
uo.print("Kopaem "+str(i+3)+"/5")
coords="waittargettile 1343 "+str(where_x)+" "+str(where_y+i)+" 0"
uo.exec(coords)
uo.exec("usetype '0x0E85'")
UO.DeleteJournal()
while (not (UO.InJournal("stop mining") or UO.InJournal("left there") or UO.InJournal("far away")))
wait(1000)
wend
next
end sub



Выскакивает ошибка Unhandled exception in parser.

Прошу проверить и найти ошибку. Ходит копает иногда даже возращаеться!


Last edited by Batis on 2009-01-10 14:57:19, edited 2 times in total.

Top
   
 Post subject:
PostPosted: 2009-01-10 14:52:17 
Offline

Joined: 2005-01-24 16:04:51
Posts: 4
останавливаеться постоянно на одном и том же месте.


Code:
for i=-2 to 2
uo.print("Kopaem "+str(i+3)+"/5")


Top
   
 Post subject:
PostPosted: 2009-01-10 16:04:47 
Offline
User avatar

Joined: 2006-05-12 08:03:45
Posts: 223
Code:
coords="waittargettile 1343 "+str(where_x)+" "+str(where_y+i)+" 0" 

Тайл обязательно 1343 или без разницы? Если любой - замени 1343 на -1. Проверь все тайлы которые копаешь, вдруг какой-нибудь отличается.
Code:
while (not (UO.InJournal("stop mining") or UO.InJournal("left there") or UO.InJournal("far away")))
wait(1000)
wend

wait можно и поменьше например 200.

_________________
Играю на drw.ru
Использую инжект 505.18 VeNd0r
Начинающий скриптер.


Top
   
 Post subject:
PostPosted: 2009-01-11 09:22:33 
Offline
User avatar

Joined: 2006-11-14 16:19:03
Posts: 257
Code:
for i=-2 to +2


Top
   
 Post subject:
PostPosted: 2009-01-13 09:39:49 
Offline
User avatar

Joined: 2006-05-12 08:03:45
Posts: 223
А зачем тебе переменная "where_z", если ты её не используешь? И неужели есть только 3 варианта ответа на твои действия?
Code:
while (not (UO.InJournal("stop mining") or UO.InJournal("left there") or UO.InJournal("far away"))) 

С другой стороны ходит - копает... Хмм... Странно.
Попробуй так:
Code:
sub main()
var i
uo.print("Poneslas`!!!")
While not uo.dead()
for i=1 to 15
kopat()
wait(1000)
uo.press(116)
wait(1000)
uo.press(116)
next
uo.print("Idem nazad!!!")
wait(1000)
for i=1 to 15
uo.press(117)
wait(1000)
uo.press(117)
wait(1000)
kopat()
next
uo.press(117)
wait(1000)
uo.press(117)
wend
end sub

sub kopat()
var where_x, where_y, i
UO.DeleteJournal()
where_x=uo.getx()
where_y=uo.gety()
for i=-2 to 2
uo.print("Kopaem "+str(i+3)+"/5")
uo.waittargettile(-1,str(where_x+i),str(where_y+i),0)
uo.usetype('0x0E85')
UO.DeleteJournal()
while not UO.InJournal("stop mining|left there|far away")
wait(200)
wend
next
end sub


И ещё вопрос: что за клавиши 116 и 117?

_________________
Играю на drw.ru

Использую инжект 505.18 VeNd0r

Начинающий скриптер.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 0 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