Yoko

All sides of Injection
It is currently 2024-03-28 15:50:39

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2012-12-26 13:57:06 
Offline

Joined: 2012-12-22 09:29:47
Posts: 3
sub main()
var mx, my, mz, i, j, TIME
var number = 1
Uo.exec("set norbcheck 0"); для рекола
uo.exec("set norbcalc 0"); тоже
uo.canceltarget()
uo.print('!!Выбери Лопату!! ')
uo.exec('addobject shovel')
while uo.targeting()
wait(100)
wend
while not uo.Dead()
mx = UO.GetX("self")
my = UO.GetY("self")
mz = UO.GetZ("self")
UO.DeleteJournal()
for i = mx-1 to mx+1
for j = my-1 to my+1
UO.Print("Копаем в координатах: "+str(mx-i)+" "+str(my-j))
while not UO.InJournal("There is nothing here to mine for") and not UO.InJournal("That is too far away") and not UO.InJournal("You decide not to mine for now") and not UO.InJournal("You put the") and not UO.InJournal("You cannot mine so close to yourself") and not UO.InJournal("You have no line of sight to that location")
uo.DeleteJournal()
if uo.waiting() then
uo.canceltarget()
endif
UO.Waittargettile('1341', str(i), str(j), str(mz))
UO.exec("useobject shovel")
TIME = 0
while not TIME == 6000 and not UO.InJournal("There is nothing here to mine for") and not UO.InJournal("That is too far away") and not UO.InJournal("You decide not to mine for now") and not UO.InJournal("You put the") and not UO.InJournal("You cannot mine so close to yourself") and not UO.InJournal("You have no line of sight to that location")
TIME = 0
uo.DeleteJournal()
while not UO.InJournal("You put the") and not TIME == 4000 and not UO.InJournal("There is nothing here to mine for") and not UO.InJournal("That is too far away") and not UO.InJournal("You decide not to mine for now") and not UO.InJournal("You cannot mine so close to yourself") and not UO.InJournal("You have no line of sight to that location")
wait (100)
TIME = TIME + 100
wend
wait(1000)
uo.Print('pereskok')
wend
if uo.weight > Weight then
if NaZemly == 1 then
Drop()
else
uo.exec("terminate all")
endif
wait(100)
endif
wend
UO.DeleteJournal()
next
next
wend
end sub


Вот такой скрипт, что нужно добавить чтобы он ходил по пещере с задаными координатами? Помогите плиз :(


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

All times are UTC+02:00


Who is online

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