Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
32
_module/nss/socket_ini.nss
Normal file
32
_module/nss/socket_ini.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
/************************************************************************
|
||||
* script name : socket_ini
|
||||
* created by : eyesolated
|
||||
* date : 2019/3/21
|
||||
*
|
||||
* description : Central initialization script for Socketing
|
||||
*
|
||||
* changes : 2019/3/21 - eyesolated - Initial creation
|
||||
************************************************************************/
|
||||
#include "socket_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
// If all tables exist, do not (re)initialize
|
||||
if (socket_GetTablesExist())
|
||||
{
|
||||
object oLog = GetObjectByTag("LOG");
|
||||
SetDescription(oLog, GetDescription(oLog) + "\nSOCKET - database already exists.");
|
||||
WriteTimestampedLogEntry("SOCKET - database already exists - skipping initialization.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Drop any existing tables
|
||||
socket_DropTables();
|
||||
|
||||
// Create table
|
||||
socket_CreateTables();
|
||||
|
||||
// Add Items
|
||||
socket_AddSocketableItem("rune_isa", SOCKET_ITEMCATEGORY_GROUP_WEAPONS, ITEM_PROPERTY_DAMAGE_BONUS, IP_CONST_DAMAGETYPE_COLD);
|
||||
socket_AddSocketableItem("rune_isa", SOCKET_ITEMCATEGORY_GROUP_ALL - SOCKET_ITEMCATEGORY_GROUP_WEAPONS, ITEM_PROPERTY_DAMAGE_RESISTANCE, IP_CONST_DAMAGETYPE_COLD);
|
||||
}
|
||||
Reference in New Issue
Block a user