case "tavern_keeper":
homelocation = pchar.location;
switch(homelocation)
{
case "Redmond_tavern":
characters[GetCharacterIndex("Charles Windem")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Charles Windem"));
LAi_SetActorType(characterFromID("Charles Windem"));
LAi_ActorDialogNow(characterFromID("Charles Windem"), pchar, "tavern_keeper_2", -1);
break;
case "Oxbay_tavern":
characters[GetCharacterIndex("Everard Gordon")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Everard Gordon"));
LAi_SetActorType(characterFromID("Everard Gordon"));
LAi_ActorDialogNow(characterFromID("Everard Gordon"), pchar, "tavern_keeper_2", -1);
break;
case "Greenford_tavern":
characters[GetCharacterIndex("Simon Hanpool")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Simon Hanpool"));
LAi_SetActorType(characterFromID("Simon Hanpool"));
LAi_ActorDialogNow(characterFromID("Simon Hanpool"), pchar, "tavern_keeper_2", -1);
break;
case "Falaise_De_Fleur_tavern":
characters[GetCharacterIndex("Antoine Lebretton")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Antoine Lebretton"));
LAi_SetActorType(characterFromID("Antoine Lebretton"));
LAi_ActorDialogNow(characterFromID("Antoine Lebretton"), pchar, "tavern_keeper_2", -1);
break;
case "Muelle_tavern":
characters[GetCharacterIndex("Claudio Burrieza")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Claudio Burrieza"));
LAi_SetActorType(characterFromID("Claudio Burrieza"));
LAi_ActorDialogNow(characterFromID("Claudio Burrieza"), pchar, "tavern_keeper_2", -1);
break;
case "Douwesen_tavern":
characters[GetCharacterIndex("Friedrich Corleis")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Friedrich Corleis"));
LAi_SetActorType(characterFromID("Friedrich Corleis"));
LAi_ActorDialogNow(characterFromID("Friedrich Corleis"), pchar, "tavern_keeper_2", -1);
break;
case "Pirate_tavern":
characters[GetCharacterIndex("Mario Figuiera")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Mario Figuiera"));
LAi_SetActorType(characterFromID("Mario Figuiera"));
LAi_ActorDialogNow(characterFromID("Mario Figuiera"), pchar, "tavern_keeper_2", -1);
break;
case "Conceicao_tavern":
characters[GetCharacterIndex("Duarte Correja")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Duarte Correja"));
LAi_SetActorType(characterFromID("Duarte Correja"));
LAi_ActorDialogNow(characterFromID("Duarte Correja"), pchar, "tavern_keeper_2", -1);
break;
case "Smugglers_tavern":
characters[GetCharacterIndex("Fabiao Dunga")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Fabiao Dunga"));
LAi_SetActorType(characterFromID("Fabiao Dunga"));
LAi_ActorDialogNow(characterFromID("Fabiao Dunga"), pchar, "tavern_keeper_2", -1);
break;
case "QC_tavern":
characters[GetCharacterIndex("Ines Diaz")].dialog.currentnode = "tavern_keeper";
LAi_ActorWaitDialog(pchar, characterFromID("Ines Diaz"));
LAi_SetActorType(characterFromID("Ines Diaz"));
LAi_ActorDialogNow(characterFromID("Ines Diaz"), pchar, "tavern_keeper_2", -1);
break;
}
break;
case "tavern_keeper_2":
homelocation = pchar.location;
switch(homelocation)
{
case "Redmond_tavern":
characters[GetCharacterIndex("Charles Windem")].dialog.currentnode = "First time";
LAi_SetBarmanType(characterFromID("Charles Windem"));
break;
case "Oxbay_tavern":
characters[GetCharacterIndex("Everard Gordon")].dialog.currentnode = "First time";
LAi_SetBarmanType(characterFromID("Everard Gordon"));
break;
case "Greenford_tavern":
LAi_SetBarmanType(characterFromID("Simon Hanpool"));
characters[GetCharacterIndex("Simon Hanpool")].dialog.currentnode = "second time";
break;
case "Falaise_De_Fleur_tavern":
LAi_SetBarmanType(characterFromID("Antoine Lebretton"));
characters[GetCharacterIndex("Antoine Lebretton")].dialog.currentnode = "second time";
break;
case "Muelle_tavern":
LAi_SetBarmanType(characterFromID("Claudio Burrieza"));
characters[GetCharacterIndex("Claudio Burrieza")].dialog.currentnode = "second time";
break;
case "Douwesen_tavern":
LAi_SetBarmanType(characterFromID("Friedrich Corleis"));
characters[GetCharacterIndex("Friedrich Corleis")].dialog.currentnode = "second time";
break;
case "Pirate_tavern":
LAi_SetBarmanType(characterFromID("Mario Figuiera"));
characters[GetCharacterIndex("Mario Figuiera")].dialog.currentnode = "second time";
break;
case "Conceicao_tavern":
LAi_SetBarmanType(characterFromID("Duarte Correja"));
characters[GetCharacterIndex("Duarte Correja")].dialog.currentnode = "second time";
break;
case "Smugglers_tavern":
LAi_SetBarmanType(characterFromID("Fabiao Dunga"));
characters[GetCharacterIndex("Fabiao Dunga")].dialog.currentnode = "second time";
break;
case "QC_tavern":
LAi_SetBarmanType(characterFromID("Ines Diaz"));
characters[GetCharacterIndex("Ines Diaz")].dialog.currentnode = "second time";
break;
}
break;