хил
Moderators: Murderator+, Murderator
Code: Select all
sub bandself() ; Хил с бинтов и одевание вепа со щитом
var band = "0x0e21" ; Тип бинтов
if uo.waiting() then
uo.canceltarget()
endif
if (uo.life<uo.str) and (uo.count(band)>0) then
uo.waittargetself()
uo.usetype(band)
MesReact()
uo.print(str(uo.count(band)-1)+" Бинтов")
else
if uo.life==uo.str then
uo.print("Бинтов "+str(uo.count(band)))
endif
if (uo.count(band)<1) then
uo.print("Бинты Кончились!")
endif
endif
wShldWep()
endsub
sub wShldWep() ; одевает веп и щит
if uo.waiting() then
uo.canceltarget()
endif
uo.useobject('sh')
wait(50)
uo.waittargetself()
uo.useobject('wep')
MesReact()
if uo.waiting() then
uo.canceltarget()
endif
endsub
sh wep создать в обжектах (Sh-щит; wep-пуха)
правда тебе понадобится вот такой вот скриптик :
Code: Select all
sub MesReact()
var lasttime=uo.timer(),react=0
var Msg1="You can't reach that."
var Msg2='current state'
uo.deletejournal()
repeat
wait(10)
if uo.timer()==lasttime+5 then
react=1
endif
until not uo.waiting() or react==1 or uo.injournal(Msg1) or uo.injournal(Msg2)
endsub
ой млин вствь в скрипт всё вот ето вот
Code: Select all
sub bandself() ; Хил с бинтов и одевание вепа со щитом
var band = "0x0e21" ; Тип бинтов
if uo.waiting() then
uo.canceltarget()
endif
if (uo.life<uo.str) and (uo.count(band)>0) then
uo.waittargetself()
uo.usetype(band)
MesReact()
uo.print(str(uo.count(band)-1)+" Бинтов")
else
if uo.life==uo.str then
uo.print("Бинтов "+str(uo.count(band)))
endif
if (uo.count(band)<1) then
uo.print("Бинты Кончились!")
endif
endif
wShldWep()
endsub
sub wShldWep() ; одевает веп и щит
if uo.waiting() then
uo.canceltarget()
endif
uo.useobject('sh')
wait(50)
uo.waittargetself()
uo.useobject('wep')
MesReact()
if uo.waiting() then
uo.canceltarget()
endif
endsub
sub MesReact()
var lasttime=uo.timer(),react=0
var Msg1="You can't reach that."
var Msg2='current state'
uo.deletejournal()
repeat
wait(10)
if uo.timer()==lasttime+5 then
react=1
endif
until not uo.waiting() or react==1 or uo.injournal(Msg1) or uo.injournal(Msg2)
endsub