Jump to content

Recommended Posts

Posted (edited)

Hi guys, i wrote script that is moving with coordinates and targeting mobs that are in 300 radius from me. But the script is only walking, it's not targeting.

 

But when i start just the target "script" it's working.

 

But seperately they not work.

 

Someone help?

var
Control: TL2Control;

function run: boolean; begin
	 	  
Engine.MoveTo(176755, -15885, -4901);
Engine.MoveTo(176304, -15902, -4901);
Engine.MoveTo(176331, -17224, -4899);
Engine.MoveTo(176321, -17713, -4899);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4892);
Engine.MoveTo(176310, -17671, -4892);
Engine.MoveTo(176310, -17671, -4892);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4900);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176310, -17671, -4899);
Engine.MoveTo(176340, -17694, -4899);
Engine.MoveTo(176360, -17639, -4899);
Engine.MoveTo(176366, -17566, -4899);
Engine.MoveTo(176361, -17433, -4899);
Engine.MoveTo(176352, -17299, -4899);
Engine.MoveTo(176289, -16275, -4901);
Engine.MoveTo(176277, -16011, -4901);
Engine.MoveTo(176201, -15939, -4901);
Engine.MoveTo(176074, -15907, -4901);
Engine.MoveTo(175945, -15901, -4901);
Engine.MoveTo(175826, -15927, -4901);
Engine.MoveTo(175707, -16028, -4901);
Engine.MoveTo(175587, -16179, -4901);
Engine.MoveTo(175346, -16189, -4901);
Engine.MoveTo(175149, -16205, -4901);
Engine.MoveTo(175059, -16256, -4901);
Engine.MoveTo(175015, -16348, -4901);
Engine.MoveTo(174999, -16466, -4901);
Engine.MoveTo(174993, -16607, -4901);
Engine.MoveTo(174977, -17129, -4901);
Engine.MoveTo(175029, -17478, -4901);
Engine.MoveTo(175106, -17589, -4899);
Engine.MoveTo(175205, -17667, -4899);
Engine.MoveTo(175139, -17732, -4901);
Engine.MoveTo(175038, -17769, -4901);
Engine.MoveTo(175019, -17767, -4901);
Engine.MoveTo(175019, -17767, -4901);
Engine.MoveTo(175019, -17767, -4901);
Engine.MoveTo(174977, -17760, -4901);
Engine.MoveTo(174841, -17735, -4901);
Engine.MoveTo(174672, -17688, -4899);
Engine.MoveTo(174575, -17611, -4899);
Engine.MoveTo(174591, -17520, -4899);
Engine.MoveTo(174667, -17446, -4901);
Engine.MoveTo(174899, -17359, -4901);
Engine.MoveTo(174966, -17290, -4901);
Engine.MoveTo(175011, -17156, -4899);
Engine.MoveTo(174999, -16921, -4901);
Engine.MoveTo(174969, -16407, -4901);
Engine.MoveTo(174946, -16297, -4901);
Engine.MoveTo(174859, -16241, -4901);
Engine.MoveTo(174758, -16215, -4901);
Engine.MoveTo(174590, -16213, -4901);
Engine.MoveTo(174490, -16212, -4901);
Engine.MoveTo(174413, -16211, -4901);
Engine.MoveTo(173705, -16207, -4899);
Engine.MoveTo(173470, -16250, -4899);
Engine.MoveTo(172928, -16359, -4901);
Engine.MoveTo(172683, -16376, -4901);
Engine.MoveTo(172603, -16331, -4901);
Engine.MoveTo(172594, -16246, -4899);
Engine.MoveTo(172634, -16160, -4899);
Engine.MoveTo(172711, -16104, -4899);
Engine.MoveTo(172795, -16067, -4901);
Engine.MoveTo(173060, -16016, -4901);
Engine.MoveTo(173143, -15911, -4901);
Engine.MoveTo(173165, -15799, -4899);
Engine.MoveTo(173180, -15680, -4901);
Engine.MoveTo(173178, -15478, -4901);
Engine.MoveTo(173159, -14993, -4901);
Engine.MoveTo(173159, -14982, -4901);
Engine.MoveTo(173159, -14982, -4901);
Engine.MoveTo(173163, -14952, -4901);
Engine.MoveTo(173239, -14452, -4901);
Engine.MoveTo(173364, -14378, -4901);
Engine.MoveTo(173447, -14378, -4901);
Engine.MoveTo(173611, -14381, -4901);
Engine.MoveTo(173995, -14382, -4901);
Engine.MoveTo(174535, -14389, -4899);
Engine.MoveTo(174634, -14420, -4901);
Engine.MoveTo(174745, -14490, -4901);
Engine.MoveTo(174866, -14637, -4901);
Engine.MoveTo(175017, -14814, -4901);
Engine.MoveTo(175109, -14741, -4899);
Engine.MoveTo(175136, -14628, -4899);
Engine.MoveTo(175146, -14508, -4899);
Engine.MoveTo(175143, -14439, -4899);
Engine.MoveTo(175143, -14439, -4899);
Engine.MoveTo(175143, -14439, -4899);
Engine.MoveTo(175142, -14378, -4899);
Engine.MoveTo(175140, -14288, -4899);
Engine.MoveTo(175138, -14184, -4899);
Engine.MoveTo(175136, -13948, -4899);
Engine.MoveTo(175136, -13948, -4899);
Engine.MoveTo(175136, -13948, -4899);
Engine.MoveTo(175121, -13940, -4899);
Engine.MoveTo(175113, -13935, -4899);
Engine.MoveTo(175113, -13935, -4899);
Engine.MoveTo(175113, -13935, -4899);
Engine.MoveTo(175113, -13935, -4899);
Engine.MoveTo(175113, -13935, -4899);
Engine.MoveTo(175112, -13929, -4899);
Engine.MoveTo(175111, -13920, -4899);
Engine.MoveTo(175111, -13920, -4899);
Engine.MoveTo(175123, -13741, -4899);
Engine.MoveTo(175155, -13290, -4901);
Engine.MoveTo(175168, -13105, -4901);
Engine.MoveTo(175176, -12766, -4901);
Engine.MoveTo(175218, -12695, -4901);
Engine.MoveTo(175343, -12645, -4901);
Engine.MoveTo(175763, -12668, -4901);
Engine.MoveTo(175960, -12679, -4901);
Engine.MoveTo(176063, -12697, -4901);
Engine.MoveTo(176153, -12746, -4901);
Engine.MoveTo(176308, -12866, -4901);
Engine.MoveTo(176417, -12951, -4901);
Engine.MoveTo(176493, -12951, -4901);
Engine.MoveTo(176741, -12961, -4901);
Engine.MoveTo(176964, -12987, -4899);
Engine.MoveTo(177250, -13031, -4899);
Engine.MoveTo(177266, -13200, -4899);
Engine.MoveTo(177258, -14680, -4901);
Engine.MoveTo(177053, -14768, -4901);
Engine.MoveTo(176721, -14897, -4899);
Engine.MoveTo(176685, -15015, -4901);
Engine.MoveTo(176731, -15165, -4901);
Engine.MoveTo(176752, -15573, -4901);
Engine.MoveTo(176747, -15702, -4901);
end;

begin run;
if user.inrange(176755, -15885, -4901, 500) then begin run;
end;

while run do
repeat
Engine.AutoTarget(300,250);
until false;
end;

end.
Edited by Snejkyy

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...