L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script get stuck
Author Message
tudorftw Offline
Elpy
*

Posts: 1
Joined: Apr 2015
Reputation: 0
Version: 1.4.2.133
Post: #1
Script get stuck

Hi everyone , if u are familiar with this , pls help me and tell me whats wrong. I got a script and modified it for the curent server i play. The quest is "Egg Delivery" from Jeremy in HS for TTS recipes. Everything works fine but after i talk to Valentine in Goddard and port back to HS , the script get stuck. The chronicle is Interlude and this is the script

moveDistance = 30;

MoveTo(149618, -112684, -2065, moveDistance);
TargetNpc("Jeremy", 31521);
MoveTo(GetTarget():GetLocation(), moveDistance);
Talk();
ClickAndWait("npc_268467005_Quest", "Quest");
ClickAndWait("npc_268467005_Quest 621_EggDelivery", "Egg Delivery");
ClickAndWait("Quest 621_EggDelivery 31521-1.htm", "I'll deliver your eggs.");
TargetMe();
MoveTo(149576, -112673, -2065, moveDistance);
UseSkill(411, false, false); -- Stealth
UseSkill(4, false, false); -- Dash
MoveTo(150075, -113053, -2111, moveDistance);
MoveTo(150311, -114245, -1895, moveDistance);
MoveTo(150602, -114928, -1716, moveDistance);
MoveTo(151018, -115075, -1620, moveDistance);
MoveTo(152559, -114985, -1588, moveDistance);
MoveTo(154266, -115082, -1539, moveDistance);
MoveTo(154574, -115119, -1536, moveDistance);
MoveTo(155000, -115165, -1563, moveDistance);
UseSkill(4, false, false); -- Dash
MoveTo(155047, -115170, -1568, moveDistance);
MoveTo(155047, -115170, -1568, moveDistance);
MoveTo(155118, -115178, -1574, moveDistance);
MoveTo(156251, -115306, -1760, moveDistance);
MoveTo(157310, -115569, -1894, moveDistance);
MoveTo(157596, -115392, -1904, moveDistance);
TargetNpc("Pulin", 31543);
Talk();
ClickAndWait("npc_268467008_Quest", "Quest");
ClickAndWait("Quest 621_EggDelivery 31543-1.htm", "I've got some Boiled Eggs for you.");
TargetMe();
UseSkill(411, false, false); -- Stealth
UseSkill(4, false, false); -- Dash
MoveTo(157477, -114395, -1887, moveDistance);
MoveTo(157377, -113970, -1840, moveDistance);
MoveTo(157121, -113352, -1777, moveDistance);
MoveTo(156892, -112769, -1698, moveDistance);
MoveTo(156981, -112213, -2188, moveDistance);
MoveTo(157057, -112136, -2242, moveDistance);
MoveTo(157111, -111977, -2328, moveDistance);
MoveTo(157143, -111703, -2407, moveDistance);
MoveTo(157188, -110512, -2642, moveDistance);
MoveTo(157255, -109919, -2675, moveDistance);
MoveTo(157081, -109769, -2671, moveDistance);
MoveTo(156842, -109490, -2666, moveDistance);
MoveTo(156460, -109322, -2666, moveDistance);
MoveTo(156436, -108661, -2638, moveDistance);
MoveTo(156425, -108210, -2632, moveDistance);
UseSkill(4, false, false); -- Dash
MoveTo(156425, -108194, -2632, moveDistance);
MoveTo(156425, -108194, -2632, moveDistance);
MoveTo(156424, -108146, -2632, moveDistance);
MoveTo(156403, -107570, -2633, moveDistance);
MoveTo(156331, -107226, -2644, moveDistance);
MoveTo(156226, -106637, -2710, moveDistance);
MoveTo(156095, -106334, -2739, moveDistance);
MoveTo(155787, -106082, -2743, moveDistance);
MoveTo(155690, -105744, -2754, moveDistance);
TargetNpc("Naff", 31544);
Talk();
ClickAndWait("npc_268467009_Quest", "Quest");
ClickAndWait("Quest 621_EggDelivery 31544-1.htm", "I have some Boiled Eggs for you!");
TargetMe();
UseSkill(411, false, false); -- Stealth
MoveTo(155653, -105691, -2754, moveDistance);
MoveTo(155475, -105416, -2756, moveDistance);
MoveTo(155254, -105140, -2746, moveDistance);
UseSkill(4, false, false); -- Dash
MoveTo(155248, -105133, -2746, moveDistance);
MoveTo(155248, -105133, -2746, moveDistance);
MoveTo(154869, -104624, -2768, moveDistance);
MoveTo(154640, -104263, -2819, moveDistance);
MoveTo(153293, -102007, -2754, moveDistance);
MoveTo(153119, -101756, -2722, moveDistance);
MoveTo(152740, -101384, -2922, moveDistance);
MoveTo(152459, -101379, -2920, moveDistance);
MoveTo(152321, -101398, -2916, moveDistance);
MoveTo(152185, -101421, -2906, moveDistance);
MoveTo(151998, -101453, -2902, moveDistance);
MoveTo(151998, -101453, -2902, moveDistance);
MoveTo(151646, -101510, -2900, moveDistance);
MoveTo(150079, -101756, -2653, moveDistance);
MoveTo(149127, -101802, -2458, moveDistance);
MoveTo(148842, -101822, -2399, moveDistance);
MoveTo(147469, -102001, -2350, moveDistance);
MoveTo(147317, -102002, -2356, moveDistance);
MoveTo(147104, -101988, -2413, moveDistance);
MoveTo(146447, -102109, -2886, moveDistance);
MoveTo(146097, -102185, -2956, moveDistance);
MoveTo(145241, -102576, -3514, moveDistance);
MoveTo(145234, -102578, -3515, moveDistance);
MoveTo(145234, -102578, -3515, moveDistance);
MoveTo(145219, -102585, -3516, moveDistance);
MoveTo(144794, -102880, -3536, moveDistance);
MoveTo(143861, -103552, -3591, moveDistance);
MoveTo(143197, -104066, -3607, moveDistance);
MoveTo(142538, -104384, -3615, moveDistance);
MoveTo(141551, -104900, -3641, moveDistance);
MoveTo(141187, -105200, -3625, moveDistance);
MoveTo(140830, -105399, -3633, moveDistance);
TargetNpc("Crocus", 31545);
Talk();
ClickAndWait("npc_268467010_Quest", "Quest");
ClickAndWait("Quest 621_EggDelivery 31545-1.htm", "I've got your eggs right here.");
TargetMe();
UseSkill(411, false, false); -- Stealth
UseSkill(4, false, false); -- Dash
MoveTo(140722, -105497, -3633, moveDistance);
MoveTo(140772, -105910, -3621, moveDistance);
MoveTo(140784, -106206, -3627, moveDistance);
MoveTo(140910, -106741, -3626, moveDistance);
MoveTo(140901, -107053, -3635, moveDistance);
MoveTo(140831, -107813, -3659, moveDistance);
MoveTo(140791, -108470, -3641, moveDistance);
MoveTo(141085, -108776, -3592, moveDistance);
MoveTo(141366, -108716, -3585, moveDistance);
MoveTo(141679, -108738, -3578, moveDistance);
MoveTo(141706, -109105, -3592, moveDistance);
TargetNpc("Kuber", 31546);
Talk();
ClickAndWait("npc_268467011_Quest", "Quest");
ClickAndWait("Quest 621_EggDelivery 31546-1.htm", "Egg delivery, sir!");
TargetMe();
UseSkill(411, false, false); -- Stealth
UseSkill(4, false, false); -- Dash
MoveTo(141738, -109368, -3592, moveDistance);
MoveTo(142116, -109260, -3586, moveDistance);
MoveTo(142185, -109240, -3588, moveDistance);
MoveTo(142185, -109240, -3588, moveDistance);
MoveTo(142231, -109227, -3588, moveDistance);
MoveTo(142979, -109024, -3545, moveDistance);
MoveTo(143761, -109014, -3504, moveDistance);
MoveTo(146222, -108939, -3294, moveDistance);
MoveTo(146901, -108905, -3104, moveDistance);
MoveTo(147542, -108875, -2923, moveDistance);
MoveTo(147756, -108876, -2869, moveDistance);
MoveTo(147808, -108876, -2855, moveDistance);
MoveTo(147808, -108876, -2855, moveDistance);
MoveTo(147908, -108877, -2827, moveDistance);
MoveTo(148060, -108892, -2790, moveDistance);
MoveTo(148363, -108914, -2703, moveDistance);
MoveTo(148517, -108941, -2665, moveDistance);
MoveTo(148886, -109019, -2591, moveDistance);
MoveTo(149148, -109163, -2532, moveDistance);
MoveTo(149378, -109525, -2456, moveDistance);
MoveTo(149455, -109793, -2423, moveDistance);
MoveTo(149554, -110642, -2302, moveDistance);
MoveTo(149469, -110953, -2268, moveDistance);
MoveTo(149206, -111255, -2224, moveDistance);
MoveTo(148847, -111725, -2160, moveDistance);
MoveTo(148253, -112553, -2172, moveDistance);
MoveTo(148018, -112895, -2142, moveDistance);
MoveTo(147873, -113132, -2125, moveDistance);
MoveTo(147891, -113228, -2125, moveDistance);
TargetNpc("Beolin", 31547);
Talk();
ClickAndWait("npc_268467012_Quest", "Quest");
ClickAndWait("Quest 621_EggDelivery 31547-1.htm", "I've got your eggs right here.");
TargetMe();
UseSkill(411, false, false); -- Stealth
MoveTo(147587, -113252, -2113, moveDistance);
UseSkill(4, false, false); -- Dash
MoveTo(147614, -113174, -2113, moveDistance);
MoveTo(147755, -113112, -2098, moveDistance);
MoveTo(148002, -112870, -2143, moveDistance);
MoveTo(148055, -112866, -2145, moveDistance);
MoveTo(148609, -112648, -2130, moveDistance);
MoveTo(148947, -112523, -2081, moveDistance);
MoveTo(149151, -112498, -2065, moveDistance);
MoveTo(149472, -112636, -2065, moveDistance);
TargetNpc("Jeremy", 31521);
Talk();
ClickAndWait("npc_268467005_Quest", "Quest");
ClickAndWait("npc_268467005_Quest 621_EggDelivery", "Egg Delivery");
ClickAndWait("Quest 621_EggDelivery 31521-3.htm", "I made all the deliveries.");
MoveTo(149530, -112670, -2065, moveDistance);
TargetMe();
MoveTo(149570, -112597, -2070, moveDistance);TargetMe();
repeat Sleep(1000); until UseItem(736); -- Scroll of Escape
WaitForTeleport();
repeat
Sleep(1000);
until GetDistanceVector(GetMe():GetLocation(), FVector(148560, -55904, -2779))<10000;

