mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
31 lines
622 B
Plaintext
31 lines
622 B
Plaintext
/**
|
|
* Title: data_item.script
|
|
* Description: script to be attached to all data items
|
|
*/
|
|
|
|
/***** TRIGGERS ********************************************************/
|
|
trigger OnObjectMenuRequest(obj_id player, menu_info mi)
|
|
{
|
|
menu_info_data mid = mi.getMenuItemByType(menu_info_types.EXAMINE);
|
|
if ( mid == null )
|
|
{
|
|
}
|
|
else
|
|
{
|
|
mid.setServerNotify(true);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuSelect(obj_id player, int item)
|
|
{
|
|
if ( item == menu_info_types.EXAMINE )
|
|
{
|
|
sendSystemMessageTestingOnly(player, "You would be seeing a ficticious data report here..");
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|