Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from datetime import datetime
- from py_stealth import *
- def meditate():
- while Mana() < MaxMana():
- starttime = datetime.now()
- UseSkill('Meditation')
- WaitJournalLine(starttime, "You cannot |You enter ", 60000)
- if InJournalBetweenTimes("You enter", starttime, datetime.now()) > 0:
- WaitJournalLine(starttime, "You stop |You cannot |You are at ", 60000)
- def main():
- while GetSkillCurrentValue('Magery') < 100.0:
- meditate()
- if __name__ == '__main__':
- while True:
- print(GetHP(0x00004240))
- if GetHP(0x00004240) > 4:
- if Mana() > 10:
- starttime = datetime.now()
- Cast('Magic Arrow')
- Wait(100)
- if not ((InJournalBetweenTimes("More reagents are needed ", starttime, datetime.now())) > 0):
- WaitForTarget(500)
- if TargetPresent():
- TargetToObject(0x00004240)
- Wait(800)
- else:
- meditate()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement