05-06-2013, 05:20 AM
Website Maintence
Hello, I would like to announce that the website will go down for a maintenance tomorrow, with no defined time. However the maintenance will take only some minutes and the Forums and Login Servers will still work. The maintenance will bring a new website is going to be setup, with a new layout and a system written from scatch.
BBot 15.0, several changes on Macro System
The first beta version for BBot 15.0 will be released tomorrow (will be 14.x), this new version will bring some small new features and adapt the BBot to work with the new website links. Also the new BBot 15.0 will fix some bugs and will allow us to start working on one or two big features.
Macro deprecated future headaches
Target.ByName(Name) to Creature.ByName(Name) returns ID
Target.Foe() to Creature.Attacking() returns ID OR Creature.Target() returns ID
Target.Self() to Creature.Self() returns ID
Target.Health() to Creature.Health(ID)
Target.Speed() to Creature.Speed(ID)
Target.Distance() to Creature.DistanceToSelf(ID)
Target.X() to Creature.X(ID)
Target.Y() to Creature.Y(ID)
Target.Z() to Creature.Z(ID)
Target.NameIn(Name1[,Name2..]) to Creature.NameIn(ID, Name1[, Name2..])
Target.Shoot(ID) to Creature.ShootOn(ID, Ammo)
Target.IsPlayer() to Creature.IsPlayer(ID)
Target.IsNPC() to Creature.IsNPC(ID)
Target.GroupCount() to Creature.GroupCount(ID)
Target.SquareVisible() to Creature.SquareVisible(ID)
Target.SquareRed() to Creature.SquareRed(ID)
Target.SquareGreen() to Creature.SquareGreen(ID)
Target.SquareBlue() to Creature.SquareBlue(ID)
These macros were deprecated because they bought many doubts because of their bad names. Also now their new versions support multi-creature macros, the new functions works using ID as parameters, and Selectors that returns IDs. The deprecated macros will still work, but will print on the Tibia's screen a message to use the new versions, it will be VERY boring and MANY users will come to the forums to understand why their scripts give's them those messages.
Macro aliases
Self.MoveNorth alias Self.MoveN
Self.MoveSouth alias Self.MoveS
Self.MoveEast alias Self.MoveE
Self.MoveWest alias Self.MoveW
Self.MoveNorthWest alias Self.MoveNW
Self.MoveNorthEast alias Self.MoveNE
Self.MoveSouthWest alias Self.MoveSW
Self.MoveSouthEast alias Self.MoveSE
Creature.Attacking alias Creature.Target
Tibia.KeyDown alias Tibia.IsKeyDown
VarAdd alias Inc
VarSub alias Dec
VarMult alias Mult
VarDiv alias Div
VarMod alias Mod
New Macros
Creature.Attack(ID)
Creature.Follow(ID)
Creature.KeepDistance(ID)
Creature.KeepDiagonal(ID)
HUD.Print(HAlign, VAlign, R, G, B, Expire, Text)
Note on Creature.Follow(ID): it uses BBot's engine ! It will not mark the creature with the Green Square !
New Creature() test macro
[macro]1000 {Test new Creature Macros} SelfID:=Creature.Self() TargetID:=Creature.Target() SelfHP:=Creature.Health(!SelfID!) SelfSpeed:=Creature.Speed(!SelfID!) SelfDistance:=Creature.DistanceToSelf(!SelfID!) SelfX:=Creature.X(!SelfID!) SelfY:=Creature.Y(!SelfID!) SelfZ:=Creature.Z(!SelfID!) SelfNameIn1:=Creature.NameIn(!SelfID!, Name1) SelfNameIn2:=Creature.NameIn(!SelfID!, Name1, Name2) TargetHP:=Creature.Health(!TargetID!) TargetSpeed:=Creature.Speed(!TargetID!) TargetDistance:=Creature.DistanceToSelf(!TargetID!) TargetX:=Creature.X(!TargetID!) TargetY:=Creature.Y(!TargetID!) TargetZ:=Creature.Z(!TargetID!) TargetNameIn1:=Creature.NameIn(!TargetID!, Name1) TargetNameIn2:=Creature.NameIn(!TargetID!, Name1, Name2)
[/macro]
Macro sample, Shoot SD Target
[macro]1000 {Shoot SD to Target} Target:=Creature.Attacking() Creature.ShootOn(!Target!, 3155)[/macro]
Macro sample, Follow friend when not attacking
[macro]1000 {Follow friend} Self.Attacking()==0 MyFriendID:=Creature.ByName(FriendName) Creature.Follow(!MyFriendID!)[/macro]
Macro sample, Keep distance from friend when not attacking
[macro]1000 {Keep distance from friend} KeepDistanceFriend:=3 Self.Attacking()==0 MyFriendID:=Creature.ByName(FriendName) Creature.KeepDistance(!MyFriendID!, !KeepDistanceFriend!)[/macro]
Hello, I would like to announce that the website will go down for a maintenance tomorrow, with no defined time. However the maintenance will take only some minutes and the Forums and Login Servers will still work. The maintenance will bring a new website is going to be setup, with a new layout and a system written from scatch.
BBot 15.0, several changes on Macro System
The first beta version for BBot 15.0 will be released tomorrow (will be 14.x), this new version will bring some small new features and adapt the BBot to work with the new website links. Also the new BBot 15.0 will fix some bugs and will allow us to start working on one or two big features.
Macro deprecated future headaches
Target.ByName(Name) to Creature.ByName(Name) returns ID
Target.Foe() to Creature.Attacking() returns ID OR Creature.Target() returns ID
Target.Self() to Creature.Self() returns ID
Target.Health() to Creature.Health(ID)
Target.Speed() to Creature.Speed(ID)
Target.Distance() to Creature.DistanceToSelf(ID)
Target.X() to Creature.X(ID)
Target.Y() to Creature.Y(ID)
Target.Z() to Creature.Z(ID)
Target.NameIn(Name1[,Name2..]) to Creature.NameIn(ID, Name1[, Name2..])
Target.Shoot(ID) to Creature.ShootOn(ID, Ammo)
Target.IsPlayer() to Creature.IsPlayer(ID)
Target.IsNPC() to Creature.IsNPC(ID)
Target.GroupCount() to Creature.GroupCount(ID)
Target.SquareVisible() to Creature.SquareVisible(ID)
Target.SquareRed() to Creature.SquareRed(ID)
Target.SquareGreen() to Creature.SquareGreen(ID)
Target.SquareBlue() to Creature.SquareBlue(ID)
These macros were deprecated because they bought many doubts because of their bad names. Also now their new versions support multi-creature macros, the new functions works using ID as parameters, and Selectors that returns IDs. The deprecated macros will still work, but will print on the Tibia's screen a message to use the new versions, it will be VERY boring and MANY users will come to the forums to understand why their scripts give's them those messages.
Macro aliases
Self.MoveNorth alias Self.MoveN
Self.MoveSouth alias Self.MoveS
Self.MoveEast alias Self.MoveE
Self.MoveWest alias Self.MoveW
Self.MoveNorthWest alias Self.MoveNW
Self.MoveNorthEast alias Self.MoveNE
Self.MoveSouthWest alias Self.MoveSW
Self.MoveSouthEast alias Self.MoveSE
Creature.Attacking alias Creature.Target
Tibia.KeyDown alias Tibia.IsKeyDown
VarAdd alias Inc
VarSub alias Dec
VarMult alias Mult
VarDiv alias Div
VarMod alias Mod
New Macros
Creature.Attack(ID)
Creature.Follow(ID)
Creature.KeepDistance(ID)
Creature.KeepDiagonal(ID)
HUD.Print(HAlign, VAlign, R, G, B, Expire, Text)
Note on Creature.Follow(ID): it uses BBot's engine ! It will not mark the creature with the Green Square !
New Creature() test macro
[macro]1000 {Test new Creature Macros} SelfID:=Creature.Self() TargetID:=Creature.Target() SelfHP:=Creature.Health(!SelfID!) SelfSpeed:=Creature.Speed(!SelfID!) SelfDistance:=Creature.DistanceToSelf(!SelfID!) SelfX:=Creature.X(!SelfID!) SelfY:=Creature.Y(!SelfID!) SelfZ:=Creature.Z(!SelfID!) SelfNameIn1:=Creature.NameIn(!SelfID!, Name1) SelfNameIn2:=Creature.NameIn(!SelfID!, Name1, Name2) TargetHP:=Creature.Health(!TargetID!) TargetSpeed:=Creature.Speed(!TargetID!) TargetDistance:=Creature.DistanceToSelf(!TargetID!) TargetX:=Creature.X(!TargetID!) TargetY:=Creature.Y(!TargetID!) TargetZ:=Creature.Z(!TargetID!) TargetNameIn1:=Creature.NameIn(!TargetID!, Name1) TargetNameIn2:=Creature.NameIn(!TargetID!, Name1, Name2)
[/macro]
Macro sample, Shoot SD Target
[macro]1000 {Shoot SD to Target} Target:=Creature.Attacking() Creature.ShootOn(!Target!, 3155)[/macro]
Macro sample, Follow friend when not attacking
[macro]1000 {Follow friend} Self.Attacking()==0 MyFriendID:=Creature.ByName(FriendName) Creature.Follow(!MyFriendID!)[/macro]
Macro sample, Keep distance from friend when not attacking
[macro]1000 {Keep distance from friend} KeepDistanceFriend:=3 Self.Attacking()==0 MyFriendID:=Creature.ByName(FriendName) Creature.KeepDistance(!MyFriendID!, !KeepDistanceFriend!)[/macro]