This shows you the differences between two versions of the page.
macros_commands [2011/07/29 17:13] noen [Macros Commands] |
macros_commands [2021/11/15 16:43] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Macros Commands ====== | ||
- | |||
- | ===== 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' | ||
- | |||
- | **Tibia.KeyDown(Key)** returns 1 if the determined key is pressed. You can see all key codes here: [[Virtual Key Codes]] | ||
- | |||
- | **Killer.Start** starts the Killer. | ||
- | |||
- | **Killer.Stop** stops the Killer. | ||
- | |||
- | **Cavebot.Start** starts the cavebot. | ||
- | |||
- | **Cavebot.Stop** stops the cavebot. | ||
- | ===== HUD ===== | ||
- | |||
- | **HUD.Display**(// | ||
- | |||
- | **HUD.Setup**(// | ||
- | |||
- | ===== Cavebot ===== | ||
- | |||
- | **CaveBot.GoStart** makes the cavebot reset to the start of the script. | ||
- | |||
- | **CaveBot.GoLabel**(// | ||
- | |||
- | ===== Macro ===== | ||
- | |||
- | **Macro.Wait**(// | ||
- | |||
- | ===== 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**(// | ||
- | |||
- | **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.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**(// | ||
- | |||
- | **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**(// | ||
- | |||
- | **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**(// | ||
- | |||
- | **Self.PositionIn**(// | ||
- | |||
- | ===== 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. | ||
- | |||
- | **Self.Mount** returns 1 if you are riding your mount. | ||
- | |||
- | |||
- | ===== Creatures ===== | ||
- | |||
- | **Creatures.Beside** returns the number of creatures beside (distance <=1). | ||
- | |||
- | **Creatures.OnScreen** returns the number of the creatures in your screen. | ||
- | |||
- | **Creatures.ByRange**(// | ||
- | |||
- | **Creatures.Killed**(// | ||
- | |||
- | **Creatures.PlayersOnScreen** returns the number of players on screen. | ||
- | |||
- | **Creatures.TaskKilled**(// | ||
- | |||
- | ===== Target ===== | ||
- | |||
- | **Target.ByName**(// | ||
- | |||
- | **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**(// | ||
- | |||
- | **Target.Shoot**(// | ||
- | |||
- | ===== Variables ===== | ||
- | |||
- | **VarSet**(// | ||
- | |||
- | **VarSetEx**(Name, | ||
- | |||
- | **VarDiv**(Name, | ||
- | |||
- | **VarMult**(Name, | ||
- | |||
- | **VarAdd**(Name, | ||
- | |||
- | **VarSub**(Name, | ||
- | |||
- | **VarMod**(Name, | ||