Files
dsrc/sku.0/sys.server/compiled/game/script/npc/celebrity/captain_eso.script
T
2013-09-10 23:17:15 -07:00

155 lines
4.8 KiB
Plaintext

include library.ai_lib;
include library.hue;
include library.colors;
include library.chat;
include library.factions;
include library.skill;
const string CONVO = "celebrity/captain_eso";
trigger OnAttach ()
{
obj_id shirt = createObject ("object/tangible/wearables/armor/marine/armor_marine_chest_plate.iff", self, "");
obj_id pants = createObject ("object/tangible/wearables/pants/pants_s07.iff", self, "");
obj_id boots = createObject ("object/tangible/wearables/armor/marine/armor_marine_boots.iff", self, "");
//obj_id hat = createObject ("object/tangible/wearables/hat/hat_s14.iff", self, "");
obj_id gloves = createObject ("object/tangible/wearables/gloves/gloves_s02.iff", self, "");
hue.setColor (shirt, 1, 187);
hue.setColor (shirt, 2, 195);
hue.setColor (pants, 1, 187);
hue.setColor (pants, 2, 195);
hue.setColor (boots, 1, 54);
hue.setColor (gloves, 1, 43);
//hue.setColor (hat, 1, 187);
setName (self, "Captain Eso");
ai_lib.setDefaultCalmBehavior( self, ai_lib.BEHAVIOR_SENTINEL );
debugSpeakMsg (self, "What do you call assassins who accuse assassins?");
return SCRIPT_CONTINUE;
}
trigger OnStartNpcConversation (obj_id speaker)
{
if (ai_lib.isInCombat(self) || ai_lib.isInCombat(speaker))
return SCRIPT_OVERRIDE;
string_id greeting = new string_id (CONVO,"npc_1");
string_id response[] = new string_id [2];
response[0] = new string_id (CONVO, "player_1");
response[1] = new string_id (CONVO,"player_2");
npcStartConversation (speaker, self, "celebConvo", greeting, response);
return SCRIPT_CONTINUE;
}
trigger OnNpcConversationResponse (string convo, obj_id player, string_id response)
{
if ( response.getAsciiId().equals("player_1")) //
{
string_id message = new string_id (CONVO, "npc_2");
npcSpeak(player, message);
npcRemoveConversationResponse(player, new string_id (CONVO,"player_1")); //
npcRemoveConversationResponse(player, new string_id (CONVO,"player_2")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_3")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_4")); //
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_2") ) //
{
string_id message = new string_id (CONVO, "npc_3");//
npcSpeak(player, message);
npcRemoveConversationResponse(player, new string_id (CONVO,"player_1")); //
npcRemoveConversationResponse(player, new string_id (CONVO,"player_2")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_5")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_6")); //
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_3")) //
{
string_id message = new string_id (CONVO, "npc_6");//
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_4") ) //
{
string_id message = new string_id (CONVO, "npc_7");//
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_5")) //
{
string_id message = new string_id (CONVO, "npc_4");
npcSpeak(player, message);
npcRemoveConversationResponse(player, new string_id (CONVO,"player_5")); //
npcRemoveConversationResponse(player, new string_id (CONVO,"player_6")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_7")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_8")); //
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_6") ) //
{
string_id message = new string_id (CONVO, "npc_5");//
npcSpeak(player, message);
npcRemoveConversationResponse(player, new string_id (CONVO,"player_5")); //
npcRemoveConversationResponse(player, new string_id (CONVO,"player_6")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_9")); //
npcAddConversationResponse( player, new string_id (CONVO, "player_10")); //
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_7")) //
{
string_id message = new string_id (CONVO, "npc_8");//
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_8") ) //
{
string_id message = new string_id (CONVO, "npc_9");//
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_9")) //
{
string_id message = new string_id (CONVO, "npc_10");//
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
if ( response.getAsciiId().equals("player_10") ) //
{
string_id message = new string_id (CONVO, "npc_11");//
npcSpeak(player, message);
npcEndConversation(player);
return SCRIPT_CONTINUE;
}
return SCRIPT_CONTINUE;
}