mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
Added a new feature that allows shard admins/scripters to mark specific NPCs as "permanently awake", in order to keep UOX3 running scripts, timers and updates for these NPCs even if they are in regions that are "asleep" because of no nearby online players. A new UOX.INI setting has been added which can turn this feature on/off: ALLOWAWAKENPCS=0/1 // If disabled, NPCs marked as awake are treated as regular NPCs New NPC DFN tag added to mark an NPC as awake or not: AWAKE=0/1 // 0 = disabled (default), 1 = enabled New Character JS Property added to toggle an NPC's awake state via JS: .isAwake // 0 = disabled (default), 1 = enabled 'get and 'set commands updated with the new awake property: 'get awake 'set awake 0/1 IP of shard in shard list is now sent to client in little endian instead of big endian, which should correct the ping displayed in shard list, which previously showed a timeout (punt)
84 lines
No EOL
2.1 KiB
C++
84 lines
No EOL
2.1 KiB
C++
//o-----------------------------------------------------------------------------------------------o
|
|
//| File - cVersionClass.cpp
|
|
//| Date - 10/17/2002
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
//| Purpose - Handles version info for builds
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
#include <string>
|
|
#include "cVersionClass.h"
|
|
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
// product info
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
const std::string VER = "0.99";
|
|
const std::string BUILD = "5b-2";
|
|
const std::string REALBUILD = "0";
|
|
const std::string SVER = "2.0";
|
|
const std::string CVER = "2.0";
|
|
const std::string IVER = "2.0";
|
|
const std::string PRODUCT = "Ultima Offline eXperiment 3";
|
|
const std::string NAME = "UOX3";
|
|
const std::string EMAIL = "https://www.uox3.org/";
|
|
const std::string PROGRAMMERS = "Countless! See UOX3 Hall of Fame in documentation!";
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
CVersionClass::CVersionClass()
|
|
{
|
|
}
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
CVersionClass::~CVersionClass()
|
|
{
|
|
|
|
}
|
|
|
|
std::string CVersionClass::GetVersion( void )
|
|
{
|
|
return VER;
|
|
}
|
|
|
|
std::string CVersionClass::GetBuild( void )
|
|
{
|
|
return BUILD;
|
|
}
|
|
|
|
std::string CVersionClass::GetRealBuild( void )
|
|
{
|
|
return REALBUILD;
|
|
}
|
|
|
|
std::string CVersionClass::GetScriptVersion( void )
|
|
{
|
|
return SVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetCharacterVersion( void )
|
|
{
|
|
return CVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetItemVersion( void )
|
|
{
|
|
return IVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetProductName( void )
|
|
{
|
|
return PRODUCT;
|
|
}
|
|
|
|
std::string CVersionClass::GetName( void )
|
|
{
|
|
return NAME;
|
|
}
|
|
|
|
std::string CVersionClass::GetEmail( void )
|
|
{
|
|
return EMAIL;
|
|
}
|
|
|
|
std::string CVersionClass::GetProgrammers( void )
|
|
{
|
|
return PROGRAMMERS;
|
|
} |