-- Goddard Town - Go to grocery
if (GetDistanceVector(GetMe():GetLocation(), FVector(148560, -55904, -2779)) < 200) then
MoveTo(148570, -55912, -2781, moveDistance);
MoveTo(149273, -56432, -2781, moveDistance);
MoveTo(149833, -56941, -2981, moveDistance);
MoveTo(149740, -57106, -2981, moveDistance);
MoveTo(149557, -57685, -2981, moveDistance);
MoveTo(149532, -57739, -2981, moveDistance);
MoveTo(149254, -57871, -2981, moveDistance);
MoveTo(149220, -57870, -2981, moveDistance);
MoveTo(149220, -57870, -2981, moveDistance);
MoveTo(149220, -57870, -2981, moveDistance);
MoveTo(149122, -57684, -2968, moveDistance);
MoveTo(149306, -57502, -2968, moveDistance);

elseif (GetDistanceVector(GetMe():GetLocation(), FVector(149088, -56256, -2779)) < 200) then
MoveTo(149273, -56432, -2781, moveDistance);
MoveTo(149833, -56941, -2981, moveDistance);
MoveTo(149740, -57106, -2981, moveDistance);
MoveTo(149557, -57685, -2981, moveDistance);
MoveTo(149532, -57739, -2981, moveDistance);
MoveTo(149254, -57871, -2981, moveDistance);
MoveTo(149220, -57870, -2981, moveDistance);
MoveTo(149220, -57870, -2981, moveDistance);
MoveTo(149220, -57870, -2981, moveDistance);
MoveTo(149122, -57684, -2968, moveDistance);
MoveTo(149306, -57502, -2968, moveDistance);

