Healing+Meditation
Code:
sub Heal_Medit()
# Edited:
# 1.mana and life -had been changed to STR and INT for more safety.
#
var STR=195 # You STR withour curse
var INT=60 # You INT without curse
var item='0x153E' #Type of curse
var wash='0x402D878C' #ID where to clean bandage
var bloody='0x0E20' #Type of bloody bandage
var food='0x097B' # Type of anything to eat
var k, i
while not uo.Dead() && uo.SkillVal('Meditation',1) < 1000 && uo.SkillVal('Healing',1) < 1000
if uo.life < STR && uo.mana < INT then
goto Begin
end if
uo.FindType(item,'-1','backpack')
if uo.FindCount() then
uo.UseObject('finditem')
repeat
wait(250)
CheckLag()
until uo.life <= STR -1 && uo.mana <= INT-1
Begin:
uo.UnDress()
repeat
k = 0
if uo.life <> STR && uo.mana <> INT then
uo.CancelTarget()
uo.BandageSelf()
else
if uo.life <> STR && uo.mana == INT then
uo.BandageSelf()
wait(3500)
end if
end if
CheckLag()
if uo.mana <> INT then
uo.UseSkill('Meditation')
uo.DeleteJournal()
wait(150)
repeat
wait(100)
k = k + 1
until uo.InJournal('You are') || uo.InJournal('you lose') || (k>50)
end if
until uo.life == STR && uo.mana == INT
uo.FindType(bloody,'-1','backpack')
if uo.FindCount() && uo.GetQuantity('finditem') >= 180 then
uo.WaitTargetObject(wash)
uo.UseObject('finditem')
CheckLag()
for i = 0 to 10
uo.UseType(food)
wait(1000)
next
end if
else
if not uo.FindCount() then
uo.CloseUo()
uo.exec('terminate all')
else
wait(500)
end if
end if
wend
end sub
MeditationCode:
sub MeditationTrain()
var INT=60 #Your INT withour curse
var item='0x153E' #Type of curse
var food='0x097B' #Type of something to eat
var k, i, l
l=0
while not uo.Dead() && uo.SkillVal('Meditation',1) < 1000
if uo.mana < INT then
goto BeginMedit
end if
uo.FindType(item,'-1','backpack')
if uo.FindCount() then
uo.UseObject('finditem')
repeat
wait(150)
CheckLag()
until uo.mana <= INT-1
BeginMedit:
uo.UnDress()
repeat
k = 0
CheckLag()
if uo.mana <> INT then
uo.UseSkill('Meditation')
uo.DeleteJournal()
wait(150)
repeat
wait(100)
k = k + 1
until uo.InJournal('You are') || uo.InJournal('you lose') || (k>50)
end if
until uo.mana == INT
l=l+1
if l>100 then
for i=0 to 10
uo.UseType(food)
wait(1000)
next
l=0
end if
else
if not uo.FindCount() then
uo.CloseUo()
uo.exec('terminate all')
else
wait(500)
end if
end if
wend
end sub
HealingCode:
sub Healing()
var STR=195 #Your STR withour curse
var item='0x153E' #Type of curse
var wash='0x402D878C' #ID where to clean bandage
var bloody='0x0E20' #Type of bloody bandage
var food='0x097B' #Type of something to eat
var k, i
while not uo.Dead() && uo.SkillVal('Healing',1) < 1000
if uo.life < STR then
goto BeginHeal
end if
uo.FindType(item,'-1','backpack')
if uo.FindCount() then
uo.UseObject('finditem')
repeat
wait(250)
CheckLag()
until uo.life <= STR -1
BeginHeal:
uo.UnDress()
repeat
k = 0
if uo.life <> STR then
uo.BandageSelf()
wait(3500)
end if
until uo.life == STR
uo.FindType(bloody,'-1','backpack')
if uo.FindCount() && uo.GetQuantity('finditem') >= 180 then
uo.WaitTargetObject(wash)
uo.UseObject('finditem')
CheckLag()
for i = 0 to 10
uo.UseType(food)
wait(1000)
next
end if
else
if not uo.FindCount() then
uo.CloseUo()
uo.exec('terminate all')
else
wait(500)
end if
end if
wend
end sub