Yoko

All sides of Injection
It is currently 2026-02-06 03:14:23

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2007-10-26 13:20:38 
Offline

Joined: 2007-09-24 17:11:19
Posts: 20
написал скрипт... не работает как надо, хочет чинить армор который на мне, а надо который в бэкпеке, и чтоб подчиненый армор в бэкпэке одевал сразу же как подчинил...

Code:
var marked=0 ; 1-da; 0-net
sub repairArm2()
if marked==1 then
wait(100)
uo.print('x1') ### 1 full plate
uo.exec('addobject x1')
wait(3000)
uo.print('x2')
uo.exec('addobject x2')
wait(3000)
uo.print('x3')
uo.exec('addobject x3')
wait(3000)
uo.print('x4')
uo.exec('addobject x4')
wait(3000)
uo.print('x5')
uo.exec('addobject x5')
wait(3000)
uo.print('x6')
uo.exec('addobject x6')
wait(3000)
uo.print('x7')
uo.exec('addobject x7')
wait(3000)
uo.print('x8')
uo.exec('addobject x8')
wait(3000)
uo.print('second full')   ### markaem 2 full plate
wait(100)
uo.print('z1')
uo.exec('addobject z1')
wait(3000)
uo.print('z2')
uo.exec('addobject z2')
wait(3000)
uo.print('z3')
uo.exec('addobject z3')
wait(3000)
uo.print('z4')
uo.exec('addobject z4')
wait(3000)
uo.print('z5')
uo.exec('addobject z5')
wait(3000)
uo.print('z6')
uo.exec('addobject z6')
wait(3000)
uo.print('z7')
uo.exec('addobject z7')
wait(3000)
uo.print('z8')
uo.exec('addobject z8')
wait(100)
else
end if
wait(100)
while not uo.dead()
wait(100)
var rep='0x1865'  ## repair tools
wait(1800000) ###################################
uo.print('repairing.....')
wait(100)
uo.waittargettype('x1') ; helm
uo.usetype(rep)
wait(10)
uo.usetype('x1','backpack') ; odevaem helm
wait(120)
uo.waittargettype('x2') ; gorget
uo.usetype(rep)
wait(10)
uo.usetype('x2') ; odevaem gorget
wait(120)
uo.waittargettype('x3') ; plechi
uo.usetype(rep)
wait(10)
uo.usetype('x3') ; odevaem plechi
wait(120)
uo.waittargettype('x4') ; gloves
uo.usetype(rep)
wait(10)
uo.usetype('x4') ; odevaem gloves
wait(120)
uo.waittargettype('x5') ; chest
uo.usetype(rep)
wait(10)
uo.usetype('x5') ; odevaem chest
wait(120)
uo.waittargettype('x6') ; legs
uo.usetype(rep)
wait(10)
uo.usetype('x6') ; odevaem legs
wait(120)
uo.waittargettype('x7') ; shield
uo.usetype(rep)
wait(10)
uo.usetype('x7') ; odevaem shield
wait(120)
uo.waittargettype('x8') ; type oruzhija kotorim bjom
uo.usetype(rep)
wait(10)
uo.usetype('x8') ; odevaem oruzhije
wait(1800000) ###############zaderzhka na sledushij repair
uo.print('repairing222222222222222222222.....')
wait(100)
uo.waittargettype('z1') ; helm
uo.usetype(rep)
wait(50)
uo.usetype('z1') ; odevaem helm
wait(120)
uo.waittargettype('z2') ; gorget
uo.usetype(rep)
wait(50)
uo.usetype('z2') ; odevaem gorget
wait(120)
uo.waittargettype('z3') ; plechi
uo.usetype(rep)
wait(50)
uo.usetype('z3') ; odevaem plechi
wait(120)
uo.waittargettype('z4') ; gloves
uo.usetype(rep)
wait(50)
uo.usetype('z4') ; odevaem gloves
wait(120)
uo.waittargettype('z5') ; chest
uo.usetype(rep)
wait(50)
uo.usetype('z5') ; odevaem chest
wait(120)
uo.waittargettype('z6') ; legs
uo.usetype(rep)
wait(50)
uo.usetype('z6') ; odevaem legs
wait(120)
uo.waittargettype('z7') ; shield
uo.usetype(rep)
wait(50)
uo.usetype('z7') ; odevaem shield
wait(120)
uo.waittargettype('z8') ; type oruzhija kotorim bjom
uo.usetype(rep)
wait(50)
uo.usetype('z8') ; odevaem oruzhije
wait(10000)
repeat
wend
end sub


Top
   
 Post subject:
PostPosted: 2007-10-26 15:48:35 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Пример как скрипты писать не надо.


Top
   
 Post subject:
PostPosted: 2007-10-26 17:37:32 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Scripts Writer wrote:
Пример как скрипты писать не надо.

Согласен, использование циклов сократило бы скрипт в разы, однако это пример того, что пользователи могут сами писать скрипты, если захотят.

PS: waittargetobject( "^x1" ), ну что-нибудь в этом стиле.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
PostPosted: 2007-10-26 18:11:27 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
retr1val wrote:
написал скрипт... не работает как надо, хочет чинить армор который на мне, а надо который в бэкпеке, и чтоб подчиненый армор в бэкпэке одевал сразу же как подчинил...



Похвально что сам пытаешься писать скрипты, но ты идёшь по изначально неправильному(на мой взгляд) и трудному пути, и чтоб переучиваться потом не было мучительно- учись кодить правильно сразу (благо есть огромное кол-во скриптов High уровня, уроков, которые позволяют рассмотреть некоторые алгоритмы и тонкости составления скриптов и скриптёры, которые тебе помогут в освоении этого дела при твоём желании). Дерзай.


2Смотри хелп по командам одевания/раздевания


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

All times are UTC+02:00


Who is online

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