Yoko

All sides of Injection
It is currently 2025-12-22 17:24:00

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2006-03-29 00:19:58 
Offline

Joined: 2006-02-04 03:34:30
Posts: 13
Я написал скрипт на ковку вещей и переплавку

скрипт работает следующим образом : сначала снимает плюсовые вещи к БСу, кует 1 вещь, одивает плюсовые шмотки к БСу и переплавляет вещь (у нас на шарде на количество инготов от переплавки влияет БС)

Скрипт работает нормально, но есть один минус, при неудачной попытке сковать, он надевает шмот и пытается переплавить продукт которого нету и изза этого теряется пару секунд.

1 как мне зделать так, что бы он начинал переплавку только после удачной попытки ?
2 или что бы он сначала перековал все инготы, а потом переплавлял

ПыСы: при удачной попытке пишет "Вы сделали предмет и положили его себе в мешок"
когда заканчиваются инги пишет : "Вы не можете ничего зделать из этой категории"

вот скрипт:

Code:
sub main()
   sub main()
   var LastTimer
var tongs='0x0FBB'
var weapon='0x1415'
var forge='0x6DAE07C4'
 
while not uo.Dead()
uo.DeleteJournal()

   UO.Say(",undress")
   Wait(200)
   UO.Say(",disarm")
   Wait(200)
   
uo.exec("waitmenu 'make?' 'Armors' 'armor?' 'Platemail' 'make?' 'Breastplate'")
uo.exec("usetype '0x13E3'")
uo.exec("waittargettype '0x1BF2'")
repeat
wait(8000)

   UO.Say(",dress 1")
   Wait(200)
   UO.Say(",arm 1")
   Wait(200)

uo.findtype(weapon,"-1","me")
uo.waittargetobject('finditem', forge)
uo.usetype(tongs)
repeat
wait(6000)


wend

end sub


Top
   
 Post subject:
PostPosted: 2006-03-29 13:12:23 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
ну зделай через журнал :-\ я незнаю, будет ли инжект считывать русский шрифт в журнале- но попробуй следующим образом:

и что это за репиты? :-\
вобщем так пробуй:

Code:

   sub main()
   var LastTimer
var tongs='0x0FBB'
var weapon='0x1415'
var forge='0x6DAE07C4'
 
while not uo.Dead()
uo.DeleteJournal()

   UO.Say(",undress")
   Wait(200)
   UO.Say(",disarm")
   Wait(200)
   
uo.exec("waitmenu 'make?' 'Armors' 'armor?' 'Platemail' 'make?' 'Breastplate'")
uo.exec("usetype '0x13E3'")
uo.exec("waittargettype '0x1BF2'")
repeat
while not uo.InJournal('Вы сделали') and not uo.InJournal('Вы не можете')
wait(500)
wend

   UO.Say(",dress 1")
   Wait(200)
   UO.Say(",arm 1")
   Wait(200)

uo.findtype(weapon,"-1","me")
uo.waittargetobject('finditem', forge)
uo.usetype(tongs)
repeat
wait(6000)


wend

end sub


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

All times are UTC+02:00


Who is online

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