Files
dsrc/sku.0/sys.server/compiled/game/script/structure/municipal/cantina.script
T
2013-09-10 23:17:15 -07:00

51 lines
1.6 KiB
Plaintext

/**********************************************************************
* Copyright (c)2000-2002 Sony Online Entertainment Inc.
* All Rights Reserved
*
* Title: hospital_heal
* Description: allows the slow healing of wounds and shock for all within
* the building.
* @author $Author:$
* @version $Revision:$
**********************************************************************/
/***** FUNCTIONS *******************************************************/
// This script is empty so that it can be attached to structures for gold master
// and later augmented to add functionality.
include library.create;
include library.ai_lib;
trigger OnInitialize ()
{
location behindBar = getLocation (self);
string planet = behindBar.area;
obj_id cantina = getCellId(self, "cantina");
if (cantina == null)
{
return SCRIPT_OVERRIDE;
}
behindBar = new location (8.54f, -0.89f, 0.14f, planet, cantina);
obj_id bartender = create.staticObject ("bartender", behindBar);
setYaw (bartender, 87);
setInvulnerable(bartender, true);
ai_lib.setDefaultCalmBehavior( self, ai_lib.BEHAVIOR_SENTINEL );
// The cantina in Nym's Stronghold has this script attached to it
// We do not want to attach the Imperial Crackdown script to the cantina in Nym's Stronghold
if(hasScript(self, "theme_park.lok.cantina")) {
if(hasScript(self, "city.imperial_crackdown.crackdown_cantina")) {
detachScript(self, "city.imperial_crackdown.crackdown_cantina");
}
return SCRIPT_CONTINUE;
}
attachScript (self, "city.imperial_crackdown.crackdown_cantina");
return SCRIPT_CONTINUE;
}