This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
macros_commands [2011/04/18 19:39] noen |
macros_commands [2021/11/15 16:43] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Macros Commands ====== | ||
- | **Getting your current position** | + | ====== |
- | In the Macro Screen press [Position] button. | + | |
- | ===== Map ===== | + | ===== Creating Variables |
- | **Map.HasID**(// | + | To create variables you must use the following syntax: |
- | **Map.UseOn**(//ID, OnID, X, Y, Z, Range//) use one item on the ground ( samples: key in a door, fire bug in the silk wall ). | + | **VariableName** := //DefaultValue// |
- | **Map.Use**(// | + | Example: |
- | **Map.Thrown**(//ID, Count, X, Y, Z//) drops an item on the ground. | + | **HP**:=//Self.Health()// |
- | **Map.PickUp**(//ID, Count, Container, X, Y, Z//) pick up an item on the ground. | + | **MagicNumber**:=//3529// |
- | ===== NPC ===== | + | ===== Using Variables |
- | **NPC.Buy**(// | + | You can use the variables in many places |
- | **NPC.BuyInBP**(//ID, Count, IgnoreCap//) NPC.Buy but buy items inside backpacks. | + | **!**//VariableName//**!** |
- | **NPC.Sell**(//ID, Count//) sell a item, if the count is -1 then you sell all the items from your backpacks. | + | Self.Say(**!**//HP//**!** or shorthand **!**//HP//) |
- | **NPC.Say**(//Text//) send a message in the NPC channel. | + | SecondMagicNumber: |
+ | ThirdMagicNumber: | ||
- | ===== VIP ===== | + | Variables can be used in the FullCheck and some other features of the BBot. |
+ | ===== Internals | ||
- | **Vip.Online**(//Name//) returns 1 if the friend is online | + | **Exit**//()// Stop the macro execution |
- | ===== Hotkeys ===== | + | **Label**// |
- | **Hotkey.Use**(//ID//) use a item (sample: food) | + | **GoLabel**//(Name)// Go to a Label |
- | ===== Misc ===== | + | **Comment**// |
- | **Misc.Alert**(**Message**) start a alarm with a custom message. | + | **VarSet**//(Name, Value)// Set the variable to given value |
- | **Misc.ShootCount**(//InLastSeconds//) return | + | **VarGet**//(Name)// Return |
- | **Misc.AttackersCount**(//InLastSeconds//) return the count of attacks received. | + | **HasVar**//(VarName)// If a variable exists |
- | **Misc.HPLose**(//InLastSeconds//) returns | + | **GenWikiDoc**//()// Generates |
- | **Misc.LoadUrl**(// | + | ===== Math ===== |
- | **Misc.LogFile**(//File, Text//) append a text to the file. | + | **VarAdd**//(Name, Value)// Increase |
- | **Misc.HPGain**(//InLastSeconds//) returns the gained hp in the last seconds. | + | **VarSub**//(Name, Value)// Decrease |
- | **Misc.HPDelta**(//InLastSeconds//) returns | + | **VarMult**//(Name, Value)// Multiplies |
- | **Misc.HPHitsBigger**(//InLastSeconds, BiggerThan//) returns | + | **VarDiv**//(Name, Value)// Divides |
- | **Misc.StandTime** returns | + | **VarMod**//(Name, Value)// Returns |
- | **Misc.ItemCount**(//ItemName//) returns the item count (the item count is the one in hotkey messages, You are using one of xx health potions). | + | **Add**//(A, B)// Return A + B |
- | **Misc.ItemCountEx**(//Item ID//) returns the item count (the item count is the one in hotkey messages, You are using one of xx health potions). | + | **Sub**//(A, B)// Return A - B |
- | **BBot.TogglePause** activate/desactivate the BBot. | + | **Mult**//(A, B)// Return A * B |
- | **BBot.ToggleVisible** show/hide the BBot. | + | **Div**//(A, B)// Return A / B (integer) |
- | **BBot.ToggleStats** show/hide Statistics. | + | **Mod**//(A, B)// Return A % B (modulos remainder) |
- | **BBot.LevelSpyReset** turns back to your floor. | + | **Smallest**//(A, B, C...)// Return smallest of all the parameters |
- | **BBot.LevelSpyUp** looks one floor up. | + | **Greatest**//(A, B, C...)// Return greatest of all the parameters |
- | **BBot.LevelSpyDown** looks one floor down. | + | ===== String ===== |
- | **Misc.SystemTime.Hour** returns system' | + | **Str.Set**// |
- | **Misc.SystemTime.Minute** returns system' | + | **Str.Copy**// |
- | **Misc.SystemTime.Second** returns system' | + | **Str.VarEquals**// |
+ | **Str.VarEqualsSensitive**// | ||
- | ===== HUD ===== | + | **Str.Equals**// |
- | **HUD.Display**(//Text//) display a HUD Text in the center of the screen. | + | **Str.EqualsSensitive**//(StrA, StrB)// Check if two strings are equals (sensitive) |
- | **HUD.Setup**(//Xpos of the text (1->Left, 2-> | + | **Str.Regex**//(PatternVariableName, SubjectVariableName)// Check SubjectVariable content matches to PatternVariable content regex, outputs to !Str.MatchSucced, !Str.MatchFailed, !Str.Match.0, !Str.Match.1 [..] !Str.Match.9 |
- | ===== Cavebot ===== | + | **Str.Upper**// |
- | **CaveBot.GoStart** makes the cavebot reset to the start of the script. | + | **Str.Lower**// |
- | **CaveBot.GoLabel**(//Label//) makes the cavebot jump to a label inside the waypoint. | + | **Str.Reverse**//(StrVariableName)// Reverses |
- | ===== Macro ===== | + | **Str.ToHex8**// |
- | **Macro.Wait**(//Delay//) sleep the macro for a time. | + | **Str.ToHex16**//(OutHex16, Int16)// Convert |
- | ===== Self.Skill ===== | + | **Str.ToHex32**// |
- | **Self.Skill.Fist** | + | ===== Cooldown variables ===== |
- | **Self.Skill.Club** | + | **Cooldown.Create**// |
- | **Self.Skill.Axe** | + | **Cooldown.Clear**// |
- | **Self.Skill.Sword** | + | **Cooldown.Rest**// |
- | **Self.Skill.Distance** | + | **Cooldown.Blocked**// |
- | **Self.Skill.Shielding** | + | **Cooldown.UnBlocked**// |
- | **Self.Skill.Fishing** | + | **When.Cast**// |
- | returns the respective skill level. | + | **When.UnWatch**// |
- | ===== Self.Skill% ===== | + | **When.AnyMessage**// |
- | **Self.Skill.Fist%** | + | **When.Say**// |
- | **Self.Skill.Club%** | + | **When.Yell**// |
- | **Self.Skill.Axe%** | + | **When.SystemMessage**// |
- | **Self.Skill.Sword%** | + | **When.PlayerMessage**// |
- | **Self.Skill.Distance%** | + | **When.PrivateMessage**// |
- | **Self.Skill.Shielding%** | + | **When.NPCMessage**// |
- | **Self.Skill.Fishing%** | + | ===== Player State ===== |
- | returns the percent of the respective skill. | + | **Self.Health**// |
- | ===== Self.MagicLevel ===== | + | **Self.Health%**// |
- | **Self.MagicLevel** returns the magic level. | + | **Self.HealthMax**//()// Absolute max player health |
- | ===== Self.MagicLevel% ===== | + | **Self.Mana**// |
- | **Self.MagicLevel%** returns the percent of your magic level. | + | **Self.Mana%**//()// Percent player mana |
- | ===== Self.Inventory ===== | + | **Self.ManaMax**// |
- | **Self.Inventory.RightHand** = //ID// | + | **Self.StaminaMins**//()// The player stamina minutes |
- | **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. | + | **Self.Stamina%**// |
- | ===== Status ===== | + | **Self.Soul**// |
- | **Status.ManaShield** returns 1 if Magic/Mana shield is actived. | + | **Self.Experience**//()// The experience of the player |
- | **Status.Paralysis** returns 1 if you are Paralyzed. | + | **Self.ExpToNextLevel**//()// The experience left to the next level |
- | **Status.Haste** returns 1 if you are Hasted. | + | **Self.Level**//()// The current player level |
- | **Status.Battle** returns 1 if you are with Battle | + | **Self.Level%**//()// The current percent of the player level |
- | **Status.Underwater** returns 1 if you are Underwater. | + | **Self.Attacking**//()// Is the player attacking -> :True | :False |
- | **Status.Freezing** returns 1 if you are Freezing. | + | **Self.MagicLevel**//()// The player magic level |
- | **Status.Dazzled** returns 1 if you are Dazzled. | + | **Self.MagicLevel%**//()// The player magic level percent |
- | **Status.Cursed** returns 1 if you are Cursed. | + | **Self.Capacity**//()// The player capacity |
- | **Status.Buff** returns 1 if you are Party Buffed. | + | **Self.X**//()// The player global position X |
- | **Status.PZBlock** returns 1 if you are with Battle | + | **Self.Y**//()// The player global position Y |
- | **Status.InPZ** returns 1 if you are inside protection zone. | + | **Self.Z**//()// The player global position Z |
- | **Status.NoLight** returns 1 if you are without any light. | + | **Self.Mount**//()// The player mount id |
- | **Status.Poison** returns 1 if you are Poisoned. | + | **Self.Balance**//()// The player current balance gathered from NPC Trade window |
- | **Status.Fire** returns 1 if you are Burning. | + | **Self.Direction**//()// The player direction -> :North | :East | :South | :West | :NorthEast | :SouthEast | :SouthWest | :NorthWest |
- | **Status.Energy** returns 1 if you are Energy. | + | ===== Player |
- | **Status.Drunk** returns 1 if you are Drunked. | + | **Status.Poison**//()// The player poison status -> :True | :False |
- | ===== Self.UnEquip ===== | + | **Status.Fire**// |
- | **Self.UnEquip.Legs**(//To Container//) | + | **Status.Energy**//()// The player electrified status -> :True | :False |
- | **Self.UnEquip.Boots**(//To Container//) | + | **Status.Drunk**//()// The player good drunk status -> :True | :False |
- | **Self.UnEquip.Ring**(//To Container//) | + | **Status.ManaShield**//()// The player mana shield status -> :True | :False |
- | **Self.UnEquip.Ammo**(//To Container//) | + | **Status.Paralysis**//()// The player paralysis status -> :True | :False |
- | **Self.UnEquip.Helmet**(//To Container//) | + | **Status.Haste**//()// The player haste status -> :True | :False |
- | **Self.UnEquip.Amulet**(//To Container//) | + | **Status.Battle**//()// The player in battle status -> :True | :False |
- | **Self.UnEquip.Backpack**(//To Container//) | + | **Status.Underwater**//()// The player under water status -> :True | :False |
- | **Self.UnEquip.Armor**(//To Container//) | + | **Status.Freezing**//()// The player freezing status -> :True | :False |
- | **Self.UnEquip.RightHand**(//To Container//) | + | **Status.Dazzled**//()// The player dazzled status -> :True | :False |
- | **Self.UnEquip.LeftHand**(//To Container//) | + | **Status.Cursed**//()// The player cursed status -> :True | :False |
- | puts your inventory item in a container | + | **Status.Buff**// |
- | ===== Self.Equip ===== | + | **Status.PZBlock**// |
- | **Self.Equip.Legs**(//ID//) | + | **Status.InPZ**// |
- | **Self.Equip.Boots**(//ID//) | + | |
- | **Self.Equip.Ring**(//ID//) | + | |
- | **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. | + | **Status.NoLight**// |
- | Self.Turn | + | **Status.Bleeding**// |
- | 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 | + | **Status.Invisible**// |
- | Self.MoveTo(X, Y, Z) moves your character to the position | + | |
- | 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 | + | ===== Player Inventory ===== |
- | 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.Inventory.Helmet**// |
- | 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 | + | **Self.Inventory.Amulet**//()// The player Amulet slot item id |
- | 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 | + | **Self.Inventory.Backpack**// |
- | Target.ByName(Name) | + | |
- | Target.Foe targets | + | **Self.Inventory.Armor**// |
- | Target.Self | + | |
- | Target.Health | + | **Self.Inventory.RightHand**// |
- | Target.Speed | + | |
- | Target.Distance returns | + | **Self.Inventory.LeftHand**// |
- | Target.NameIn(Name, | + | |
- | Target.Shoot(Ammo) shoot a item in the target | + | **Self.Inventory.Legs**// |
+ | |||
+ | **Self.Inventory.Boots**// | ||
+ | |||
+ | **Self.Inventory.Ring**// | ||
+ | |||
+ | **Self.Inventory.Ammunition**// | ||
+ | |||
+ | **Self.Inventory.Helmet.Count**// | ||
+ | |||
+ | **Self.Inventory.Amulet.Count**// | ||
+ | |||
+ | **Self.Inventory.Backpack.Count**// | ||
+ | |||
+ | **Self.Inventory.Armor.Count**// | ||
+ | |||
+ | **Self.Inventory.RightHand.Count**// | ||
+ | |||
+ | **Self.Inventory.LeftHand.Count**// | ||
+ | |||
+ | **Self.Inventory.Legs.Count**// | ||
+ | |||
+ | **Self.Inventory.Boots.Count**// | ||
+ | |||
+ | **Self.Inventory.Ring.Count**// | ||
+ | |||
+ | **Self.Inventory.Ammunition.Count**// | ||
+ | |||
+ | **Self.Inventory.ID**// | ||
+ | |||
+ | **Self.Inventory.Count**// | ||
+ | |||
+ | **Self.Inventory.UseOn**// | ||
+ | |||
+ | ===== Player Skills ===== | ||
+ | |||
+ | **Self.Skill.Fist**// | ||
+ | |||
+ | **Self.Skill.Club**// | ||
+ | |||
+ | **Self.Skill.Axe**// | ||
+ | |||
+ | **Self.Skill.Sword**// | ||
+ | |||
+ | **Self.Skill.Distance**// | ||
+ | |||
+ | **Self.Skill.Shielding**// | ||
+ | |||
+ | **Self.Skill.Fishing**// | ||
+ | |||
+ | **Self.Skill.Fist%**// | ||
+ | |||
+ | **Self.Skill.Club%**// | ||
+ | |||
+ | **Self.Skill.Axe%**// | ||
+ | |||
+ | **Self.Skill.Sword%**// | ||
+ | |||
+ | **Self.Skill.Distance%**// | ||
+ | |||
+ | **Self.Skill.Shielding%**// | ||
+ | |||
+ | **Self.Skill.Fishing%**// | ||
+ | |||
+ | ===== Player Actions ===== | ||
+ | |||
+ | **Self.Say**// | ||
+ | |||
+ | **Self.Whisper**// | ||
+ | |||
+ | **Self.Yell**// | ||
+ | |||
+ | **Self.PrivateMessage**// | ||
+ | |||
+ | **Self.Stop**// | ||
+ | |||
+ | **Self.PositionIn**// | ||
+ | |||
+ | **Self.MoveTo**// | ||
+ | |||
+ | **Self.MoveN**// | ||
+ | |||
+ | **Self.StepNorth**// | ||
+ | |||
+ | **Self.MoveS**// | ||
+ | |||
+ | **Self.StepSouth**// | ||
+ | |||
+ | **Self.MoveE**// | ||
+ | |||
+ | **Self.StepEast**// | ||
+ | |||
+ | **Self.MoveW**// | ||
+ | |||
+ | **Self.StepWest**// | ||
+ | |||
+ | **Self.MoveNE**// | ||
+ | |||
+ | **Self.StepNorthEast**// | ||
+ | |||
+ | **Self.MoveNW**// | ||
+ | |||
+ | **Self.StepNorthWest**// | ||
+ | |||
+ | **Self.MoveSE**// | ||
+ | |||
+ | **Self.StepSouthEast**// | ||
+ | |||
+ | **Self.MoveSW**// | ||
+ | |||
+ | **Self.StepSouthWest**// | ||
+ | |||
+ | **Self.Logout**// | ||
+ | |||
+ | **Self.TurnN**// | ||
+ | |||
+ | **Self.TurnNorth**// | ||
+ | |||
+ | **Self.TurnS**// | ||
+ | |||
+ | **Self.TurnSouth**// | ||
+ | |||
+ | **Self.TurnE**// | ||
+ | |||
+ | **Self.TurnEast**// | ||
+ | |||
+ | **Self.TurnW**// | ||
+ | |||
+ | **Self.TurnWest**// | ||
+ | |||
+ | **Self.ReOpenBackpacks**// | ||
+ | |||
+ | **Self.ToggleMinimizeBackpack**// | ||
+ | |||
+ | **Self.SayInChannel**// | ||
+ | |||
+ | **Self.ToggleMount**// | ||
+ | |||
+ | **Self.Backpacks.UseOn**// | ||
+ | |||
+ | **Self.OpenBackpacks**// | ||
+ | |||
+ | ===== Player Inventory Equip ===== | ||
+ | |||
+ | **Self.Equip.Helmet**// | ||
+ | |||
+ | **Self.Equip.Amulet**// | ||
+ | |||
+ | **Self.Equip.Backpack**// | ||
+ | |||
+ | **Self.Equip.Armor**// | ||
+ | |||
+ | **Self.Equip.RightHand**// | ||
+ | |||
+ | **Self.Equip.LeftHand**// | ||
+ | |||
+ | **Self.Equip.Legs**// | ||
+ | |||
+ | **Self.Equip.Boots**// | ||
+ | |||
+ | **Self.Equip.Ring**// | ||
+ | |||
+ | **Self.Equip.Ammo**// | ||
+ | |||
+ | **Self.Equip**// | ||
+ | |||
+ | ===== Player Inventory UnEquip ===== | ||
+ | |||
+ | **Self.UnEquip.Helmet**// | ||
+ | |||
+ | **Self.UnEquip.Amulet**// | ||
+ | |||
+ | **Self.UnEquip.Backpack**// | ||
+ | |||
+ | **Self.UnEquip.Armor**// | ||
+ | |||
+ | **Self.UnEquip.RightHand**// | ||
+ | |||
+ | **Self.UnEquip.LeftHand**// | ||
+ | |||
+ | **Self.UnEquip.Legs**// | ||
+ | |||
+ | **Self.UnEquip.Boots**// | ||
+ | |||
+ | **Self.UnEquip.Ring**// | ||
+ | |||
+ | **Self.UnEquip.Ammo**// | ||
+ | |||
+ | **Self.UnEquip**// | ||
+ | |||
+ | ===== Player Drop Equip ===== | ||
+ | |||
+ | **Self.Drop.Helmet**// | ||
+ | |||
+ | **Self.Drop.Amulet**// | ||
+ | |||
+ | **Self.Drop.Backpack**// | ||
+ | |||
+ | **Self.Drop.Armor**// | ||
+ | |||
+ | **Self.Drop.RightHand**// | ||
+ | |||
+ | **Self.Drop.LeftHand**// | ||
+ | |||
+ | **Self.Drop.Legs**// | ||
+ | |||
+ | **Self.Drop.Boots**// | ||
+ | |||
+ | **Self.Drop.Ring**// | ||
+ | |||
+ | **Self.Drop.Ammo**// | ||
+ | |||
+ | ===== Player Pickup Equip ===== | ||
+ | |||
+ | **Self.PickUp.Helmet**// | ||
+ | |||
+ | **Self.PickUp.Amulet**// | ||
+ | |||
+ | **Self.PickUp.Backpack**// | ||
+ | |||
+ | **Self.PickUp.Armor**// | ||
+ | |||
+ | **Self.PickUp.RightHand**// | ||
+ | |||
+ | **Self.PickUp.LeftHand**// | ||
+ | |||
+ | **Self.PickUp.Legs**// | ||
+ | |||
+ | **Self.PickUp.Boots**// | ||
+ | |||
+ | **Self.PickUp.Ring**// | ||
+ | |||
+ | **Self.PickUp.Ammo**// | ||
+ | |||
+ | ===== Party ===== | ||
+ | |||
+ | **Party.Status**// | ||
+ | |||
+ | **Party.IsShared**// | ||
+ | |||
+ | **Party.CanShared**// | ||
+ | |||
+ | **Party.Invite**// | ||
+ | |||
+ | **Party.Inviting**// | ||
+ | |||
+ | **Party.Revoke**// | ||
+ | |||
+ | **Party.Join**// | ||
+ | |||
+ | **Party.PassLeader**// | ||
+ | |||
+ | **Party.Leave**// | ||
+ | |||
+ | **Party.ToggleShared**// | ||
+ | |||
+ | ===== NPC Trading ===== | ||
+ | |||
+ | **NPC.Buy**// | ||
+ | |||
+ | **NPC.BuyInBP**// | ||
+ | |||
+ | **NPC.SellAll**// | ||
+ | |||
+ | **NPC.Sell**// | ||
+ | |||
+ | **NPC.Say**// | ||
+ | |||
+ | **NPC.Trade.Money**// | ||
+ | |||
+ | ===== Working with Maps ===== | ||
+ | |||
+ | **Map.UseOn**// | ||
+ | |||
+ | **Map.Use**// | ||
+ | |||
+ | **Map.HasID**// | ||
+ | |||
+ | **Map.Thrown**// | ||
+ | |||
+ | **Map.PickUp**// | ||
+ | |||
+ | **Map.PickUpEx**// | ||
+ | |||
+ | **Map.ItemsOnTile**// | ||
+ | |||
+ | **Map.Item.ID**// | ||
+ | |||
+ | **Map.Item.Count**// | ||
+ | |||
+ | **Map.ItemOnTop.ID**// | ||
+ | |||
+ | **Map.ItemOnTop.Count**// | ||
+ | |||
+ | **Map.CreatureOnTop.ID**// | ||
+ | |||
+ | **Map.Find**// | ||
+ | |||
+ | **Map.UseOn.Equip**// | ||
+ | |||
+ | ===== Working with Creatures ===== | ||
+ | |||
+ | **Creature.ByName**//(Name)// Gather | ||
+ | |||
+ | **Creature.Attacking**// | ||
+ | |||
+ | **Creature.Target**//()// Gather the ID from the creature being attacked | ||
+ | |||
+ | **Creature.Self**//()// Gather the ID from the player | ||
+ | |||
+ | **Creature.Health**//(ID)// Returns | ||
+ | |||
+ | **Creature.IsAlive**// | ||
+ | |||
+ | **Creature.Speed**//(ID)// Returns | ||
+ | |||
+ | **Creature.DistanceToSelf**// | ||
+ | |||
+ | **Creature.NameIn**//(ID, Name,Na..)// Verify | ||
+ | |||
+ | **Creature.ShootOn**//(ID, Ammo)// Shoot a item on the creature (potions, runes and other items) | ||
+ | |||
+ | **Creature.X**// | ||
+ | |||
+ | **Creature.Y**// | ||
+ | |||
+ | **Creature.Z**// | ||
+ | |||
+ | **Creature.IsPlayer**// | ||
+ | |||
+ | **Creature.IsNPC**// | ||
+ | |||
+ | **Creature.GroupCount**// | ||
+ | |||
+ | **Creature.SquareVisible**// | ||
+ | |||
+ | **Creature.SquareRed**// | ||
+ | |||
+ | **Creature.SquareGreen**// | ||
+ | |||
+ | **Creature.SquareBlue**// | ||
+ | |||
+ | **Creature.Attack**// | ||
+ | |||
+ | **Creature.Follow**// | ||
+ | |||
+ | **Creature.KeepDistance**// | ||
+ | |||
+ | **Creature.KeepDiagonal**// | ||
+ | |||
+ | **Creature.Iterator**// | ||
+ | |||
+ | **Creature.Next**// | ||
+ | |||
+ | ===== Creature Statistics ===== | ||
+ | |||
+ | **Creatures.Beside**// | ||
+ | |||
+ | **Creatures.OnScreen**// | ||
+ | |||
+ | **Creatures.OnScreenParty**// | ||
+ | |||
+ | **Creatures.ByRange**// | ||
+ | |||
+ | **Creatures.ByRangeParty**// | ||
+ | |||
+ | **Creatures.Killed**// | ||
+ | |||
+ | **Creatures.PlayersOnScreen**// | ||
+ | |||
+ | **Creatures.TaskKilled**// | ||
+ | |||
+ | **Creatures.PlayersOnRange**// | ||
+ | |||
+ | **Creatures.ByName**// | ||
+ | |||
+ | **Creatures.NPCOnScreen**// | ||
+ | |||
+ | **Creatures.ByRangeName**// | ||
+ | |||
+ | **Creatures.ByNameBeside**// | ||
+ | |||
+ | ===== Misc Functions ===== | ||
+ | |||
+ | **Misc.ShootCount**// | ||
+ | |||
+ | **Misc.AttackersCount**// | ||
+ | |||
+ | **Misc.HPLose**// | ||
+ | |||
+ | **Misc.HPGain**// | ||
+ | |||
+ | **Misc.HPDelta**// | ||
+ | |||
+ | **Misc.ManaDelta**// | ||
+ | |||
+ | **Misc.HPHitsBigger**// | ||
+ | |||
+ | **Misc.StandTime**// | ||
+ | |||
+ | **Misc.ItemCount**// | ||
+ | |||
+ | **Misc.Alert**// | ||
+ | |||
+ | **Misc.LoadUrl**// | ||
+ | |||
+ | **Misc.LogFile**// | ||
+ | |||
+ | **Misc.ItemCountEx**// | ||
+ | |||
+ | **HUD.Display**// | ||
+ | |||
+ | **HUD.Setup**// | ||
+ | |||
+ | **HUD.Print**// | ||
+ | |||
+ | **Cavebot.Start**// | ||
+ | |||
+ | **Cavebot.Stop**// | ||
+ | |||
+ | **Cavebot.Reset**// | ||
+ | |||
+ | **CaveBot.GoLabel**// | ||
+ | |||
+ | **CaveBot.GoStart**// | ||
+ | |||
+ | **CaveBot.NoKill**// | ||
+ | |||
+ | **Killer.Start**// | ||
+ | |||
+ | **Killer.Stop**// | ||
+ | |||
+ | **OpenCorpses.Pause**// | ||
+ | |||
+ | **OpenCorpses.UnPause**// | ||
+ | |||
+ | **Bot.Pause**// | ||
+ | |||
+ | **BBot.TogglePause**// | ||
+ | |||
+ | **Bot.LoadSettings**// | ||
+ | |||
+ | **BBot.ToggleVisible**// | ||
+ | |||
+ | **BBot.ToggleStats**// | ||
+ | |||
+ | **BBot.LevelSpyReset**// | ||
+ | |||
+ | **BBot.LevelSpyUp**// | ||
+ | |||
+ | **BBot.LevelSpyDown**// | ||
+ | |||
+ | **Macro.Wait**// | ||
+ | |||
+ | **Hotkey.Use**// | ||
+ | |||
+ | **Misc.SystemTime.Hour**// | ||
+ | |||
+ | **Misc.SystemTime.Minute**// | ||
+ | |||
+ | **Misc.SystemTime.Second**// | ||
+ | |||
+ | **Misc.SystemTime.Tick**// | ||
+ | |||
+ | **Tibia.KeyDown**// | ||
+ | |||
+ | **Tibia.IsKeyDown**// | ||
+ | |||
+ | **Trainers.Stop**// | ||
+ | |||
+ | **Trainers.Start**// | ||
+ | |||
+ | **Misc.Random**// | ||
+ | |||
+ | **Trainers.ClearTrainers**// | ||
+ | |||
+ | **Protectors.Disable**// | ||
+ | |||
+ | **Protectors.Pause**// | ||
+ | |||
+ | **Protectors.Enable**// | ||
+ | |||
+ | **Protectors.UnPause**// | ||
+ | |||
+ | **Protectors.DisableAll**// | ||
+ | |||
+ | **Protectors.PauseAll**// | ||
+ | |||
+ | **Protectors.EnableAll**// | ||
+ | |||
+ | **Protectors.UnPauseAll**// | ||
+ | |||
+ | **ReUser.Pause**// | ||
+ | |||
+ | **ReUser.UnPause**// | ||
+ | |||
+ | **ReUser.PauseAll**// | ||
+ | |||
+ | **ReUser.UnPauseAll**// | ||
+ | |||
+ | **Tibia.SendKey**// | ||
+ | |||
+ | **Tibia.SendText**// | ||
+ | |||
+ | **Tibia.Screenshot**// | ||
+ | |||
+ | **Tibia.StealthScreenshot**// | ||
+ | |||
+ | **Tibia.Close**// | ||
+ | |||
+ | **Tibia.Ping**// | ||
+ | |||
+ | **Tibia.WindowWidth**// | ||
+ | |||
+ | **Tibia.WindowHeight**// | ||
+ | |||
+ | **ReconnectManager.LoadProfile**// | ||
+ | |||
+ | **ReconnectManager.TerminateTask**// | ||
+ | |||
+ | **Macro.Run**// | ||
+ | |||
+ | **Debug.Click**// | ||
+ | |||
+ | **Debug.ClickEx**// | ||
+ | |||
+ | **Debug.Log**// | ||
+ | |||
+ | **Misc.Click**// | ||
+ | |||
+ | **Misc.ClickEx**// | ||
+ | |||
+ | **Misc.SendPacket**// | ||
+ | |||
+ | ===== Container Functions ===== | ||
+ | |||
+ | **Containers.TotalOpen**// | ||
+ | |||
+ | **Container.Name**// | ||
+ | |||
+ | **Container.IsOpen**// | ||
+ | |||
+ | **Container.Capacity**// | ||
+ | |||
+ | **Container.Items**// | ||
+ | |||
+ | **Container.Icon**// | ||
+ | |||
+ | **Container.IsCorpse**// | ||
+ | |||
+ | **Container.IsDepot**// | ||
+ | |||
+ | **Container.Item.ID**// | ||
+ | |||
+ | **Container.Item.Count**// | ||
+ | |||
+ | **Container.Find**// | ||
+ | |||
+ | **Container.Item.Use**// | ||
+ | |||
+ | **Container.Item.UseOn**// | ||
+ | |||
+ | **Container.Item.Move**// | ||
+ | |||
+ | **Container.Item.MoveToPos**// | ||
- | 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, | ||