function onSpeech( strSaid, myPlayer, myNPC )
{
if( strSaid == "todos sigame" )
{
myNPC.frozen = 0;
myNPC.TurnToward( myPlayer );
myNPC.Follow( myPlayer );
myNPC.TextMessage( "*Seguindo*" );
myPlayer.SysMessage( ""+myNPC.name+" ira segui-lo e defende-lo de qualquer inimigo que lhe ataque!" );
}
if( strSaid == "todos vigiem" )
{
???????????????????????????
?????????????????????????????????
?????????????????????????????????
}
if( strSaid == "todos mate" )
{
myPlayer.CustomTarget( 0, "Selecione o alvo que deseja que sua criatura ataque" );
?????????????????????????????????
?????????????????????????????????
}
if( strSaid == "todos pare" )
{
myNPC.TurnToward( myPlayer );
myNPC.frozen = 1;
myNPC.TextMessage( "*Parado*" );
myPlayer.SysMessage( ""+myNPC.name+" aguadara ate que voce diga novos comandos a ele!" );
}
}
Processes:
1- The npc be invoked (such as elemental of fire, Earth and other), they arise/appear with their animations.(in all of them is the same animation, the number 12)
2- If you say/talk "follow me" near him, the npc will follow the owner of it, in the case who invoked it (same for all numbers below).
3- If you say/talk "attack", appear a target, and on the character or player that you select, it will start an attack.
4- If you say/talk "protect me", he will attack the first target that start an attack against you.
5- If you say/talk "stopped", he will stop following you or attack the target that you ordered attack.
I'm interested more in numbers 2, 3, 4, 5, the number 1 would not be so important, but would be cool, hehehe.
Is this, if possible, and someone animate to do this...