вобщем есть скриптик по идее не плохой... но при переплавке или появляется таргет и приходится самому тыкать на форж или пишет Auto target canceled и скрипт останавливается...
исправьте пожалуйста...
sub main() var bs_hammer='0x13e3', ingots='0x1bf2', bplate='0x1415' # platemail breastplate var f=UO.count(bplate), i wait(1000) if uo.count(bplate)>0 then wait(1000) smelt(bplate,1) endif while uo.count(ingots)>30 if uo.count(bplate)>0 then wait(1000) smelt(bplate,1) endif f=UO.count(bplate) wait(1000) while f<30 and uo.count(ingots)>30 i=uo.count(ingots) UO.Exec("waitmenu 'like to make' 'Armors' 'armor' 'Platemail' 'like' 'Breastplate'") UO.waittargettype(ingots) uo.deletejournal() UO.usetype(bs_hammer) repeat wait(1000) until i<>uo.count(ingots) or f<>uo.count(bplate) repeat wait(1000) UO.LClick(55,85)# click on "Yes" if exceptional item until uo.injournal('You finished looping.') f=UO.count(bplate) wend wend end sub
sub smelt(item, loop) Repeat var forge='0x6BD6210E', tongs='0x0fbb', count1,count2 count1=uo.count(item) if count1>0 then if loop then count2=0 else count2=count1-1 endif repeat uo.waittargettype(item) uo.usetype(tongs) uo.deletejournal() repeat wait(2000) until uo.injournal('What') uo.waittargetobject(forge) uo.deletejournal() repeat wait(2000) until uo.injournal('destroy') or uo.injournal('turned') or uo.injournal('мешок') or uo.injournal('You finished looping.') or uo.injournal('Auto target cancelled') wait(500)#may be not need (!) until uo.count(item)<=count2 endif end sub
Видите, Михаил, просмотров этого моего сообщения около 60, но только Вы и Владимир высказались положительно А так народ молчит. Видимо раньше мало было школ, учителей , и потому люди мотались по ст
Смотря как все это рассматривать. Если с точки зрения обычного человека - то, конечно, надо мной хихикали, жалели, отсылали к психиатрам и т.п. Если рассматривать с точки зрения развития челов
Last edited by LordTom on 2009-12-23 13:11:08, edited 3 times in total.
sub smelt() var arm = "0x0000" ; чо плавить var forge = "0x0000" ; тип форжи var tongs = "0x0000" ; тип тонгов while uo.count(arm) uo.waittargettype(arm,forge) uo.usetype(tongs) wait(400) ; пауза, я бы сюда чеклаг запихал wend endsub
sub smelt() var arm = "0x0000" ; чо плавить var forge = "0x0000" ; тип форжи var tongs = "0x0000" ; тип тонгов while uo.count(arm) uo.waittargettype(arm,forge) uo.usetype(tongs) wait(400) ; пауза, я бы сюда чеклаг запихал wend endsub