Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
82
_module/nss/socket_cfg.nss
Normal file
82
_module/nss/socket_cfg.nss
Normal file
@@ -0,0 +1,82 @@
|
||||
/************************************************************************
|
||||
* 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<><63><EFBFBD>>Socket</c>: ";
|
||||
const string SOCKET_DESCRIPTION_SOCKET_EMPTY = "<c<><63><EFBFBD>>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";
|
||||
Reference in New Issue
Block a user