This shows you the differences between two versions of the page.
macros_commands [2013/09/07 20:12] kimoszin |
macros_commands [2021/11/15 16:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Macros Commands ====== | ||
- | ===== Map ===== | ||
- | |||
- | **Map.HasID**(// | ||
- | |||
- | **Map.UseOn**(// | ||
- | |||
- | **Map.Use**(// | ||
- | |||
- | **Map.Thrown**(// | ||
- | |||
- | **Map.PickUp**(// | ||
- | |||
- | **Map.PickUpEx**(// | ||
- | ===== NPC ===== | ||
- | |||
- | **NPC.Buy**(// | ||
- | |||
- | **NPC.BuyInBP**(// | ||
- | |||
- | **NPC.Sell**(// | ||
- | |||
- | **NPC.Say**(// | ||
- | |||
- | ===== VIP ===== | ||
- | |||
- | **Vip.Online**(// | ||
- | |||
- | ===== Hotkeys ===== | ||
- | |||
- | **Hotkey.Use**(// | ||
- | |||
- | ===== Misc ===== | ||
- | |||
- | **Misc.Alert**(// | ||
- | |||
- | **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**(// | ||
- | |||
- | **Misc.SystemTime.Hour**// | ||
- | |||
- | **Misc.SystemTime.Minute**// | ||
- | |||
- | **Misc.SystemTime.Second**// | ||
- | |||
- | **Misc.Random**(// | ||
- | |||
- | ===== BBot ===== | ||
- | |||
- | **BBot.TogglePause**// | ||
- | |||
- | **BBot.ToggleVisible**// | ||
- | |||
- | **BBot.ToggleStats**// | ||
- | |||
- | **BBot.LevelSpyReset**// | ||
- | |||
- | **BBot.LevelSpyUp**// | ||
- | |||
- | **BBot.LevelSpyDown**// | ||
- | |||
- | ===== Tibia ===== | ||
- | |||
- | **Tibia.KeyDown**(// | ||
- | |||
- | **Tibia.IsKeyDown**(// | ||
- | |||
- | **Tibia.SendKey**(// | ||
- | |||
- | **Tibia.Screenshot**// | ||
- | |||
- | **Tibia.Close**// | ||
- | |||
- | ===== Killer ===== | ||
- | |||
- | **Killer.Start**// | ||
- | |||
- | **Killer.Stop**// | ||
- | |||
- | ===== Trainer ===== | ||
- | |||
- | **Trainer.Start**// | ||
- | |||
- | **Trainer.Stop**// | ||
- | |||
- | ===== BOT ===== | ||
- | |||
- | **Bot.Pause**// | ||
- | |||
- | **Bot.LoadSettings**// | ||
- | |||
- | ===== HUD ===== | ||
- | |||
- | **HUD.Display**(// | ||
- | |||
- | **HUD.Setup**(// | ||
- | |||
- | ===== Cavebot ===== | ||
- | |||
- | **Cavebot.Start**// | ||
- | |||
- | **Cavebot.Stop**// | ||
- | |||
- | **CaveBot.GoStart**// | ||
- | |||
- | **CaveBot.GoLabel**(// | ||
- | ===== Macro ===== | ||
- | |||
- | **Macro.Wait**(// | ||
- | |||
- | **Exit**() exit a command group. | ||
- | ===== 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**// | ||
- | ===== Self.MagicLevel% ===== | ||
- | |||
- | **Self.MagicLevel%**// | ||
- | ===== Self.Inventory ===== | ||
- | |||
- | **Self.Inventory.RightHand**// | ||
- | |||
- | **Self.Inventory.LeftHand**// | ||
- | |||
- | **Self.Inventory.Legs**// | ||
- | |||
- | **Self.Inventory.Boots**// | ||
- | |||
- | **Self.Inventory.Ring**// | ||
- | |||
- | **Self.Inventory.Ammunition**// | ||
- | |||
- | **Self.Inventory.Helmet**// | ||
- | |||
- | **Self.Inventory.Amulet**// | ||
- | |||
- | **Self.Inventory.Backpack**// | ||
- | |||
- | **Self.Inventory.Armor**// | ||
- | |||
- | return your inventory item ID. | ||
- | ===== Self.Inventory.Count ===== | ||
- | |||
- | **Self.Inventory.Backpack.Count**() | ||
- | |||
- | **Self.Inventory.Armor.Count**() | ||
- | |||
- | **Self.Inventory.Amulet.Count**() | ||
- | |||
- | **Self.Inventory.Helmet.Count**() | ||
- | |||
- | **Self.Inventory.Ammunition.Count**() | ||
- | |||
- | **Self.Inventory.Ring.Count**() | ||
- | |||
- | **Self.Inventory.Boots.Count**() | ||
- | |||
- | **Self.Inventory.Legs.Count**() | ||
- | |||
- | **Self.Inventory.LeftHand.Count**() | ||
- | |||
- | **Self.Inventory.RightHand.Count**() | ||
- | |||
- | Returns the amount of items that you have on the inventory slots. | ||
- | |||
- | ===== Status ===== | ||
- | |||
- | **Status.ManaShield**// | ||
- | |||
- | **Status.Paralysis**// | ||
- | |||
- | **Status.Haste**// | ||
- | |||
- | **Status.Battle**// | ||
- | |||
- | **Status.Underwater**// | ||
- | |||
- | **Status.Freezing**// | ||
- | |||
- | **Status.Dazzled**// | ||
- | |||
- | **Status.Cursed**// | ||
- | |||
- | **Status.Buff**// | ||
- | |||
- | **Status.PZBlock**// | ||
- | |||
- | **Status.InPZ**// | ||
- | |||
- | **Status.NoLight**// | ||
- | |||
- | **Status.Poison**// | ||
- | |||
- | **Status.Fire**// | ||
- | |||
- | **Status.Energy**// | ||
- | |||
- | **Status.Drunk**// | ||
- | |||
- | **Status.Invisible**// | ||
- | ===== Self.UnEquip ===== | ||
- | |||
- | **Self.UnEquip.Legs**(// | ||
- | |||
- | **Self.UnEquip.Boots**(// | ||
- | |||
- | **Self.UnEquip.Ring**(// | ||
- | |||
- | **Self.UnEquip.Ammo**(// | ||
- | |||
- | **Self.UnEquip.Helmet**(// | ||
- | |||
- | **Self.UnEquip.Amulet**(// | ||
- | |||
- | **Self.UnEquip.Backpack**(// | ||
- | |||
- | **Self.UnEquip.Armor**(// | ||
- | |||
- | **Self.UnEquip.RightHand**(// | ||
- | |||
- | **Self.UnEquip.LeftHand**(// | ||
- | |||
- | puts your inventory item in a container (0 is your main container). | ||
- | |||
- | ===== Self.Equip ===== | ||
- | |||
- | **Self.Equip.Legs**(// | ||
- | |||
- | **Self.Equip.Boots**(// | ||
- | |||
- | **Self.Equip.Ring**(// | ||
- | |||
- | **Self.Equip.Ammo**(// | ||
- | |||
- | **Self.Equip.Helmet**(// | ||
- | |||
- | **Self.Equip.Amulet**(// | ||
- | |||
- | **Self.Equip.Backpack**(// | ||
- | |||
- | **Self.Equip.Armor**(// | ||
- | |||
- | **Self.Equip.RightHand**(// | ||
- | |||
- | **Self.Equip.LeftHand**(// | ||
- | |||
- | puts a item of your containers in your inventory. | ||
- | |||
- | ===== Self.Turn ===== | ||
- | |||
- | **Self.TurnN**// | ||
- | |||
- | **Self.TurnS**// | ||
- | |||
- | **Self.TurnE**// | ||
- | |||
- | **Self.TurnW**// | ||
- | ===== Self.Moves ===== | ||
- | |||
- | **Self.MoveTo**(// | ||
- | |||
- | **Self.MoveN**// | ||
- | |||
- | **Self.MoveS**// | ||
- | |||
- | **Self.MoveE**// | ||
- | |||
- | **Self.MoveW**// | ||
- | |||
- | **Self.MoveNE**// | ||
- | |||
- | **Self.MoveNW**// | ||
- | |||
- | **Self.MoveSE**// | ||
- | |||
- | **Self.MoveSW**// | ||
- | ===== Self Actions ===== | ||
- | |||
- | **Self.Stop**// | ||
- | |||
- | **Self.Say**(// | ||
- | |||
- | **Self.Logout**// | ||
- | |||
- | **Self.Yell**(// | ||
- | |||
- | **Self.PositionIn**(// | ||
- | ===== Self.Properties ===== | ||
- | |||
- | **Self.Health**// | ||
- | |||
- | **Self.Health%**// | ||
- | |||
- | **Self.HealthMax**// | ||
- | |||
- | **Self.Mana**// | ||
- | |||
- | **Self.Mana%**// | ||
- | |||
- | **Self.ManaMax**// | ||
- | |||
- | **Self.StaminaMins**// | ||
- | |||
- | **Self.Stamina%**// | ||
- | |||
- | **Self.Capacity**// | ||
- | |||
- | **Self.Soul**// | ||
- | |||
- | **Self.Experience**// | ||
- | |||
- | **Self.ExpToNextLevel**// | ||
- | |||
- | **Self.X**// | ||
- | |||
- | **Self.Y**// | ||
- | |||
- | **Self.Z**// | ||
- | |||
- | **Self.Level**// | ||
- | |||
- | **Self.Level%**// | ||
- | |||
- | **Self.Attacking**// | ||
- | |||
- | **Self.Mount**// | ||
- | |||
- | ===== Creature ===== | ||
- | |||
- | **Creature.ByName**(// | ||
- | |||
- | **Creature.Attacking**// | ||
- | |||
- | **Creature.Target**// | ||
- | |||
- | **Creature.Self**// | ||
- | |||
- | **Creature.Health**(// | ||
- | |||
- | **Creature.Speed**(// | ||
- | |||
- | **Creature.DistanceToSelf**(// | ||
- | |||
- | **Creature.NameIn**(// | ||
- | |||
- | **Creature.ShootOn**(// | ||
- | |||
- | **Creature.X**(// | ||
- | |||
- | **Creature.Y**(// | ||
- | |||
- | **Creature.Z**(// | ||
- | |||
- | **Creature.IsPlayer**(// | ||
- | |||
- | **Creature.IsNPC**(// | ||
- | |||
- | **Creature.Attack**(// | ||
- | |||
- | **Creature.Follow**(// | ||
- | |||
- | **Creature.KeepDistance**(// | ||
- | |||
- | **Creature.KeepDiagonal**(// | ||
- | |||
- | ===== Creatures ===== | ||
- | |||
- | **Creatures.Beside**// | ||
- | |||
- | **Creatures.OnScreen**// | ||
- | |||
- | **Creatures.ByRange**(// | ||
- | |||
- | **Creatures.Killed**(// | ||
- | |||
- | **Creatures.PlayersOnScreen**// | ||
- | |||
- | **Creatures.TaskKilled**(// | ||
- | |||
- | **Creatures.PlayersOnRange**(// | ||
- | |||
- | **Creatures.ByName**(// | ||
- | |||
- | **Creatures.NPCOnScreen**// | ||
- | |||
- | ===== Variables ===== | ||
- | |||
- | **VarDiv or Div**(Name, Value) divides the variable by the value (x / value). | ||
- | |||
- | **VarMult or Mult**(Name, | ||
- | |||
- | **VarAdd or Inc**(Name, Value) adds to the variable the value (x + value). | ||
- | |||
- | **VarSub or Dec**(Name, Value) substract the value from the variable (x - value). | ||
- | |||
- | **VarMod or Mod**(Name, Value) mod (x mod value) gives the remainder from dividing. Eg: 5 mod 3 = 2; 5 mod 2 = 1. | ||
- | |||
- | **To declare and assign values to Variables, do as follows:** | ||
- | |||
- | **cap**//: | ||
- | |||
- | **sword_id**//: | ||
- | |||
- | **X**//: | ||
- | |||
- | **__Explanation__**: | ||
- | * Unordered List ItemThe name of the variable is in bold. | ||
- | * The sign := in italicsis the assignment. | ||
- | * The value strike-through is the value that the variable **cap** or **sword_id** will receive. | ||
- | * In the last option the variable **X** is receiving a command **Self.X** that will be assigned to this variable the coordinate **X**. |