Code: Select all
sub GHeal()
var mag
mag=0
UO.DeleteJournal()
UO.FindType('0x0F0E','0x09BB','my')
If UO.GetQuantity('finditem')>0 then
UO.UseObject('finditem')
else
UO.Print("НЕТУ БАНОЧЕК")
mag=1
endif
if uo.InJournal("You can't drink") or mag==1 then
UO.FindType('0x1F49',-1,'my')
If UO.GetQuantity('finditem')>0 then
UO.WaitTargetSelf()
UO.UseObject('finditem')
UO.Print("ЛЕЧИМСЯ СО СКРОЛА")
else
UO.Print("Скролов нет")
UO.Cast('Greater Heal','self')
UO.Print("Заклинание!")
endif
endif
End sub