Yoko

All sides of Injection
It is currently 2025-10-29 18:33:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: 2006-02-03 15:12:34 
Offline
User avatar

Joined: 2004-04-28 03:38:17
Posts: 23
Помогите пожалуйста со скриптиком для DrW, смысл его заключается в следующем: при нажатии хоткея химичит одну тотал манку если удачно чар говорит - "OK" , а в случаи физла - "=(" и останавливается .
За вашу помощь буду безгранично признателен :)

_________________
noob must die.


Top
   
 Post subject:
PostPosted: 2006-02-03 19:49:56 
Offline
User avatar

Joined: 2004-04-28 03:38:17
Posts: 23
Не думаю что для вас написать такой скрипт вызовет большое затруднение, а оказать посильную помощь ближнему, и при этом потешить свой добродетель стоит нескольких минут :roll:

_________________
noob must die.


Top
   
 Post subject:
PostPosted: 2006-02-03 20:46:33 
Offline
Expert!
User avatar

Joined: 2005-01-07 13:22:19
Posts: 766
попозже писану погодь


Top
   
 Post subject:
PostPosted: 2006-02-03 20:59:37 
Offline
User avatar

Joined: 2004-04-28 03:38:17
Posts: 23
Ура! Значит есть на этом форуме хорошие человеки :)

_________________
noob must die.


Top
   
 Post subject:
PostPosted: 2006-02-03 21:16:42 
Offline
Expert!
User avatar

Joined: 2005-01-07 13:22:19
Posts: 766
вот примерно так(перед юзом вручную сделай тотал манку) проблемма в том что я ниразу алхимию на дрв не юзал поэтому написал демо версию объясни как происходит крафт тоталок

Code:
sub main()
uo.cancelmenu()
uo.automenu('What sort of potion do you want to','(last)')
uo.useobject('ПРЕДМЕТ АЛХИМИИ')
repeat
Wait(10)
until UO.InJournal("You put the") OR UO.InJournal("You toss the failed")
if UO.InJournal("You put the") then
 uo.print("YES")
endif
if UO.InJournal("You toss the failed") then
 uo.print("NO")
endif
endsub


Top
   
 Post subject:
PostPosted: 2006-02-04 03:52:54 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Ээээ..

Code:
repeat 
Wait(10)
until ...


Не меньше полтинника.

В остальном согласен.

2Автор, распиши вместе с сабжами и вообще ПОДРОБНО процесс крафта, я тебе специально заделаю.


Top
   
 Post subject:
PostPosted: 2006-02-04 07:52:43 
Offline
User avatar

Joined: 2004-04-28 03:38:17
Posts: 23
Большое вам всем спасибо, за оказанную помощь и желания её оказать , взяв за основу скрипт Question'a у меня получилось следующие:
Code:
sub main() 
UO.DeleteJournal()
UO.UseType('0x0F87')
UO.WaitMenu('What','(2)')
repeat
Wait(100)
until UO.InJournal("You put the") OR UO.InJournal("You toss the failed")
if UO.InJournal("You put the") then
 uo.msg("YES")
endif
if UO.InJournal("You toss the failed") then
 uo.msg("NO")
endif
end sub


Может по вашему мнению в этом скрипте надо что то изменить, но вроде он вполне работоспособен :)

_________________
noob must die.


Top
   
 Post subject:
PostPosted: 2006-02-04 09:11:50 
Offline
User avatar

Joined: 2004-04-28 03:38:17
Posts: 23
Помогите пожалуйста реализовать в этом скрипте следующие: если скрипт больше не находит глазок для крафта ('0x0F87') или их количество меньше 6 он останавливается, и после каждой попытки крафта выдавал командой UO.Print количество оставшихся глазок.

_________________
noob must die.


Top
   
 Post subject:
PostPosted: 2006-02-04 10:56:22 
Offline
Expert!
User avatar

Joined: 2005-01-07 13:22:19
Posts: 766
Code:
sub main() 
uo.findtype('0x0F87','-1','backpack')
if uo.getquantity('finditem')>6 then
UO.DeleteJournal()
UO.UseType('0x0F87')
UO.WaitMenu('What','(2)')
repeat
Wait(100)
until UO.InJournal("You put the") OR UO.InJournal("You toss the failed")
if UO.InJournal("You put the") then
 uo.msg("YES")
endif
if UO.InJournal("You toss the failed") then
 uo.msg("NO")
endif
else
uo.print("net regov =(")
endif
end sub


Top
   
 Post subject:
PostPosted: 2006-02-05 16:14:45 
Offline
User avatar

Joined: 2004-04-28 03:38:17
Posts: 23
Question wrote:
Code:
sub main() 
uo.findtype('0x0F87','-1','backpack')
if uo.getquantity('finditem')>6 then
UO.DeleteJournal()
UO.UseType('0x0F87')
UO.WaitMenu('What','(2)')
repeat
Wait(100)
until UO.InJournal("You put the") OR UO.InJournal("You toss the failed")
if UO.InJournal("You put the") then
 uo.msg("YES")
endif
if UO.InJournal("You toss the failed") then
 uo.msg("NO")
endif
else
uo.print("net regov =(")
endif
end sub


Спасибо, все работает как задумано :)

_________________
noob must die.


Top
   
 Post subject:
PostPosted: 2006-02-05 16:19:43 
Offline
Expert!
User avatar

Joined: 2005-01-07 13:22:19
Posts: 766
незачто


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 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