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

67 lines
2.0 KiB
Plaintext

/**********************************************************************
* Copyright (c)2000-2002 Sony Online Entertainment Inc.
* All Rights Reserved
*
* Title: terminal_wound.script
* Description: script for the beta wound terminal. Ow!
* @author $Author:$
* @version $Revision:$
**********************************************************************/
/***** INCLUDES ********************************************************/
/***** CONSTANTS *******************************************************/
const string_id SID_INFLICT_DAMAGE = new string_id("wound_terminal", "inflict_damage");
const string_id SID_INFLICT_WOUND = new string_id("wound_terminal", "inflict_wound");
const string_id SID_INFLICT_WOUND_HEALTH = new string_id("wound_terminal", "heal_wound_health");
const string_id SID_HEAL_BATTLE = new string_id("wound_terminal", "heal_battle_fatigue");
/***** TRIGGERS ********************************************************/
trigger OnObjectMenuRequest(obj_id player, menu_info mi)
{
mi.addRootMenu(menu_info_types.SERVER_MENU1, SID_INFLICT_DAMAGE);
mi.addRootMenu(menu_info_types.SERVER_MENU2, SID_INFLICT_WOUND);
mi.addRootMenu(menu_info_types.SERVER_MENU3, SID_INFLICT_WOUND_HEALTH);
mi.addRootMenu(menu_info_types.SERVER_MENU4, SID_HEAL_BATTLE);
return SCRIPT_CONTINUE;
}
trigger OnObjectMenuSelect(obj_id player, int item)
{
if (isGod(player) || hasObjVar(player, "beta.terminal_ok"))
{
if (item == menu_info_types.SERVER_MENU1)
{
addAttribModifier(player, HEALTH, -500, 0.0f, 0.0f, MOD_POOL);
}
if (item == menu_info_types.SERVER_MENU4)
{
healShockWound(player, 1000);
}
return SCRIPT_CONTINUE;
}
else
{
sendSystemMessageTestingOnly(player, "Only authorized users may access this terminal.");
return SCRIPT_CONTINUE;
}
}
/***** MESSAGEHANDLERS *************************************************/
/***** COMMANDHANDLERS *************************************************/
/***** FUNCTIONS **************************************************/