Yoko

All sides of Injection
It is currently 2025-11-09 01:53:31

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2005-01-17 04:33:42 
Offline

Joined: 2004-12-18 18:56:10
Posts: 90
Я хочу написать скрипт) на тайлоринг..но я немогу зделать так что б при определеном числе скила он переходил на другую функцыю ) кто может помогите потому что я что то не допираю)


Top
   
PostPosted: 2005-01-17 08:01:38 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Vaha) wrote:
Я хочу написать скрипт) на тайлоринг..но я немогу зделать так что б при определеном числе скила он переходил на другую функцыю ) кто может помогите потому что я что то не допираю)


While UO.SkillVal( 'Tailoring' ) < 1000
...


Top
   
PostPosted: 2005-01-17 10:13:03 
Offline

Joined: 2004-12-18 18:56:10
Posts: 90
Edred wrote:
Vaha) wrote:
Я хочу написать скрипт) на тайлоринг..но я немогу зделать так что б при определеном числе скила он переходил на другую функцыю ) кто может помогите потому что я что то не допираю)


While UO.SkillVal( 'Tailoring' ) < 1000
...


Хм...... а можешь показать как ето будеть выглядеть в скрипте?
А вот и мой скрипт)



sub main()
uo.set('norbcheck','1')
uo.set('norbcalc','1')
uo.useobject('0x400F5652')
while true

repeat
if uo.count('0x0F9D') == 0 then
repeat
uo.findtype('0x0F9D','-1','0x400F5652')
wait(1000)
uo.moveitem('finditem','1','my')
wait(1000)
until uo.count('0x0F9D') == 2
end if

uo.findtype('0x1766',-1,'backpack')
if uo.getquantity('finditem')<16 then
uo.findtype('0x1766',-1,'0x400F5652')
uo.moveitem('finditem','400','backpack')
wait(500)
endif

repeat
if uo.count('0x175D')> 0 then
uo.findtype('0x175D',-1,'backpack')
uo.moveitem('finditem','0','0x4004C576')
wait(500)
until uo.findcount() == 0
end if



uo.recall('self',21)
wait(500)
uo.usetype('0x0F9D')
wait(500)

wend
end sub

В скрипте он делает по мек ласеу... но хотелось бы зделать так как я писал выше что б при определеном числе скила он преходил на другую функцию)


Top
   
 Post subject:
PostPosted: 2005-01-17 10:24:51 
Offline

Joined: 2004-04-05 11:59:21
Posts: 69
Location: RunUO
Code:
if uo.SkillVal('Tailoring')< 996 then
   NumItem=......
end if
if uo.SkillVal('Tailoring')< 746 then
   NumItem=......
end if
if uo.SkillVal('Tailoring')< 500 then
   NumItem=......
end if


Top
   
 Post subject:
PostPosted: 2005-01-17 10:40:56 
Offline

Joined: 2004-12-18 18:56:10
Posts: 90
Ugrum. wrote:
Code:
if uo.SkillVal('Tailoring')< 996 then
   NumItem=......
end if
if uo.SkillVal('Tailoring')< 746 then
   NumItem=......
end if
if uo.SkillVal('Tailoring')< 500 then
   NumItem=......
end if

Сенк уже все понял)


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: Bing [Bot] and 9 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