Yoko

All sides of Injection
It is currently 2025-11-05 15:50:40

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Мой БС+Smelt
PostPosted: 2008-08-04 08:35:47 
Offline

Joined: 2006-07-14 11:15:15
Posts: 2
Code:
var whatwedo = '0x1440'; # что делаем - это cutlass
var molotok = '0x13E3'; # молоток
var ingots = '0x1BF2'; # тип инготов
var forge = '0x40004F9B'; # форж, на которой плавим
var num = 8; # сколько тратится на один изделий

sub smelt()
    while uo.count(whatwedo)>0
        uo.waittargettype(whatwedo);
        uo.useobject(forge);
        wait(400)
    wend
    if uo.count(ingots)<num then
        return
    endif
    blacksmith()
end sub

sub blacksmith()
    while not uo.dead()
        if UO.Count(ingots) < num  OR uo.weight > 600 then
            smelt();
            return
        endif
        UO.DeleteJournal()
        if uo.count(ingots)>=num then
            UO.WaitMenu ('Blacksmithing', 'Weapons', 'Weapons','Swords & Blades','Swords & Blades', 'cutlass (8 iron ingot)')
        else
            smelt();
            return
        endif
       
        UO.WaitTargetType (ingots)
        UO.UseType(molotok)

        wait(600)
       
        while not (uo.injournal("You put")) and not (uo.injournal("не смогли"))
            wait(200)
        wend

        If UO.Count(whatwedo)>200 then
            smelt()
        endif
       
    wend
end sub


посоветуете что-нибудь?=)

UPD: отчего-то на "старом" инже на Core2Duo вылетал с parser error, а теперь вылетает только с Terminate client(


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

All times are UTC+02:00


Who is online

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