Code: Select all
sub Music()
DIM[5]
instrument[0]='' ;Лютня
instrument[1]='' ;Арфа Не помню их типы :)
instrument[2]='' ;Бубен
instrument[3]='' ;Барабан
Var i=0
Var instrumentest=0, instrumentcurrent
Hide()
While instrumentest==0 and i<4
UO.FindType('instrument[i]')
if UO.FindCount >=1 then
instrumentest=1
instrumentcurrent=instrument[i]
endif
i=i+1
wend
if instrumentest==1 then
UO.Sayu(',warmode 0') ; На всякий случай
repeat
UO.Useobject('instrumentcurrent')
wait(100)
UO.Sayu(',warmode 1')
wait(100)
UO.Sayu(',warmode 0')
until UO.Dead() or UO.SkillVal('Musicianship')==1000
endif
endsub
Sub Hide()
While not UO.Hidden()==1
UO.UseSkill('Hiding')
UO.DeleteJournal()
repeat
wait(100)
until UO.InJournal('have hidden') or ('hide here')
wait(100)
wend
endsub