It turns out it was in the middle of the ocean (at the restocking waypoint!) and could not get back because its Endpoint was not set properly - yes, a bug. The script, wp_2_to_14 in module F_X2 is missing a line of code:
SetLocalInt(OBJECT_SELF, "nEndpoint", 14);
At least this was so in my install, v1.23. Fix: compile this and put it in your override before the caravan is built,
--begin--
// 'wp_2_to_14'
/* Caravan Routing script */
// NLC 7/22/08
#include "ginc_wp"
#include "kinc_trade"
void main()
{
SetLocalInt(OBJECT_SELF, "nEndpoint", 14); // kL add
int iCurrentWP = GetCurrentWaypoint(); // the waypoint we just arrived at
int bReturn = GetLocalInt(OBJECT_SELF, "bReturn");
switch (iCurrentWP)
{
case 1:
ProcessCaravanOrigin();
break;
case 2:
if (bReturn) JumpToNextWP(1);
else SetNextWaypoint(3);
break;
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
if (bReturn) SetNextWaypoint(iCurrentWP - 1);
else SetNextWaypoint(iCurrentWP + 1);
break;
case 14:
if (bReturn) SetNextWaypoint(iCurrentWP - 1);
else JumpToNextWP(1);
break;
}
}
--end--Or if the caravan from Leilon to CR Keep is already built and gone missing, try this (it's based on what I used to fix mine, but not tested in this form),
--begin--
// 'kl_carafix', 2011 Mar 24
#include "x0_i0_walkway"
void main()
{
object oPC = GetFirstPC(FALSE);
object oCaravan = GetObjectByTag("nx2_caravan_2_14");
if (GetIsObjectValid(oCaravan))
{
SetLocalInt(oCaravan, "nEndpoint", 14);
AssignCommand(oCaravan, JumpToObject(oPC));
SetWWPController("2_to_14", oCaravan);
AssignCommand(oCaravan, SetNextWaypoint(GetLocalInt(oCaravan, VAR_WP_NEXT)));
AssignCommand(oCaravan, WalkWayPoints(TRUE));
}
else SendMessageToPC(oPC, "Sorry, no workie.");
}
--end--Run rs kl_carafix from the console. Hopefully Google will snatch this ... right?
Ps. What's funny, though, is the closest I could find with regard to a bugSearch was just that (the last post in the thread). What's funnier is that this particular issue should appear only with relevance to the Leilon <-> CR Keep caravan, since I checked the other wp_x_to_y scripts and these were fine.
anyway, its rollin now: "Greetings! You honor us with your presence."





Retour en haut







