BBot - The best bot of the world
Random Rotate to exori vis - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: Random Rotate to exori vis (/thread-20941.html)



Random Rotate to exori vis - opol - 10-12-2018

i got 3 macros to rotate to exori vis but i wanna to attack and rotate to exori vis to monster witch least hp not random. Please help me to make it good

1:
{When X=1 move West}
!Delta.X==1 [When X=-1 move East]
Self.MoveW()
Exit()
{When X=-1 move East}
!Delta.X==-1 [Ouch]
Self.MoveE()
Exit()

2:
{When Y=-1 move South}
!Delta.Y==-1 [When Y=1 move North]
Self.MoveS()
Exit()
{When Y=1 move North}
!Delta.Y==1 [Ouch]
Self.MoveN()
Exit()

3:
Self.Attacking()==:True
Target.X:=Creature.X(:TargetID)
Target.Y:=Creature.Y(:TargetID)
Delta.X:=Sub(:X, !Target.X)
Delta.Y:=Sub(:Y, !Target.Y)
{Check if we arent on same X}
!Delta.X==0 [Check if we arent on same Y]
HUD.Display(We are sharing X)
Exit()
{Check if we arent on same Y}
!Delta.Y==0 [Need move]
HUD.Display(We are sharing Y)
Exit()
{Need move}
HUD.Display(Move !Delta.X !Delta.Y)
Misc.Random(0, 100)<50 [Move Vertically]
GoLabel(Move Horizontally)
{Move Vertically}
Macro.Run(Face Target: Move Vertically)
Exit()
{Move Horizontally}
Macro.Run(Face Target: Move Horizontally)
Exit()


RE: Random Rotate to exori vis - Catar - 10-12-2018

from what i see this macro turns to the target you (or killer) have marked (is attacking)

Nothing in macro can change that.

Killer should've stick to target it attacked first


RE: Random Rotate to exori vis - opol - 10-12-2018

(10-12-2018, 12:56 PM)Catar Wrote: from what i see this macro turns to the target you (or killer) have marked (is attacking)

Nothing in macro can change that.

Killer should've stick to target it attacked first

how fix killer to attacked monster with lower hp?


RE: Random Rotate to exori vis - Catar - 10-12-2018

u can't

iirc, killer will attack whatever first showed up on screen or attacked your character, and will continue to attack it unless it can't reach him for more than specified (in variables) time