yayafan
Member
Hello,
I try to make a toolbar for players, for example, player click button " house commands " ,then there is a gump list all the house commands, such as "I wish to lock this down".
I defined this "I wish to lock this down" button in OnResponse to say this sentence, the result is in game the character will speech this sentence, but only sentence on head, not target selection step. (if I input this sentence by keyboard, there will be target selection to ask me to lock something)
Here is my OnResponse code for button 1:
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
switch( info.ButtonID )
{
case 1:
{
from.DoSpeech("I wish to lock this down", new int[], MessageType.Regular, from.SpeechHue ) ;
break;
}
Does anyone know what I did wrong ? I've tried use CommandSystem.Handle , but it seems this function only works with commands ( like [admin ).
I try to make a toolbar for players, for example, player click button " house commands " ,then there is a gump list all the house commands, such as "I wish to lock this down".
I defined this "I wish to lock this down" button in OnResponse to say this sentence, the result is in game the character will speech this sentence, but only sentence on head, not target selection step. (if I input this sentence by keyboard, there will be target selection to ask me to lock something)
Here is my OnResponse code for button 1:
public override void OnResponse( NetState state, RelayInfo info )
{
Mobile from = state.Mobile;
switch( info.ButtonID )
{
case 1:
{
from.DoSpeech("I wish to lock this down", new int[], MessageType.Regular, from.SpeechHue ) ;
break;
}
Does anyone know what I did wrong ? I've tried use CommandSystem.Handle , but it seems this function only works with commands ( like [admin ).