mourn
Differences
This shows you the differences between two versions of the page.
— | mourn [2022/09/03 23:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ** Get Random Integer From Range ** | ||
+ | < | ||
+ | from System import Random | ||
+ | variable = Random().Next(0, | ||
+ | Misc.SendMessage(variable) | ||
+ | </ | ||
+ | |||
+ | ** Rail Example ** | ||
+ | < | ||
+ | from System.Collections.Generic import List | ||
+ | |||
+ | def gotoLocation(x1, | ||
+ | Coords = PathFinding.Route() | ||
+ | Coords.X = x1 | ||
+ | Coords.Y = y1 | ||
+ | Coords.MaxRetry = -1 | ||
+ | PathFinding.Go(Coords) | ||
+ | Misc.Pause(200) | ||
+ | | ||
+ | railCoords1 = [[3676, 2271], | ||
+ | railCoords2 = [[3631, 2376], | ||
+ | |||
+ | def gosomewhere(): | ||
+ | for coords in railCoords1: | ||
+ | gotoLocation(coords[0], | ||
+ | | ||
+ | def gosomewhereelse(): | ||
+ | for coords in railCoords2: | ||
+ | gotoLocation(coords[0], | ||
+ | | ||
+ | def dosomething(): | ||
+ | pass # filler till you code something | ||
+ | #what to do | ||
+ | |||
+ | gosomewhere() | ||
+ | dosomething() | ||
+ | gosomewhereelse() | ||
+ | dosomething() | ||
+ | </ | ||
+ | ** Send Message to Discord Webhook ** | ||
+ | < | ||
+ | URI = ' | ||
+ | alert = ' | ||
+ | report = " | ||
+ | PARAMETERS=report | ||
+ | from System.Net import WebRequest | ||
+ | request = WebRequest.Create(URI) | ||
+ | request.ContentType = " | ||
+ | request.Method = " | ||
+ | from System.Text import Encoding | ||
+ | bytes = Encoding.ASCII.GetBytes(PARAMETERS) | ||
+ | request.ContentLength = bytes.Length | ||
+ | reqStream = request.GetRequestStream() | ||
+ | reqStream.Write(bytes, | ||
+ | reqStream.Close() | ||
+ | response = request.GetResponse() | ||
+ | from System.IO import StreamReader | ||
+ | result = StreamReader(response.GetResponseStream()).ReadToEnd().replace(' | ||
+ | </ | ||
+ | ** Train Skill by Skill Level Example (Magery by Casting)** | ||
+ | < | ||
+ | def medcheck(): | ||
+ | if Player.Mana < 24: | ||
+ | if Timer.Check(' | ||
+ | Player.UseSkill(' | ||
+ | Misc.Pause(500) | ||
+ | Timer.Create(' | ||
+ | if Player.BuffsExist(' | ||
+ | while Player.Mana != Player.ManaMax: | ||
+ | Misc.Pause(2000) | ||
+ | |||
+ | |||
+ | def Magery(): | ||
+ | if Player.GetSkillValue(' | ||
+ | Spells.CastMagery(' | ||
+ | Target.WaitForTarget(2000, | ||
+ | Target.Self() | ||
+ | elif Player.GetSkillValue(' | ||
+ | Spells.CastMagery(' | ||
+ | Target.WaitForTarget(2000, | ||
+ | Target.Self() | ||
+ | elif Player.GetSkillValue(' | ||
+ | Spells.CastMagery(' | ||
+ | Target.WaitForTarget(4000, | ||
+ | Target.Self() | ||
+ | elif Player.GetSkillValue(' | ||
+ | Spells.CastMagery(' | ||
+ | Target.WaitForTarget(5000, | ||
+ | Target.Self() | ||
+ | elif Player.GetSkillValue(' | ||
+ | Spells.CastMagery(' | ||
+ | Target.WaitForTarget(5000, | ||
+ | Target.Self() | ||
+ | elif Player.GetSkillValue(' | ||
+ | Spells.CastMagery(' | ||
+ | Target.WaitForTarget(5000, | ||
+ | Target.Self() | ||
+ | elif Player.GetSkillValue(' | ||
+ | Spells.CastMagery(' | ||
+ | Misc.Pause(4000) | ||
+ | Misc.Pause(500) | ||
+ | while True: | ||
+ | Magery() | ||
+ | if Player.GetSkillValue(' | ||
+ | medcheck() | ||
+ | </ | ||
+ | |||
+ | ** Constant Monitor Player Status Example (if poisoned drink cure potion) ** | ||
+ | < | ||
+ | curePot = 0x0F07 | ||
+ | while True: | ||
+ | if Player.Poisoned: | ||
+ | Items.UseItemByID(curePot) | ||
+ | else: | ||
+ | Misc.Pause(400) | ||
+ | </ | ||
+ | |||
+ | ** Train Ninja / Hiding / Stealth ** | ||
+ | < | ||
+ | # MUST HAVE REQUIRED NINJA TO ATTEMPT SHADOWJUMP | ||
+ | # best to start in an area between north south trees with visible tiles between | ||
+ | |||
+ | while not Player.IsGhost: | ||
+ | if Player.Visible: | ||
+ | Target.Cancel() | ||
+ | Player.UseSkill(" | ||
+ | Misc.Pause(3000) | ||
+ | | ||
+ | elif not Player.Visible: | ||
+ | Spells.CastNinjitsu(" | ||
+ | Target.WaitForTarget(3000, | ||
+ | Target.TargetExecuteRelative(Player.Serial, | ||
+ | | ||
+ | if not Player.Visible: | ||
+ | Player.Walk(" | ||
+ | Player.Walk(" | ||
+ | | ||
+ | if not Player.Visible: | ||
+ | Player.Walk(" | ||
+ | Player.Walk(" | ||
+ | | ||
+ | Misc.Pause(400) | ||
+ | </ |
mourn.txt · Last modified: 2022/09/03 23:25 by 127.0.0.1