Yoko

All sides of Injection
It is currently 2025-12-27 06:21:23

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2005-09-08 20:04:54 
Offline

Joined: 2005-09-04 15:14:21
Posts: 8
Пожалуйста! Напишите скрипт по моему описанию!

Скрипт в общем будет основан на скиле БС.
И так.
1. Чар будет телепортироваться к Вендору у которого я закреплю руну в рунбуке на 1 слот! И покупать у него пластинчетый доспех по МАКСИМОМУ и пластинчетые штаны тоже по МАКС. колличеству у вендора.
2.Портаться к рунке на втором слоте в рунбуке, тоесть к плавильне (тоже укажу сам)и плавить эти пластинчетые доспехи и ковать из получившегося айрона там катаны пока айрон не кончиться.
3. Потом когда айрон кончится опять телепортироваться к вендору и продовать эти катаны и после продажи покупать снова пластинчетые и так по кругу...

Напишите пожалуйста! Буду очень признателен!


Top
   
 Post subject:
PostPosted: 2005-09-09 13:09:27 
Offline
User avatar

Joined: 2005-05-03 22:22:31
Posts: 15
Nepomnju gde nadibal ! Skript nezapuskal! Jeli nepashit razberaisja sam! :)

Code:
################################################
###  Ходящий Кузнец / Going Smith v2.2 Full  ###
################################################
sub main()
var Exit=0, LastTimer, i
var VendorName
######################
### Меню / Options ###
######################
###########################################################################################
###
var MaxWeight=19500 ## вес

###
var ToBs=1 ## - 1 - Ковать катаны из ингов, 0 - реколится домой и складывать инги в сундук.
###
############################################################################################

uo.Print('Выбери Вендора: ')
uo.Exec('addobject Vendor')
while uo.Targeting()
wait(100)
wend
VendorName=uo.GetName("Vendor")

while Exit<>1

for i=1 to 5
FindVendor(VendorName)
wait(100)
UO.Buy('Shrink')
wait(1000)
end sub
 
sub gotoXY(x,y)
var myX,myY,lastX=0,lastY=0,i,halt=0,z,r=0
for i=1 to 60
MyX=uo.getX()
MyY=uo.getY()
if LastX==MyX and LastY==MyY then
halt=halt+1
else
halt=0
end if
if halt>=10 then
if uo.GetDir()==1 then
for z=0 to 8
uo.Press(40)
next
end if
if uo.GetDir()==3 then
for z=0 to 8
uo.Press(37)
next
end if
if uo.GetDir()==5 then
for z=0 to 8
uo.Press(38)
next
end if
if uo.GetDir()==7 then
for z=0 to 8
uo.press(39)
next
end if
halt=15
end if
if numb(x-myX)<=1 and numb(y-myY)<=2 then
return 1
end if
if x<=MyX then
if y<=MyY then
for z=0 to 3
uo.Press(38)
next
else
for z=0 to 3
uo.Press(37)
next
end if
else
if y<=MyY then
for z=0 to 3
uo.Press(39)
next
else
for z=0 to 3
uo.Press(40)
next
end if
end if
lastX=myX
lastY=myY
wait(200)
next
return 0
end sub

sub FindVendor(VendorName)
var flag
while 1
#uo.Set('finddistance','14') ## - Искать на расстоянии 14.
uo.IgnoreReset() ## - Обнулить игнор.
uo.FindType("0x0190","-1","ground")
while uo.FindCount() ## - Пока найден чар.
uo.Ignore("finditem") ## - Игнор вещей.

if uo.GetName("finditem")==VendorName then
uo.Print(VendorName+" found")
First:
flag=gotoxy(UO.GetX("finditem"),UO.GetY("finditem"))
if flag==1 then
goto Second   
while Exit<>1

for i=1 to 5
FindVendor(VendorName)
wait(100)
UO.Buy('Shrink')
wait(1000)

wend
Second:
end sub

sub numb(num)
if num>=0 then
return num
else
return num*(-1)
end if
end sub

