Help on NPC call

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
dieg0h4x
Noob
Noob
Posts: 1
Joined: 15 Jun 2016, 09:05
Noob?: Yes

Help on NPC call

#1 Post by dieg0h4x »

Hello guys,
src/Commands.pm

Line 4821, the code above gets npc interations, then results what in following in red , ok....

Code: Select all

		my $msg = center(T(" Responses teste123 (").getNPCName($talk{ID}).") ", 40, '-') ."\n" .
			TF("#  Response\n");
		for (my $i = 0; $i < @{$talk{'responses'}}; $i++) {
			$msg .= swrite(
			"@< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",
			[$i, $talk{responses}[$i]]);
		}
		$msg .= ('-'x40) . "\n";
		message $msg, "list";
Funcionária Kafra: [Kafra Recepcionista]
Funcionária Kafra: Bem-vindo à Corporação Kafra, nós sempre estamos ao seu lado.
Funcionária Kafra: Em que posso ajudá-lo?
Funcionária Kafra: Continuando a conversa automaticamente.

Responses teste123 (Funcionária Kafra)
# Response
0 Salvar
1 Usar Armazém
2 Usar Teleporte
3 Alugar um carrinho
4 Ver outras informações
5 Cancelar
6 Cancel Chat
----------------------------------------

Funcionária Kafra: Digite 'talk resp #' para escolher uma resposta.

but, i need to identify wheres the call code about in gree color, where it's called


thanks in advance

Locked