This shows you the differences between two versions of the page.
macros_commands [2011/04/18 19:12] noen |
macros_commands [2021/11/15 16:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Macros Commands ====== | ||
- | |||
- | **Getting your current position** | ||
- | In the Macro Screen press [Position] button. | ||
- | |||
- | ===== Map ===== | ||
- | |||
- | **Map.HasID**(// | ||
- | |||
- | **Map.UseOn**(// | ||
- | |||
- | **Map.Use**(// | ||
- | |||
- | **Map.Thrown**(// | ||
- | |||
- | **Map.PickUp**(// | ||
- | |||
- | ===== NPC ===== | ||
- | |||
- | **NPC.Buy**(// | ||
- | |||
- | **NPC.BuyInBP**(// | ||
- | |||
- | **NPC.Sell**(// | ||
- | |||
- | **NPC.Say**(// | ||
- | |||
- | ===== VIP ===== | ||
- | |||
- | **Vip.Online**(// | ||
- | |||
- | ===== Hotkeys ===== | ||
- | |||
- | **Hotkey.Use**(// | ||
- | |||
- | ===== Misc ===== | ||
- | |||
- | **Misc.Alert**(**Message**) start a alarm with a custom message. | ||
- | |||
- | **Misc.ShootCount**(// | ||
- | |||
- | **Misc.AttackersCount**(// | ||
- | |||
- | **Misc.HPLose**(// | ||
- | |||
- | **Misc.LoadUrl**(// | ||
- | |||
- | **Misc.LogFile**(// | ||
- | |||
- | **Misc.HPGain**(// | ||
- | |||
- | **Misc.HPDelta**(// | ||
- | |||
- | **Misc.HPHitsBigger**(// | ||
- | |||
- | **Misc.StandTime** returns the time you are in the same sqm. | ||
- | |||
- | **Misc.ItemCount**(// | ||
- | |||
- | **Misc.ItemCountEx**(// | ||
- | |||
- | **BBot.TogglePause** activate/ | ||
- | |||
- | **BBot.ToggleVisible** show/hide the BBot. | ||
- | |||
- | **BBot.ToggleStats** show/hide Statistics. | ||
- | |||
- | **BBot.LevelSpyReset** turns back to your floor. | ||
- | |||
- | **BBot.LevelSpyUp** looks one floor up. | ||
- | |||
- | **BBot.LevelSpyDown** looks one floor down. | ||
- | |||
- | **Misc.SystemTime.Hour** returns system' | ||
- | |||
- | **Misc.SystemTime.Minute** returns system' | ||
- | |||
- | **Misc.SystemTime.Second** returns system' | ||
- | |||
- | |||
- | ===== HUD ===== | ||
- | |||
- | HUD.Display(Text) display a HUD Text in the center of the screen | ||
- | HUD.Setup(Xpos of the text (1-> | ||
- | |||
- | RBG Colors Chart | ||
- | HUD.Setup Sample | ||
- | |||
- | Cavebot | ||
- | CaveBot.GoStart makes the cavebot reset to the start of the waypoint | ||
- | CaveBot.GoLabel(Label) makes the cavebot jump to a label inside the waypoint | ||
- | |||
- | Macro | ||
- | Macro.Wait(Delay) sleep the macro for a time | ||
- | |||
- | Self.Skill | ||
- | Self.Skill.Fist | ||
- | Self.Skill.Club | ||
- | Self.Skill.Axe | ||
- | Self.Skill.Sword | ||
- | Self.Skill.Distance | ||
- | Self.Skill.Shielding | ||
- | Self.Skill.Fishing | ||
- | returns the respective skill level | ||
- | |||
- | Self.Skill% | ||
- | Self.Skill.Fist% | ||
- | Self.Skill.Club% | ||
- | Self.Skill.Axe% | ||
- | Self.Skill.Sword% | ||
- | Self.Skill.Distance% | ||
- | Self.Skill.Shielding% | ||
- | Self.Skill.Fishing% | ||
- | returns the percent of the respective skill | ||
- | |||
- | Self.MagicLevel | ||
- | Self.MagicLevel returns the magic level | ||
- | |||
- | Self.MagicLevel% | ||
- | Self.MagicLevel% returns the percent of your magic level | ||
- | |||
- | Self.Inventory | ||
- | Self.Inventory.RightHand = ID | ||
- | Self.Inventory.LeftHand = ID | ||
- | Self.Inventory.Legs = ID | ||
- | Self.Inventory.Boots = ID | ||
- | Self.Inventory.Ring = ID | ||
- | Self.Inventory.Ammunition = ID | ||
- | Self.Inventory.Helmet = ID | ||
- | Self.Inventory.Amulet = ID | ||
- | Self.Inventory.Backpack = ID | ||
- | Self.Inventory.Armor = ID | ||
- | returns 1 if your inventory item has the same ID | ||
- | |||
- | Status | ||
- | Status.ManaShield returns 1 if Magic/Mana shield is actived | ||
- | Status.Paralysis returns 1 if you are Paralyzed | ||
- | Status.Haste returns 1 if you are Hasted | ||
- | Status.Battle returns 1 if you are with Battle (normal swords) | ||
- | Status.Underwater returns 1 if you are Underwater | ||
- | Status.Freezing returns 1 if you are Freezing | ||
- | Status.Dazzled returns 1 if you are Dazzled | ||
- | Status.Cursed returns 1 if you are Cursed | ||
- | Status.Buff returns 1 if you are Party Buffed | ||
- | Status.PZBlock returns 1 if you are with Battle (red swords) | ||
- | Status.InPZ returns 1 if you are inside protection zone | ||
- | Status.NoLight returns 1 if you are without any light | ||
- | Status.Poison returns 1 if you are Poisoned | ||
- | Status.Fire returns 1 if you are Burning | ||
- | Status.Energy returns 1 if you are Energy | ||
- | Status.Drunk returns 1 if you are Drunked | ||
- | |||
- | Self.UnEquip | ||
- | Self.UnEquip.Legs(To Container) | ||
- | Self.UnEquip.Boots(To Container) | ||
- | Self.UnEquip.Ring(To Container) | ||
- | Self.UnEquip.Ammo(To Container) | ||
- | Self.UnEquip.Helmet(To Container) | ||
- | Self.UnEquip.Amulet(To Container) | ||
- | Self.UnEquip.Backpack(To Container) | ||
- | Self.UnEquip.Armor(To Container) | ||
- | Self.UnEquip.RightHand(To Container) | ||
- | Self.UnEquip.LeftHand(To Container) | ||
- | puts your inventory item in a container (0 is your main container) | ||
- | |||
- | Self.Equip | ||
- | Self.Equip.Legs(ID) | ||
- | Self.Equip.Boots(ID) | ||
- | Self.Equip.Ring(ID) | ||
- | Self.Equip.Ammo(ID) | ||
- | Self.Equip.Helmet(ID) | ||
- | Self.Equip.Amulet(ID) | ||
- | Self.Equip.Backpack(ID) | ||
- | Self.Equip.Armor(ID) | ||
- | Self.Equip.RightHand(ID) | ||
- | Self.Equip.LeftHand(ID) | ||
- | puts a item of your containers in your inventory | ||
- | |||
- | Self.Turn | ||
- | Self.TurnNE, | ||
- | Self.TurnN turns your character to the North | ||
- | Self.TurnS turns your character to the South | ||
- | Self.TurnE turns your character to the East | ||
- | Self.TurnW turns your character to the West | ||
- | |||
- | Self.Moves | ||
- | Self.MoveTo(X, | ||
- | Self.MoveN moves your character one sqm to the north | ||
- | Self.MoveS moves your character one sqm to the south | ||
- | Self.MoveE moves your character one sqm to the east | ||
- | Self.MoveW moves your character one sqm to the west | ||
- | Self.MoveNE moves your character one sqm to the north-east | ||
- | Self.MoveNW moves your character one sqm to the north-west | ||
- | Self.MoveSE moves your character one sqm to the south-east | ||
- | Self.MoveSW moves your character one sqm to the south-west | ||
- | |||
- | Self Actions | ||
- | Self.Stop stops the attacking/ | ||
- | Self.Say(Words) sends a message | ||
- | Self.Logout makes your character logout only when no battle sign | ||
- | Self.AvoidFront makes your character avoid waves from the target creature | ||
- | Self.AvoidBackboard makes your character run from the target creature | ||
- | Self.Yell(Text) yell a message | ||
- | Self.PositionIn(X1, | ||
- | |||
- | Self.Properties | ||
- | Self.Health returns your HP | ||
- | Self.Health% returns your HP in percent | ||
- | Self.HealthMax returns your HP max | ||
- | Self.Mana returns your Mana | ||
- | Self.Mana% returns your Mana in percent | ||
- | Self.ManaMax returns your ManaMax | ||
- | Self.StaminaMins returns the stamina left in minutes | ||
- | Self.Stamina% returns the stamina left in percents | ||
- | Self.Capacity returns your capacity | ||
- | Self.Soul returns your soul | ||
- | Self.Experience returns your experience | ||
- | Self.ExpToNextLevel returns the experience to the next level | ||
- | Self.X returns your X position | ||
- | Self.Y returns your Y position | ||
- | Self.Z returns your Z position | ||
- | Self.Level returns your Level | ||
- | Self.Level% returns your Level percent | ||
- | Self.Attacking returns 1 if your char is attacking | ||
- | |||
- | Creatures | ||
- | Creatures.Beside returns the number of creatures beside (distance <=1) | ||
- | Creatures.OnScreen returns the number of the creatures in your screen | ||
- | Creatures.ByRange(Range) returns the number of creatures in a range | ||
- | Creatures.Killed(Name) returns the number of creatures killed by name | ||
- | Creatures.PlayersOnScreen returns the number of players on screen | ||
- | |||
- | Target | ||
- | Target.ByName(Name) targets a creature with the name | ||
- | Target.Foe targets the creature you are attacking | ||
- | Target.Self targets yourself | ||
- | Target.Health returns the target hp (in %) | ||
- | Target.Speed returns the target speed | ||
- | Target.Distance returns the target distance to your char | ||
- | Target.NameIn(Name, | ||
- | Target.Shoot(Ammo) shoot a item in the target (sample: ID ' | ||
- | |||
- | Variables | ||
- | VarSet(Name) creates a variable, its value is the next line of the macro [Tutorial] | ||
- | VarSetEx(Name, | ||
- | VarDiv(Name, | ||
- | VarMult(Name, | ||
- | VarAdd(Name, | ||
- | VarSub(Name, | ||
- | VarMod(Name, | ||