elseif (GetDistanceVector(GetMe():GetLocation(), FVector(147664,-56464,-2779)) < 200) then
MoveTo(147684, -56930, -2781, moveDistance);
MoveTo(147700, -57270, -2781, moveDistance);
MoveTo(147711, -57941, -2981, moveDistance);
MoveTo(147840, -58115, -2981, moveDistance);
MoveTo(148553, -58101, -2981, moveDistance);
MoveTo(149127, -57950, -2981, moveDistance);
MoveTo(149184, -57857, -2981, moveDistance);
MoveTo(149149, -57707, -2968, moveDistance);
MoveTo(149320, -57492, -2968, moveDistance);

elseif (GetDistanceVector(GetMe():GetLocation(), FVector(147680,-56928,-2779)) < 200) then
MoveTo(147684, -56930, -2781, moveDistance);
MoveTo(147700, -57270, -2781, moveDistance);
MoveTo(147711, -57941, -2981, moveDistance);
MoveTo(147840, -58115, -2981, moveDistance);
MoveTo(148553, -58101, -2981, moveDistance);
MoveTo(149127, -57950, -2981, moveDistance);
MoveTo(149184, -57857, -2981, moveDistance);
MoveTo(149149, -57707, -2968, moveDistance);
MoveTo(149320, -57492, -2968, moveDistance);

