Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub raise_magery()
- var mhp=UO.GetMaxHP('self')
- var aids='0x0E21'
- var bb='0x0E20'
- while 1==1
- if UO.Life==mhp AND UO.Mana==UO.Int then
- repeat
- UO.WaitTargetSelf()
- UO.Cast('Magic Arrow')
- wait(1100)
- until UO.Life<41 OR UO.Mana<4 OR UO.Count('0x0F8C')<10
- endif
- if UO.Life<mhp then
- repeat
- UO.BandageSelf()
- wait(3000)
- until UO.Life==mhp
- endif
- if UO.Mana<UO.Int then
- UO.DeleteJournal()
- repeat
- UO.UseSkill('Meditation')
- wait(3000)
- if UO.InJournal('You are preoccupied') then
- UO.Warmode(0)
- endif
- until UO.Mana==UO.Int
- endif
- wait(100)
- if UO.Count('0x0F8C')<10 then
- Restock_SA()
- endif
- if aids<10 OR bb>50 then
- check_aids()
- endif
- wend
- endsub
- sub check_aids()
- if UO.Count('0x0E21') < 30 then
- UO.FindType(0x0E21,-1,'ground')
- UO.Moveitem('finditem','150','backpack')
- wait(1000)
- endif
- if UO.Count('0x0E20') > 20 then
- UO.WaitTargetType('0x1F9D')
- UO.UseType('0x0E20')
- wait(500)
- endif
- EndSub
- Sub Restock_SA()
- UO.FindType(0x0F8C,-1,'ground')
- UO.Moveitem('finditem','150','backpack')
- wait(1000)
- endsub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement