Free-play as a pirate, currently at Turks. Guaranteed crash if I talk to anybody other than the barman in the tavern.
I placed a return at the top of the function and I can now speak to people.
Code:
RUNTIME ERROR - file: smuggling.c; line: 962
incorrect argument index
RUNTIME ERROR - file: smuggling.c; line: 962
Bad function argument
RUNTIME ERROR - file: smuggling.c; line: 963
missed attribute: start
RUNTIME ERROR - file: smuggling.c; line: 963
no rAP data
RUNTIME ERROR - file: smuggling.c; line: 964
missed attribute: end
RUNTIME ERROR - file: smuggling.c; line: 964
no rAP data
Code:
string GetPatrolTimeText(ref sisland, int best)
{
aref patrols;
makearef(patrols,sisland.smuggling.patrol);
string patrol = GetAttributeName(GetAttributeN(patrols,best));
string start = GetTimeText(stf(sisland.smuggling.patrol.(patrol).start));
string end = GetTimeText(stf(sisland.smuggling.patrol.(patrol).end));
string text = "between "+start+" and "+end;
return text;
}