Yoko

All sides of Injection
It is currently 2026-01-17 22:21:57

All times are UTC+02:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
 Post subject: bs pls
PostPosted: 2005-01-04 15:05:58 
Offline

Joined: 2004-11-05 17:07:10
Posts: 4
Вот мой скрипт на бс
sub Blacksmithing()
var Exit=0, LastTimer, Container='0x4015A25E', Forge='0x401F8FE1' ;
var CountIng=300 ;MenuIron="'Blacksmithing' 'Weapons'"
var MenuOther="'Colored' 'Weapons'"
var MenuSwords="Weapons' 'Swords'"
var MenuDagger="'Swords' '(3'"
var i=0

dim ColorOfIng[6]
dim NameOre[6]

NameOre[0]="'"
NameOre[1]="'Rusty "
NameOre[2]="'Old Copper "
NameOre[3]="'Dull Copper "
NameOre[4]="'Bronze "

ColorOfIng[0]='0x0000' ; Iron
ColorOfIng[1]='0x0750' ; Rusty
ColorOfIng[2]='0x0590' ; Old Copper
ColorOfIng[3]='0x060A' ; Dull Copper
ColorOfIng[4]='0x0488' ; Bronze


uo.UseObject(Container)
while not uo.Dead()
for i=0 to 4
uo.FindType('0x1BEF',ColorOfIng[i],Container)
if uo.GetQuantity('finditem')>10 then
uo.Grab(STR(CountIng),'finditem')
wait(1000)

uo.Exec('automenu '+MenuDagger)
uo.Exec('automenu '+NameOre[i]+MenuSwords)
if i>0 Then
uo.Exec('automenu '+MenuOther)
end if
uo.Exec('automenu '+MenuIron)

While Exit<>1
uo.DeleteJournal()
LastTimer=uo.Timer()

uo.UseType(0x1BEF)

while not uo.InJournal("You put") and not uo.InJournal("You have failed")
wait(100)
wend

if uo.InJournal("You have failed") then
repeat
wait(100)
until uo.Timer()>=LastTimer+100 ; Âðåìÿ ñîçäàíèÿ äàãåðà
end if
CheckLag()

uo.FindType('0x0F51',-1,'backpack')

if uo.GetQuantity('finditem') then
uo.WaitTargetObject('finditem')
uo.UseObject(Forge)
wait(3000)
end if

uo.FindType('0x1BEF',-1,'backpack')
if uo.GetQuantity('finditem')<10 then
uo.FindType('0x1BEF',ColorOfIng[i],Container)
if uo.GetQuantity('finditem')<10 then
uo.FindType('0x1BEF',ColorOfIng[i],'backpack')
uo.SetReceivingContainer(Container)
uo.Grab('all','finditem')
uo.UnSetReceivingContainer()
Exit=1
end if
else
wait(1000)
uo.Grab(STR(CountIng-10),'finditem')
end if
wend
Exit=0
uo.CancelMenu()
end if
next
wend
end sub

sub CheckLag()
if uo.Waiting()>0 then
uo.Exec("canceltarget")
end if
uo.DeleteJournal()
uo.Click('backpack')
repeat
wait(50)
until uo.InJournal('backpack')
end sub

как его доделать что бы брал инги когда они кончатся подскажите плз


Top
   
 Post subject: Re: bs pls
PostPosted: 2005-01-04 15:33:44 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
sub wrote:
Вот мой скрипт на бс
:D :lol:


Top
   
 Post subject: Re: bs pls
PostPosted: 2005-01-04 16:11:58 
Offline

Joined: 2004-11-05 17:07:10
Posts: 4
Sfagnum wrote:
sub wrote:
Вот мой скрипт на бс
:D :lol:
ну лана не МОЙ =) ну все же помогите плз


Top
   
 Post subject:
PostPosted: 2005-01-04 16:30:24 
Offline
User avatar

Joined: 2004-12-29 15:16:45
Posts: 112
Весь твой скрипт не читал, но один мой таврищ делал так:
Code:
...
//Прежде, чем ковать находим инги в паке и сбрасываем их
uo.exec("findtype ironingot")
uo.exec("drop 0 -2 0 0 finditem")// в данном случае на землю
wait(1000)
uo.exec ("findtype ironingot -1 ground")//ищем кучку на земле
uo.exec("grab 500 finditem")//берем сколько нужно
wait(1000)

while uo.count("ironingot") > какого-то чилса
...
//куем
...
wend



Top
   
 Post subject:
PostPosted: 2005-01-04 19:12:00 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Знаю я, чей это скрипт, берет он инги пока не кончатся.
А ты поправил серийник контейнера с ингами?
Container='0x4015A25E'


Top
   
 Post subject:
PostPosted: 2005-01-04 23:32:15 
Offline

Joined: 2004-11-05 17:07:10
Posts: 4
Savage wrote:
Знаю я, чей это скрипт, берет он инги пока не кончатся.
А ты поправил серийник контейнера с ингами?
Container='0x4015A25E'
поправил но он все равно при запуске токо берет инги а когда они кончатся нет


Top
   
 Post subject:
PostPosted: 2005-01-05 08:59:01 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Savage wrote:
Знаю я, чей это скрипт,
:)


Top
   
 Post subject:
PostPosted: 2005-01-05 13:59:07 
Offline

Joined: 2004-11-05 17:07:10
Posts: 4
хва флудить помогите лучше


Top
   
 Post subject:
PostPosted: 2005-01-05 18:29:27 
Offline
Expert!
User avatar

Joined: 2004-04-04 21:40:09
Posts: 1007
sub wrote:
хва флудить помогите лучше


Пока ждешь помощь, перепиши скрипт с табуляцией, сделай комментарии читаемые, возьми его в code. А там глядишь и эксперты соизволят скрипт прочитать. :)


Top
   
 Post subject:
PostPosted: 2005-01-05 22:13:37 
Offline
Expert!
User avatar

Joined: 2004-05-31 09:31:51
Posts: 838
sub wrote:
хва флудить помогите лучше


А если ты не заметил ....то это скрипт МНОГОУВАЖАЕМОГО Savage...
Так что слушай старших .

_________________
Все просто.
BETEPAH ™


Top
   
 Post subject:
PostPosted: 2005-01-06 13:42:05 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Может надо контейнер с ингами открыть перед запуском. Может вес для тебя большой, тогда поменьше ингов пусть берет.


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 11 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited