Помогите обьединить скрипты

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
ychenik
Posts: 82
Joined: 2007-07-01 21:23:58

Помогите обьединить скрипты

Post by ychenik »

[code]
sub carve_corpse()
var device
uo.waittargetobject('lastcorpse')
device=uo.ObjAtLayer('Rhand')
uo.useobject(device)
end sub

sub podjom2()
uo.set('finddistance','3')
uo.findtype('0x0EB5','-1','1')
if uo.findcount() then
uo.grab('0','finditem')
endif
endsub

[code]

нужно обьединить их в один, чтобы одной кнопкой труп резался и луталась голова жертвы, помогите буду очень признателен[/code]
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Re: Помогите обьединить скрипты

Post by Kynep »

ychenik wrote:нужно обьединить их в один, чтобы одной кнопкой труп резался и луталась голова жертвы, помогите буду очень признателен


Code: Select all

sub carve_corpse() 
   var device = ' ' #Тип оружия(думается)
   uo.waittargetobject('lastcorpse')
   uo.usetype(device)
   wait(200)
   podjom2()
end sub
Sub podjom2()
   uo.set('finddistance','3')
   uo.findtype('0x0EB5','-1','1')
   if uo.findcount() then
      uo.grab('0','finditem')
   endif
end sub
ychenik
Posts: 82
Joined: 2007-07-01 21:23:58

Post by ychenik »

а разве так я смогу повесить этот скрипт на одну кнопку?
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Post by Kynep »

ychenik wrote:а разве так я смогу повесить этот скрипт на одну кнопку?

В хоткей биндишь:

Code: Select all

exec carve_corpse

и все.
ychenik
Posts: 82
Joined: 2007-07-01 21:23:58

Post by ychenik »

спасиб огромное
Kynep
Expert!
Posts: 1348
Joined: 2006-02-07 08:51:40
Location: г. Старый Оскол
Contact:

Post by Kynep »

ychenik wrote:спасиб огромное

Не за что.
Post Reply