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

Post Reply 
 
Thread Rating:
  • 7 Vote(s) - 3.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add Path Points using script
Author Message
tdogg Offline
Expired VIP Member
**

Posts: 2
Joined: Aug 2013
Reputation: 0
Version: 1.4.2.133
Post: #1
Add Path Points using script

I have been scouring this forum for days and i cant find any info on how to add path point by using a script, could anyone please tell me how this can be done, i would be very gratefull.
09-03-2013 02:07 AM
Find all posts by this user Quote this message in a reply
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,632
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #2
RE: Add Path Points using script

//recstart

when done //recstop

Heart
09-03-2013 08:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
tdogg Offline
Expired VIP Member
**

Posts: 2
Joined: Aug 2013
Reputation: 0
Version: 1.4.2.133
Post: #3
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.)
09-03-2013 10:08 AM
Find all posts by this user Quote this message in a reply
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,632
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #4
RE: Add Path Points using script

yes there iss in tower ui add pathpoint

Heart
09-03-2013 17:29 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Get Points. ycz 3 2,618 07-24-2015 10:36 AM
Last Post: PvPSuite



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