83 lines
3.9 KiB
Plaintext
83 lines
3.9 KiB
Plaintext
/************************************************************************
|
||
* script name : socket_cfg
|
||
* created by : eyesolated
|
||
* date : 2019/3/21
|
||
*
|
||
* description : Configuration script for Socketing
|
||
*
|
||
* changes : 2019/3/21 - eyesolated - Initial creation
|
||
************************************************************************/
|
||
|
||
/*******************************************************************************
|
||
* General Configuration Settings
|
||
*
|
||
* This section covers generic settings regarding Socketing.
|
||
******************************************************************************/
|
||
|
||
// Defines the maximum number of sockets available on any single item
|
||
const int SOCKET_MAXIMUM = 3;
|
||
|
||
// String to be displayed in an item description for a Socket
|
||
const string SOCKET_DESCRIPTION_SOCKET = "<cÁåþ>Socket</c>: ";
|
||
const string SOCKET_DESCRIPTION_SOCKET_EMPTY = "<c´´´>empty</c>";
|
||
|
||
/*******************************************************************************
|
||
* Structs
|
||
*
|
||
* This section covers all structs for use in the socketing system
|
||
******************************************************************************/
|
||
struct SOCKET_STRUCT_SOCKET_INFO
|
||
{
|
||
string Item_Socketed_ResRef;
|
||
string Item_Socketed_Tag;
|
||
string Item_Socketed_Name;
|
||
};
|
||
|
||
/*******************************************************************************
|
||
* Internal Constants
|
||
*
|
||
* This section covers internal constants for use in the socketing system
|
||
******************************************************************************/
|
||
const string SOCKET_SOCKETED_NONE = "sock_Socket_None";
|
||
|
||
// Item categories for defining properties (BitMask)
|
||
const int SOCKET_ITEMCATEGORY_UNKNOWN = 0;
|
||
const int SOCKET_ITEMCATEGORY_MELEE = 1;
|
||
const int SOCKET_ITEMCATEGORY_RANGED_BOW = 2;
|
||
const int SOCKET_ITEMCATEGORY_RANGED_CROSSBOW = 4;
|
||
const int SOCKET_ITEMCATEGORY_SHIELD = 8;
|
||
const int SOCKET_ITEMCATEGORY_ARMOR = 16;
|
||
const int SOCKET_ITEMCATEGORY_HELMET = 32;
|
||
const int SOCKET_ITEMCATEGORY_BELT = 64;
|
||
const int SOCKET_ITEMCATEGORY_JEWELRY_RING = 128;
|
||
const int SOCKET_ITEMCATEGORY_JEWELRY_AMULET = 256;
|
||
const int SOCKET_ITEMCATEGORY_CLOAK = 512;
|
||
const int SOCKET_ITEMCATEGORY_BOOTS = 1024;
|
||
const int SOCKET_ITEMCATEGORY_BRACERS = 2048;
|
||
const int SOCKET_ITEMCATEGORY_GLOVES = 4096;
|
||
|
||
// Predefined constants
|
||
const int SOCKET_ITEMCATEGORY_GROUP_ALL = 8191;
|
||
const int SOCKET_ITEMCATEGORY_GROUP_WEAPONS = 7;
|
||
const int SOCKET_ITEMCATEGORY_GROUP_JEWELRY = 384;
|
||
|
||
/*******************************************************************************
|
||
* Tables
|
||
*
|
||
* This section covers all SQL variables for use in the socketing system
|
||
******************************************************************************/
|
||
const string SOCKET_TABLE_BASE = "socket_Base";
|
||
|
||
/*******************************************************************************
|
||
* Local Variables
|
||
*
|
||
* This section covers the local variables used for the various functions.
|
||
******************************************************************************/
|
||
const string SOCKET_VAR_SOCKET_RESREF = "sock_Socket_resref";
|
||
const string SOCKET_VAR_SOCKET_TAG = "sock_Socket_tag";
|
||
const string SOCKET_VAR_SOCKET_NAME = "sock_Socket_name";
|
||
|
||
const string SOCKET_VAR_ITEM_DESCRIPTION = "sock_item_desc";
|
||
|
||
const string SOCKET_VAR_ITEM_LEVEL = "Socket Item Level";
|