Yoko

All sides of Injection
It is currently 2026-01-18 21:08:56

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: бс
PostPosted: 2005-04-29 08:18:19 
Offline

Joined: 2005-04-05 16:21:34
Posts: 16
у меня есть скрипт он прекрасно работает но почему-то когда в бэкпаке заканчиваются инги и он лезет за ними в сундук появляется сообщение 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


Top
   
 Post subject:
PostPosted: 2005-04-29 08:25:08 
Offline
User avatar

Joined: 2005-02-27 19:47:55
Posts: 56
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]


Top
   
 Post subject:
PostPosted: 2005-04-29 08:56:31 
Offline

Joined: 2005-04-05 16:21:34
Posts: 16
БЛАГОДАРЮ! теперь все работает :D


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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