Yoko

All sides of Injection
It is currently 2025-11-08 19:53:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 2007-12-11 15:14:58 
Offline

Joined: 2004-06-17 14:59:15
Posts: 28
Location: Екатеринбург
sub alhim()
UO.usetype(0x0E9B) \ тыкаем на пестик появляется прицел
UO.Exec("waittargetobject 0x4ACA18FD") \ выбираем реагент NightShade, не знаю как зделать по типу
UO.WaitMenu('Deadly_Poison') \ и нифига не выбирается говорит 4то надо promt, указываю( Select a potion to make) выдает ошибку
end sub


Top
   
 Post subject:
PostPosted: 2007-12-11 15:17:19 
Offline

Joined: 2004-06-17 14:59:15
Posts: 28
Location: Екатеринбург
может можно как-нибудь не указывать prompt ?


Top
   
PostPosted: 2007-12-11 21:22:39 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Cat wrote:
sub alhim()
UO.usetype(0x0E9B) \ тыкаем на пестик появляется прицел
UO.Exec("waittargetobject 0x4ACA18FD") \ выбираем реагент NightShade, не знаю как зделать по типу
UO.WaitMenu('Deadly_Poison') \ и нифига не выбирается говорит 4то надо promt, указываю( Select a potion to make) выдает ошибку
end sub

Тоже самое, но без грамматических ошибок:
Code:
sub alhim()
   uo.WaitTargetObject( "0x4ACA18FD" )
   uo.WaitMenu( 'Select a potion to make', 'Deadly_Poison' )
   uo.UseType( "0x0E9B" )
endsub


Попробуйте сделать выводы.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
PostPosted: 2007-12-12 08:51:10 
Offline

Joined: 2004-06-17 14:59:15
Posts: 28
Location: Екатеринбург
Destruction wrote:
Cat wrote:
sub alhim()
UO.usetype(0x0E9B) \ тыкаем на пестик появляется прицел
UO.Exec("waittargetobject 0x4ACA18FD") \ выбираем реагент NightShade, не знаю как зделать по типу
UO.WaitMenu('Deadly_Poison') \ и нифига не выбирается говорит 4то надо promt, указываю( Select a potion to make) выдает ошибку
end sub

Тоже самое, но без грамматических ошибок:
Code:
sub alhim()
   uo.WaitTargetObject( "0x4ACA18FD" )
   uo.WaitMenu( 'Select a potion to make', 'Deadly_Poison' )
   uo.UseType( "0x0E9B" )
endsub


Попробуйте сделать выводы.


Спасибо дело пошло :)
Но не могу не где найти 4то нужно прописать 4тоб он дедлал тотлы пока не закончаться реагенты?


Top
   
 Post subject:
PostPosted: 2007-12-12 09:06:33 
Offline

Joined: 2004-06-17 14:59:15
Posts: 28
Location: Екатеринбург
И вот такой вот вопрос еще, на моем шарде нельзя слишком много предметов иметь у себя в бек паке ограничение 100
как сделать 4тоб выкидывать готовые бутылки в сундук? 4его то он не хо4ет с такой вставкой это делать :(

VAR FullBottle = '0x0F0C' \\ Тип дедла
VAR Sunduk = '0x4016E8B3' \\ Сериал сундука

if UO.Count( FullBottle ) > 0 then \\ Сгружаем полные бутылки
UO.FindType( FullBottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
end if


Top
   
 Post subject:
PostPosted: 2007-12-12 10:18:08 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
1. Обратите внимание на третий аргумент FindType и попробуйте явно указать, где нужно вести поиск.

2. Посмотрите мой первый ответ ещё раз и попробуйте сделать вывод насчёт кавычек. Если вкратце - все функции которые возможно использовать из "командной строки" - корректно понимают только строковые аргументы.

3. Смотрите в сторону циклов. Например while <условие> крафтим wend, т.е. конкретно:
Code:
while uo.count( "0x0000" )
 ; some code
wend


4. Что будет с вашей мувилкой, если сервак лаганёт секунды на три? - Незнаете? - Я тоже. Что делать? - checklag.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2007-12-12 14:51:28 
Offline

Joined: 2004-06-17 14:59:15
Posts: 28
Location: Екатеринбург
Ну все тотлы варит и пустой выкидывает
С циклом так полу4ается или нет? а то он мне 4е то сразу же УО крашит.

Sub alhim()
VAR FullBottle = '0x0F0A'
VAR Sunduk = '0x4AC45FF7'
#While
uo.WaitTargetObject( "0x4ACA18FD" )
uo.WaitMenu( 'Select a potion to make', 'Deadly_Poison' )
uo.UseType( "0x0E9B" )
if UO.Count( FullBottle ) > 0 then
UO.FindType( FullBottle, -1, -1 )
UO.MoveItem( 'finditem', 0, Sunduk )
wait( 1000 )
end if
#Wend
endsub


Top
   
 Post subject:
PostPosted: 2007-12-12 15:17:31 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
1. Нужна пауза после крафта.
2. while true например.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2007-12-15 01:29:42 
Offline
User avatar

Joined: 2006-12-08 10:51:50
Posts: 718
Location: Москва
Где-то так надо =)

Code:
sub alhim()
 Var FullBottle = '0x0F0A'
 Var Sunduk = '0x4AC45FF7'
 Var Message1 = 'You put'
 Var Message2 = 'fail'
  While true
    UO.WaitTargetObject( "0x4ACA18FD" )
    UO.WaitMenu( 'Select a potion to make', 'Deadly_Poison' )
    UO.UseType('0x0E9B')
    UO.DeleteJournal()
    Repeat
       Wait(100)
    Until UO.InJournal(Message1) or UO.InJournal(Message2)
    If UO.Count(FullBottle) > 0 then
      UO.FindType(FullBottle,' -1', 'backpack')
      UO.MoveItem('finditem', '0', Sunduk)
      Wait(1000)
    EndIf
  Wend
EndSub


Top
   
 Post subject:
PostPosted: 2007-12-15 13:20:04 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
ZeroDX wrote:
Где-то так надо =)

Code:
sub alhim()
 Var FullBottle = '0x0F0A'
 Var Sunduk = '0x4AC45FF7'
 Var Message1 = 'You put'
 Var Message2 = 'fail'
  While true
    UO.WaitTargetObject( "0x4ACA18FD" )
    UO.WaitMenu( 'Select a potion to make', 'Deadly_Poison' )
    UO.UseType('0x0E9B')
    UO.DeleteJournal()
    Repeat
       Wait(100)
    Until UO.InJournal(Message1) or UO.InJournal(Message2)
    If UO.Count(FullBottle) > 0 then
      UO.FindType(FullBottle,' -1', 'backpack')
      UO.MoveItem('finditem', '0', Sunduk)
      Wait(1000)
    EndIf
  Wend
EndSub


Динамическую в цикл until и лучше еще таймер добавить надо, + добор регов, бутылок, еду


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 13 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