Yoko

All sides of Injection
It is currently 2026-01-22 11:00:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2006-08-31 12:46:36 
Offline

Joined: 2006-07-06 08:30:59
Posts: 40
Вобщем опять проблемка с ходилкой маааленькая

Code:
sub hodjba ()
var x, y, i, tmp, inside, goto_x, st, first , posit
posit=UO.GetY()
posit=posit+4
while UO.GetY() < posit
UO.Press (40, 1, 500)
wend 
endif
hodjba()
UO.print ( 'maxweight reached' )
recalltohouse()
recalltohouse()
hodjba()
dropores()
recalltocave()
hodjba()


Пишет Функшн нот фаунд- ходьба

что сдесь не так? :roll:
Или подскажите как сделать чтоб когда я прилетаю с пещеры чар делает 1 шаг на юго запад на искосок / <-- вот так


Top
   
 Post subject:
PostPosted: 2006-08-31 15:44:25 
Offline
Junior Expert
User avatar

Joined: 2004-04-12 20:26:41
Posts: 150
ну во первых юзай отступы, так просто другим удобней будет вникнуть. А во вторых, ты основываешь ходьбу на рекурсии? Если нет, то поставь в конце процедуры 'end sub'


Top
   
 Post subject:
PostPosted: 2006-08-31 17:06:56 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
у тебя должен быть ищо скрипт:
Code:
sub hodjba()
WalkMe(x,y)
end sub

и ходилка:
Code:
sub WalkMe(TargetX,TargetY)
...
end sub

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2006-09-01 14:15:22 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Code:
sub hodjba
 walk(2137,916)# укажи нужные тебе координаты
end sub

sub Walk(x,y)
# by Destruction #
go:
while not uo.getX() == x || not uo.getY() == y
if not uo.getX() == x then
if uo.getX() > x then
uo.press(36)
else
uo.press(34)
endif
endif
if not uo.getY() == y && uo.getX() == x then
if uo.getY() > y then
uo.press(33)
else
uo.press(35)
endif
endif
checklag()
wend
checklag()
if not uo.getX() == x || not uo.getY() == y then
goto go
endif
endsub


Вот этот попробуй


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 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:  
Powered by phpBB® Forum Software © phpBB Limited