Files
Anphillia_PRC8/_module/nss/socket_cfg.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

83 lines
3.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/************************************************************************
* 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";