sub SmeltFull()
SmeltItem(0x1410)
wait(200)
end sub

sub SmeltItem(ItemID)
var i
uo.FindType(ItemID,"-1","backpack")
uo.Print(uo.FindCount())
while uo.FindCount()>0
 
uo.WaitTargetObject("finditem")
uo.UseObject("Forge")
i=0
while not uo.InJournal("You put") and not i==50
i=i+1
wait(100)
wend

if uo.InJournal("The") then
uo.MoveItem("finditem","-1","ground")
end if

uo.findtype(ItemID,"-1","backpack")
wait(700)
wend
end sub

sub RecallToHome()
uo.Print('Прыгаем Домой.')
uo.Exec("recall Runebook 21")
wait(10000)
end sub

sub RecallToShop()
uo.Print('Прыгаем в Магазин.')
uo.Exec("recall Runebook 1025")
wait(10000)
end sub

sub WaitForRecall()
var Text1=uo.GetName()+": The spell fizzles."
var mess='',lastX=uo.getX(),lastY=uo.getY()
for var i=0 to 200
mess=uo.Journal(0)
if uo.Journal(0)==Text1 then
return 0
end if
if uo.getX()<>lastX or uo.getY()<>LastY then
return 1
end if
wait(50)
next
return 0
end sub

sub DropIngots()
if uo.Waiting() then
uo.CancelTarget()
end if
var a, Exit
var Chest='0x4004B893' ## - ID сундука для сброса ингов.
dim Ings[1]
Ings[0]=0x13FE
uo.Print('Выкладываем Инги.')
uo.SetReceivingContainer(Chest)
wait(500)
for a=0 to 0
exit=0
repeat
uo.FindType(Ings[a])
if uo.GetQuantity('finditem')>0 then
uo.Grab('0','finditem')
wait(500)
else
exit=1
end if
until Exit==1
next
uo.UnSetReceivingContainer(Chest)
uo.Print('Инги Выложены.')
end sub

sub ToBlacksmithy()
var LastTimer
repeat
uo.FindType('0x1BEF','0x0000','backpack')
uo.Print(str(uo.GetQuantity("finditem")))
uo.DeleteJournal()
LastTimer=uo.Timer()
uo.WaitMenu('Blacksmithing','Weapons','Weapons','Swords','Swords','katana')
uo.UseType(0x1BEF)

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

if uo.InJournal("You have failed") then
wait(500)
;repeat
;wait(100)
;until uo.Timer()>=LastTimer+100
end if

uo.FindType(0x1BEF)
until not uo.GetQuantity("finditem")>8
end sub

sub CheckLag()
uo.DeleteJournal()
uo.Click('backpack')
repeat
wait(500)
until uo.InJournal('backpack')
end sub
end sub



Top
   
 Post subject:
PostPosted: 2005-09-09 18:37:03 
Offline

Joined: 2005-09-04 15:14:21
Posts: 8
Ок! Большое спасибо!
Ща буду чудить с ним!!! 8)


Top
   
 Post subject:
PostPosted: 2005-09-10 10:03:05 
Offline

Joined: 2005-09-04 15:14:21
Posts: 8
Так вот понадобился отделный скрипт на продажу сразу всех возможных продоваемых вещей!
Есть ли такие срипты???
Если есть и вы знаете его пожалуйста напишите!


Top
   
 Post subject:
PostPosted: 2005-09-13 17:24:10 
Offline

Joined: 2004-05-27 18:19:17
Posts: 66
ZIL wrote:
Так вот понадобился отделный скрипт на продажу сразу всех возможных продоваемых вещей!
Есть ли такие срипты???
Если есть и вы знаете его пожалуйста напишите!

Не знаю как другие а я продаю на Пилоте..имхо удобнее..
Say sell Guards
wait 600
send F8 #Сдесь у меня стоит хаид
repeat 50
double_left 224, 79 # координаты стрелок..у меня настроены под дрв...
left 340, 199
end_repeat
left 313, 424
wait 1200


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

All times are UTC+02:00


Who is online

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