elseif (GetDistanceVector(GetMe():GetLocation(), FVector(146832,-55904,-2779)) < 200) then
MoveTo(147664, -56464, -2779, moveDistance);
MoveTo(147684, -56930, -2781, moveDistance);
MoveTo(147700, -57270, -2781, moveDistance);
MoveTo(147711, -57941, -2981, moveDistance);
MoveTo(147840, -58115, -2981, moveDistance);
MoveTo(148553, -58101, -2981, moveDistance);
MoveTo(149127, -57950, -2981, moveDistance);
MoveTo(149184, -57857, -2981, moveDistance);
MoveTo(149149, -57707, -2968, moveDistance);
MoveTo(149320, -57492, -2968, moveDistance);

elseif (GetDistanceVector(GetMe():GetLocation(), FVector(146368,-56256,-2779)) < 200) then
MoveTo(146832, -55904, -2779, moveDistance);
MoveTo(147664, -56464, -2779, moveDistance);
MoveTo(147684, -56930, -2781, moveDistance);
MoveTo(147700, -57270, -2781, moveDistance);
MoveTo(147711, -57941, -2981, moveDistance);
MoveTo(147840, -58115, -2981, moveDistance);
MoveTo(148553, -58101, -2981, moveDistance);
MoveTo(149127, -57950, -2981, moveDistance);
MoveTo(149184, -57857, -2981, moveDistance);
MoveTo(149149, -57707, -2968, moveDistance);
MoveTo(149320, -57492, -2968, moveDistance);

elseif (GetDistanceVector(GetMe():GetLocation(), FVector(146368,-56256,-2779)) < 200) then
MoveTo(146832, -55904, -2779, moveDistance);
MoveTo(147664, -56464, -2779, moveDistance);
MoveTo(147684, -56930, -2781, moveDistance);
MoveTo(147700, -57270, -2781, moveDistance);
MoveTo(147711, -57941, -2981, moveDistance);
MoveTo(147840, -58115, -2981, moveDistance);
MoveTo(148553, -58101, -2981, moveDistance);
MoveTo(149127, -57950, -2981, moveDistance);
MoveTo(149184, -57857, -2981, moveDistance);
MoveTo(149149, -57707, -2968, moveDistance);
MoveTo(149320, -57492, -2968, moveDistance);
else

