Quote:
Originally Posted by pro4never
There's a method already coded to return a coord based on x/y. Something like Coord Z = Calculations.Shift(MakeCoord(M.X, M.Y));
if(!Jump(C, Z.X, Z.Y))
Jump(C, M.X, M.Y);
or something like that.
if first jump fails checks it will call jump to mob coords.
As for 'stacking' from flash step, you wanna use the end coords for both to/from generally, I forget which one actually is end coords but I always just used a combination.
i strongly recommend writing commands to test these things....
|
well everything working fine... just the prob is in the jumping...
f (C.LastJump.AddMilliseconds(C.JumpSpeed) < DateTime.Now && C.LastAttack.AddMilliseconds(C.AttackSpeed) < DateTime.Now)
{
Calculations.ShiftTarget(attack);
Packets.AtkServer(C, attack, 2);
C.X = attack.X;
C.Y = attack.Y;
C.UpdatedX = C.X;
C.UpdatedY = C.Y;
Calculations.UpdateLocal(C);
Handler.Chat(C, "attacked " + attack.Name, 2008);
C.LastAttack = DateTime.Now;
}
if (C.LastJump.AddMilliseconds(C.JumpSpeed) < DateTime.Now && C.LastAttack.AddMilliseconds(C.AttackSpeed) < DateTime.Now)
{
Packets.CliJump(attack.X, attack.Y,156,C);
Handler.Chat(C, "Jumped", 2008);
C.X = attack.X;
C.Y = attack.Y;
C.UpdatedX = C.X;
C.UpdatedY = C.Y;
Calculations.UpdateLocal(C);
C.LastJump = DateTime.Now;
}
me and OELABOELA can't figure out...