Yoko

All sides of Injection
It is currently 2025-10-16 23:16:14

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2004-10-31 03:56:15 
Offline
User avatar

Joined: 2004-09-25 04:16:39
Posts: 22
Code:
sub FullOrchish()
  UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race armor' 'Orcish armor' 'helmet'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
    wend
    UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race armor' 'Orcish armor' 'ringmail tunic'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
    UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race armor' 'Orcish armor' 'leggins'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
    wend
    UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race armor' 'Orcish armor' 'sleeves'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
    wend
    UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race armor' 'Orcish armor' 'gloves'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
    wend
    UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race armor' 'Orcish armor' 'shield'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
    wend
    UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race weapons' 'Orcish Weapons' 'hammerpick'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
    wend
end sub


Вставте плз проверку на физл в этот скрипт, чтобы если он сфизлил то повторил сковать эту вещ заново.


Top
   
 Post subject:
PostPosted: 2004-10-31 22:55:55 
Offline

Joined: 2004-10-19 16:25:45
Posts: 95
попробуй вынести ожидание сообщений в отдельную процедуру, чтонить типа:
sub wait()
while not UO.InJournal("You put the")
if UO.InJournal("You have failed to make") then
uo.deletejournal()
return 0
endif
uo.deletejournal()
return 1
wend
endsub
вызывай и обрабатывай....чтонить типа:

label=0
while label==0
UO.WaitTargetType(0x1BF2)
UO.UseType(0x13e3)
label=wait()
wend


Top
   
 Post subject:
PostPosted: 2004-11-03 23:30:52 
Offline
User avatar

Joined: 2004-09-25 04:16:39
Posts: 22
Чет у меня ниче невышло всеравно когда физл он делает следущую вещь :(
А да когда я правил скрипт он иногда пишет что несущестувющая неправлина :( (она обчно последнея)


Top
   
 Post subject:
PostPosted: 2004-11-04 12:46:12 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
У второго while отсутствует wend


Top
   
 Post subject:
PostPosted: 2004-11-07 00:32:02 
Offline
User avatar

Joined: 2004-09-25 04:16:39
Posts: 22
Edred wrote:
У второго while отсутствует wend

и что стого я всё поправил уже давно :), ток я чёт неврубился насчет физлами он всё равно не повтряется...

Если можите напишите скрипт полностью... (точнее мой поправте :) )


Top
   
 Post subject:
PostPosted: 2004-11-07 14:39:16 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Code:
...
repeat
  UO.DeleteJournal()
  UO.WaitTargetType(0x1BF2)
  UO.UseType(0x13e3)
  UO.Exec("waitmenu 'Blacksmithing' 'Race weapons' 'Orcish Weapons' 'hammerpick'")
  while UO.InJournal("You put the")==0 and UO.InJournal("You have failed to make")==0
    wait(300)
  wend
until UO.InJournal('You put')
...
В таком стиле...


Top
   
 Post subject:
PostPosted: 2004-11-10 01:53:51 
Offline
User avatar

Joined: 2004-09-25 04:16:39
Posts: 22
Воо кулл все работает спасибо!
П.с. Мир не без Жмотов!!


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

All times are UTC+02:00


Who is online

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