if (GetDistanceVector(GetMe():GetLocation(), FVector(150704, -55744, -2979)) < 200) then
MoveTo(149637, -58082, -2992, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(150400, -56752, -2979)) < 200) then
MoveTo(149637, -58082, -2992, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(149872, -57424, -2979)) < 200) then
MoveTo(149637, -58082, -2992, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(144496, -55088, -2979)) < 200) then
MoveTo(144944, -55392, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(144944, -55392, -2979)) < 200) then
MoveTo(144960, -56224, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(144960, -56224, -2979)) < 200) then
MoveTo(144752, -56752, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(144752, -56752, -2979)) < 200) then
MoveTo(145392, -56960, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(145392, -56960, -2979)) < 200) then
MoveTo(145264, -57680, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(145264, -57680, -2979)) < 200) then
MoveTo(145696, -57696, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(145696, -57696, -2979)) < 200) then
MoveTo(146272, -58176, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(146272, -58176, -2979)) < 200) then
MoveTo(147232, -58480, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(147232, -58480, -2979)) < 200) then
MoveTo(147680, -58208, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(147680, -58208, -2979)) < 200) then
MoveTo(148288, -58304, -2979, moveDistance);
end;

if (GetDistanceVector(GetMe():GetLocation(), FVector(148288, -58304, -2979)) < 200) then
MoveTo(149120, -58064, -2979, moveDistance);
end;

MoveTo(149233, -57917, -2981, moveDistance);
MoveTo(149200, -57854, -2981, moveDistance);
MoveTo(149142, -57714, -2968, moveDistance);
MoveTo(149201, -57625, -2968, moveDistance);
MoveTo(149323, -57484, -2968, moveDistance);
end;

TargetNpc("Valentine", 31584);
Talk();
ClickAndWait("npc_268456416_Quest", "Quest");
ClickAndWait("Quest 621_EggDelivery 31584-2.htm", "\"Jeremy sent me.\"");
TargetMe();

MoveTo(149323, -57484, -2968, moveDistance);
MoveTo(149201, -57625, -2968, moveDistance);
MoveTo(149142, -57714, -2968, moveDistance);
MoveTo(149200, -57854, -2981, moveDistance);
MoveTo(149233, -57917, -2981, moveDistance);
MoveTo(148894, -58011, -2981, moveDistance);
MoveTo(148192, -58074, -2981, moveDistance);
MoveTo(147688, -58072, -2976, moveDistance);
MoveTo(147720, -56472, -2776, moveDistance);
MoveTo(147944, -55256, -2728, moveDistance);
TargetNpc("Tatiana", 31275);
MoveTo(GetTarget():GetLocation(), moveDistance);
Talk();
ClickAndWait("npc_268456402_Chat 1", "I want to teleport");
ClickAndWait("npc_268456402_goto 1095", "Hot Springs");
WaitForTeleport();
TargetMe();
ShowToClient("HS Quest", "Finished");



I made that TargetMe(); at the end to check if it does soemthing , but no. If any of u know what i`m doing wrong pls let me know.

One more thing. I tried to make my own .recstart but it doesnt work , i dont see any msg like "recording started" or something , only at .recstop.

Thx in advance
01-06-2016 11:09 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
F.A.Q. L2Tower Stuck and work all time teris19942 0 2,542 12-15-2015 23:38 PM
Last Post: teris19942
  character stand still/stuck OnTheFly 2 2,681 09-22-2015 14:54 PM
Last Post: OnTheFly
  Character stuck kaan22747 2 3,001 01-30-2014 00:06 AM
Last Post: kaan22747
  Auto Attacking/Getting Stuck pedrosergio 1 2,809 08-10-2013 05:31 AM
Last Post: Iznogoud
  Bot keeps getting stuck MoonSeed 6 5,334 05-23-2013 15:02 PM
Last Post: MoonSeed
  Stuck on environment dev0 4 3,855 04-01-2013 19:13 PM
Last Post: dev0
  Stuck Gantz 7 10,158 03-21-2012 09:26 AM
Last Post: Sindarin



User(s) browsing this thread: 1 Guest(s)