Yoko

All sides of Injection
It is currently 2024-03-29 12:38:52

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2013-02-18 13:04:41 
Offline

Joined: 2013-01-15 15:24:07
Posts: 20
Нашол скрипты для пвп от тушкана, но для оружия там только на одевание лука.
А нужны еще скрипт что б одевал меч+щит сразу одним скриптом. ниже на одевание лука))

Code:
sub BowGet()
uo.findtype ('0x13B1',-1,'backpack')
if Uo.ContainerOf('finditem')==Uo.GetSerial('backpack') then
UO.Setarm('BowArm')
uo.waittargetobject('laststatus')
uo.usetype('0x13B1')
else
UO.Arm('BowArm')
end if
UO.Attack('laststatus')
end sub


Top
   
PostPosted: 2013-02-19 16:07:11 
Offline
User avatar

Joined: 2012-03-20 00:32:06
Posts: 243
Location: РФ, г. Москва
200790 wrote:
Нашол скрипты для пвп от тушкана, но для оружия там только на одевание лука.
А нужны еще скрипт что б одевал меч+щит сразу одним скриптом. ниже на одевание лука))

Code:
sub BowGet()
uo.findtype ('0x13B1',-1,'backpack')
if Uo.ContainerOf('finditem')==Uo.GetSerial('backpack') then
UO.Setarm('BowArm')
uo.waittargetobject('laststatus')
uo.waittargettype('lasttarget')
uo.usetype('0x13B1')
else
UO.Arm('BowArm')
end if
uo.waittargettype('lasttarget')
UO.Attack('laststatus')
end sub


попробуй так
Code:
sub BowGet()
uo.findtype ('0x13B1',-1,'backpack')
if Uo.ContainerOf('finditem')==Uo.GetSerial('backpack') then
UO.Setarm('BowArm')
#uo.waittargetobject('laststatus')
uo.waittargettype('lasttarget')
uo.usetype('0x13B1')
else
UO.exec(',exec Sword')
end if
UO.Attack('lasttarget')
uo.waittargettype('lasttarget')
#UO.Attack('laststatus')
end sub

sub Sword()
UO.Exec("usetype 0x13B5")
UO.Exec("usetype 0x13B9")
UO.Exec("usetype 0x1B77")
UO.Exec("usetype 0x1B76")
UO.Exec("usetype 0x1406")
UO.Attack('lasttarget')
uo.waittargettype('lasttarget')
end sub

работает по принципу: надевает лук, если лук надет, то надевает меч с щитом

_________________
Не быть жадным - уже богатство, не быть расточительным – доход.
TylllKaH
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"


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

All times are UTC+02:00


Who is online

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