RE: Add Path Points using script
I tried that unfortunely, ie
SCONFIG = L2TConfig.GetConfig();
SCONFIG_FILE = GetDir() .. '\\scripts\\b.l2b';
L2TConfig.SaveConfig(SCONFIG_FILE);
moveDistance = 30;
MoveTo(168837, -39710, -3524, moveDistance);
local tmpPoint = L2TConfig.L2PathPoint();
tmpPoint.X = 169182;
tmpPoint.Y = -39534;
tmpPoint.Z = -3515;
tmpPoint.range = 900;
tmpPoint.type = L2TConfig.ETargetingRangeType.TRT_CIRCLE;
SCONFIG.targeting.pathPoints:Add(tmpPoint);
MoveTo(169382, -39432, -3507, moveDistance);
MoveTo(169520, -39402, -3502, moveDistance);
MoveTo(169634, -39379, -3495, moveDistance);
MoveTo(169768, -39352, -3483, moveDistance);
MoveTo(169898, -39326, -3466, moveDistance);
local tmpPoint = L2TConfig.L2PathPoint();
tmpPoint.X = 169939;
tmpPoint.Y = -39318;
tmpPoint.Z = -3456;
tmpPoint.range = 900;
tmpPoint.type = L2TConfig.ETargetingRangeType.TRT_CIRCLE;
SCONFIG.targeting.pathPoints:Add(tmpPoint);
MoveTo(170036, -39299, -3443, moveDistance);
MoveTo(170164, -39273, -3443, moveDistance);
MoveTo(170295, -39247, -3436, moveDistance);
MoveTo(170423, -39221, -3443, moveDistance);
MoveTo(170423, -39221, -3443, moveDistance);
local tmpPoint = L2TConfig.L2PathPoint();
tmpPoint.X = 170919;
tmpPoint.Y = -39074;
tmpPoint.Z = -3511;
tmpPoint.range = 900;
tmpPoint.type = L2TConfig.ETargetingRangeType.TRT_CIRCLE;
SCONFIG.targeting.pathPoints:Add(tmpPoint);
MoveTo(171183, -38996, -3538, moveDistance);
MoveTo(171433, -38836, -3547, moveDistance);
SCONFIG.targeting.closePathPoint = false;
SCONFIG.targeting.closePathPoint = true;
local tmpPoint = L2TConfig.L2PathPoint();
tmpPoint.X = 171955;
tmpPoint.Y = -38357;
tmpPoint.Z = -3483;
tmpPoint.range = 900;
tmpPoint.type = L2TConfig.ETargetingRangeType.TRT_CIRCLE;
SCONFIG.targeting.pathPoints:Add(tmpPoint);
MoveTo(171955, -38357, -3483, moveDistance);
L2TConfig.LoadConfig(SCONFIG_FILE);
however he runs from point to point but the path points are not added to his list. I wondered if maybe there was I command to add path points directly to the list ie
if I want the point (148417, -48019, -5459)
something like
mobtargetpathpointadd (148417, -48019, -5459)
however I need to know correct format etc as this does not work
thanks in advance for any help
(This post was last modified: 09-03-2013 10:13 AM by tdogg.)
|