Yoko

All sides of Injection
It is currently 2026-03-14 22:46:14

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: БС
PostPosted: 2008-12-14 13:02:30 
Offline
User avatar

Joined: 2008-09-26 17:06:16
Posts: 117
помогите плиз с БС не знаю почему он делает пару cutlass и потом выдает ошибку unhandled exception in parser. вот скрипт
Code:
var whatwedo = '0x1440'; # ÷òî äåëàåì - ýòî cutlass
var molotok = '0x13E3'; # ìîëîòîê
var ingots = '0x1BEF'; # òèï èíãîòîâ
var forge = '0x401B8DBE'; # ôîðæ, íà êîòîðîé ïëàâèì
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 > 6000 then
            smelt();
            repeat
        endif
        UO.DeleteJournal()
        if uo.count(ingots)>=num then
            UO.WaitMenu ('Blacksmithing', 'Weapons', 'Weapons','Swords & Blades','Swords & Blades', 'cutlass (8 iron ingot)')
        else
            smelt();
           repeat
        endif
       
        UO.WaitTargetType (ingots)
        UO.UseType(molotok)

        wait(6000)
       
        Until (uo.injournal("You have failed to make anything")) or (uo.injournal("Âû áûëè íå â ñîñòîÿíèè ñäåëàòü ÷òî-íèáóäü"))
            wait(2500)
        wend
       

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


Top
   
 Post subject:
PostPosted: 2008-12-14 14:00:11 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
Приведенный тобой скрипт не исправляем.
Code:
sub smelt() 
....
   blacksmith()
endsub

sub blacksmith()
....
   smelt();
....
   smelt();
....
   smelt()
....
endsub

(я так понимаю - это рекурсия)
И другие ошибки.
Ищи другой скрипт.


Top
   
 Post subject:
PostPosted: 2008-12-14 14:13:47 
Offline
User avatar

Joined: 2008-09-26 17:06:16
Posts: 117
GAUHAR wrote:
Приведенный тобой скрипт не исправляем.
Code:
sub smelt() 
....
   blacksmith()
endsub

sub blacksmith()
....
   smelt();
....
   smelt();
....
   smelt()
....
endsub

(я так понимаю - это рекурсия)
И другие ошибки.
Ищи другой скрипт.


спс


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 4 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