12-31-2013, 07:05 AM
Hi guys,
I have created a script where my bot character gets to the training spot but as soon as he get there he forgets the x,y,z coordinates and the PvE Attack is disabled. Any advice please?
I have created a script where my bot character gets to the training spot but as soon as he get there he forgets the x,y,z coordinates and the PvE Attack is disabled. Any advice please?
Code:
SCONFIG = L2TConfig.GetConfig();
SCONFIG_FILE = GetDir() .. '\\scripts\\swamp3.l2b';
L2TConfig.SaveConfig(SCONFIG_FILE);
if (GetMe():GotBuff(15649) == false) and (GetZoneType() == 15) then
Sleep(3000);
UseItem(736); --Use SOE.
WaitForTeleport();
repeat until false;
end;
moveDistance = 30;
if(GetZoneType() == L2ZoneType.PEACEFUL) then
Sleep(600);
SetPause(true);
moveDistance = 30;
moveDistance = 30;
MoveTo(44869, -47829, -801, moveDistance);
MoveTo(44073, -47878, -801, moveDistance);
TargetNpc("Adventurers' Guide", 32327);
MoveTo(43532, -47735, -801, moveDistance);
Talk();
ClickAndWait("menu_select?ask=-7&reply=6", "\"Is there anything you can do to strengthen me?\"");
ClickAndWait("menu_select?ask=-7&reply=21", "\"Warrior's Harmony, please.\"");
ClearTargets();
TargetNpc("Ilyana", 31320);
MoveTo(43532, -47735, -801, moveDistance);
MoveTo(43622, -47702, -801, moveDistance);
Talk();
ClickAndWait("teleport_request", "\"I want to teleport.\"");
ClickAndWait("teleport_4717317184_12_57_1209024877_2", "1010565 - 1500 1000308");
MoveTo(43622, -47702, -801, moveDistance);
WaitForTeleport();
-- Quest state changed, ID: 31, STATE: 1
-- Quest state changed, ID: 470, STATE: 1
-- Quest state changed, ID: 10414, STATE: 1
-- Get new quest item, ID: 17822, COUNT: 20
-- Get new quest item, ID: 17822, COUNT: 20
-- Get new quest item, ID: 17822, COUNT: 20
-- Get new quest item, ID: 17822, COUNT: 20
MoveTo(69345, -50208, -3292, moveDistance);
MoveTo(69625, -50085, -3287, moveDistance);
MoveTo(70859, -49593, -3228, moveDistance);
MoveTo(72292, -48993, -3204, moveDistance);
MoveTo(72702, -48732, -3204, moveDistance);
MoveTo(73039, -48399, -3199, moveDistance);
MoveTo(73442, -47732, -3177, moveDistance);
MoveTo(73169, -47196, -3180, moveDistance);
MoveTo(73066, -47123, -3184, moveDistance);
MoveTo(72622, -46796, -3209, moveDistance);
MoveTo(72335, -46463, -3239, moveDistance);
MoveTo(72333, -46348, -3239, moveDistance);
MoveTo(72327, -46224, -3236, moveDistance);
MoveTo(72321, -46087, -3233, moveDistance);
MoveTo(72307, -45858, -3233, moveDistance);
MoveTo(72302, -45784, -3233, moveDistance);
MoveTo(72299, -45699, -3233, moveDistance);
MoveTo(72299, -45637, -3233, moveDistance);
MoveTo(72304, -45541, -3233, moveDistance);
SCONFIG.targeting.centerPoint.X = 72299;
SCONFIG.targeting.centerPoint.Y = -45389;
SCONFIG.targeting.centerPoint.Z = -3233;
SetPause(false);
MoveTo(72260, -45259, -3233, moveDistance);
MoveTo(72252, -45270, -3233, moveDistance);
L2TConfig.LoadConfig(SCONFIG_FILE);
end;