generated from Jaysyn/ModuleTemplate
24 lines
589 B
Plaintext
24 lines
589 B
Plaintext
// Travel Builder
|
|
|
|
// Example of an OnPlayerChat script for Travel system menu
|
|
|
|
// Author : Proleric
|
|
|
|
// Modified : 13-Mar-2007
|
|
|
|
// The example conversation xx_menu contains one option that offers a travel
|
|
// shortcut menu to the PC. You can add other chat menu options that are
|
|
// specific to your module to that conversation.
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCChatSpeaker();
|
|
string sChat = GetPCChatMessage();
|
|
|
|
if (GetStringLowerCase(sChat) == "menu")
|
|
{
|
|
AssignCommand(oPC, ActionStartConversation(oPC, "xx_travel_menu", FALSE, FALSE));
|
|
SetPCChatMessage();
|
|
}
|
|
}
|