Yoko
http://forum.yoko.com.ua/

бс
http://forum.yoko.com.ua/viewtopic.php?f=20&t=3866
Page 1 of 1

Author:  nEo1987 [ 2005-04-29 08:18:19 ]
Post subject:  бс

у меня есть скрипт он прекрасно работает но почему-то когда в бэкпаке заканчиваются инги и он лезет за ними в сундук появляется сообщение invalid object 300 и скрипт виснет. Помогите ПЛЗ

sub BS()
VAR Exit=0, LastTimer
while Exit<>1
UO.FindType('0x1BEF','0x0000','backpack')
If UO.GetQuantity('finditem')<10 then
UO.FindType('0x09A8','0x0000','0x401180DC') ;serial sunduka s iron
UO.Grab('300','finditem')
wait(300)
Endif
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.WaitMenu('Blacksmithing','Weapons','Weapons','Swords','Swords','dagger')
UO.UseType(0x1BEF) ; iron ings

while NOT UO.InJournal("You put") AND NOT UO.InJournal("You have failed")
wait(500)
wend

If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100 ;time to make a dagger
EndIf

UO.FindType('0x0F51',-1,'backpack') ; dagger
wait(500)

If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(0x4004EE20) ;forge
Endif
wait(1000)
wend
end sub

Author:  RiFeX aka Maybek [ 2005-04-29 08:25:08 ]
Post subject: 

Code:
sub BS() 
VAR Exit=0, LastTimer
while Exit<>1
UO.FindType('0x1BEF','0x0000','backpack')
If UO.GetQuantity('finditem')<10 then
UO.FindType('0x1BEF','0x0000','0x401180DC') ;serial sunduka s iron
UO.Grab('300','finditem')
wait(300)
Endif
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.WaitMenu('Blacksmithing','Weapons','Weapons','Swords','Swords','dagger')
UO.UseType(0x1BEF) ; iron ings

while NOT UO.InJournal("You put") AND NOT UO.InJournal("You have failed")
wait(500)
wend

If UO.InJournal("You have failed") then
repeat
wait(100)
until UO.Timer()>=LastTimer+100 ;time to make a dagger
EndIf

UO.FindType('0x0F51',-1,'backpack') ; dagger
wait(500)

If UO.GetQuantity('finditem') then
UO.WaitTargetObject('finditem')
UO.UseObject(0x4004EE20) ;forge
Endif
wait(1000)
wend
end sub

Тип железа прописать надо было и все. Пробуй.[/code]

Author:  nEo1987 [ 2005-04-29 08:56:31 ]
Post subject: 

БЛАГОДАРЮ! теперь все работает :D

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/