mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
38 lines
1005 B
Plaintext
38 lines
1005 B
Plaintext
/* Title: bazaar.script
|
|
* Description: script for bazaar menu options; to be attached to bazaar terminals
|
|
*/
|
|
|
|
/***** INHERITS ********************************************************/
|
|
|
|
inherits terminal.base.base_terminal;
|
|
|
|
/***** CONSTANTS *******************************************************/
|
|
|
|
const string_id SID_BAZAAR_OPTIONS = new string_id("terminal_ui", "bazaar_options");
|
|
|
|
/***** TRIGGERS ********************************************************/
|
|
|
|
trigger OnObjectMenuRequest(obj_id player, menu_info mi)
|
|
{
|
|
return super.OnObjectMenuRequest(self, player, mi);
|
|
}
|
|
|
|
trigger OnObjectMenuSelect(obj_id player, int item)
|
|
{
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnRequestAuctionFee( obj_id who, obj_id location, obj_id item, boolean premium, modifiable_int amount )
|
|
{
|
|
debugSpeakMsg( self, "test " + getName( who ) );
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnInitialize()
|
|
{
|
|
setOwner (self, self);
|
|
attachScript(self, "planet_map.map_loc_attach");
|
|
return super.OnInitialize(self);
|
|
}
|
|
|