mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-22 00:48:44 +00:00
Merge
This commit is contained in:
commit
4902c7011c
8 changed files with 23 additions and 22 deletions
|
@ -81,7 +81,8 @@ const uint32 NB_FAKE_DISC_PROPERTIES_UPDATED_PER_CYCLE=2;
|
|||
typedef uint16 TProperty;
|
||||
typedef uint8 TPropIndex;
|
||||
|
||||
const uint32 NB_PROPERTIES = 256; //number of TProperty elements (if you change this, change the ids of special properties in the Front-end Service!)
|
||||
// KAE: Commented because not used
|
||||
//const uint32 NB_PROPERTIES = 256; //number of TProperty elements (if you change this, change the ids of special properties in the Front-end Service!)
|
||||
|
||||
|
||||
/// Main type for positions/distances. Unit: millimeter
|
||||
|
|
|
@ -30,12 +30,17 @@ namespace RYZOMID
|
|||
{
|
||||
// warning: respect separation with creature /object, it's used in front-end vision prioritizer
|
||||
// creature part (include player)
|
||||
player = 0,
|
||||
npc, //1
|
||||
creature, //2
|
||||
mount, //3
|
||||
pack_animal, //4
|
||||
flora, //5
|
||||
creature_begin = 0,
|
||||
player = creature_begin,
|
||||
bot_ai_begin,
|
||||
npc = bot_begin, //1
|
||||
creature, //2
|
||||
mount, //3
|
||||
pack_animal, //4
|
||||
flora, //5
|
||||
bot_ai_end = flora,
|
||||
creature_end = bot_end,
|
||||
|
||||
// objects part
|
||||
object, // 6
|
||||
building, // 7
|
||||
|
|
|
@ -845,9 +845,9 @@ void CGameItemManager::buildNpcSpecificItems()
|
|||
//-----------------------------------------------
|
||||
// createItem :
|
||||
//-----------------------------------------------
|
||||
NLMISC_COMMAND(createItem,"create a new item","<sheet id><quality><owner id>")
|
||||
NLMISC_COMMAND(createItem,"create a new item","<sheet id><quality>")
|
||||
{
|
||||
if( args.size() < 3 )
|
||||
if( args.size() < 2 )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -859,9 +859,9 @@ NLMISC_COMMAND(createItem,"create a new item","<sheet id><quality><owner id>")
|
|||
uint16 quality;
|
||||
NLMISC::fromString(args[1], quality);
|
||||
|
||||
uint32 ownerIdTmp;
|
||||
NLMISC::fromString(args[2], ownerIdTmp);
|
||||
CEntityId ownerId(RYZOMID::object,ownerIdTmp);
|
||||
//uint32 ownerIdTmp;
|
||||
//NLMISC::fromString(args[2], ownerIdTmp);
|
||||
//CEntityId ownerId(RYZOMID::object,ownerIdTmp);
|
||||
|
||||
// CGameItemPtr item = GameItemManager.createItem( sheetId, quality, ownerId, -1, true,true );
|
||||
CGameItemPtr item = GameItemManager.createItem( sheetId, quality, true, true );
|
||||
|
|
|
@ -16324,13 +16324,7 @@ void CCharacter::sendEmote( const NLMISC::CEntityId& id, MBEHAV::EBehaviour beha
|
|||
}
|
||||
|
||||
CEntityId targetId = getTarget();
|
||||
if ( targetId.getType() != RYZOMID::npc &&
|
||||
targetId.getType() != RYZOMID::player &&
|
||||
targetId.getType() != RYZOMID::creature &&
|
||||
targetId.getType() != RYZOMID::mount &&
|
||||
targetId.getType() != RYZOMID::pack_animal &&
|
||||
targetId.getType() != RYZOMID::flora
|
||||
)
|
||||
if (targetId.getType() > creature_end)
|
||||
targetId = CEntityId::Unknown;
|
||||
|
||||
TDataSetRow targetRow = TheDataset.getDataSetRow( targetId );
|
||||
|
|
|
@ -915,7 +915,7 @@ inline void CDistancePrioritizer::serialSlotHeader( CClientHost& client, CEntit
|
|||
timestampDelta = 15;
|
||||
timestampDelta |= 0x10; // 'timestampIsThere bit': first bit is bit 5 (high to low order)
|
||||
}
|
||||
else if ( seenEntityId.getType() >= RYZOMID::object )
|
||||
else if ( seenEntityId.getType() > RYZOMID::creature_end )
|
||||
{
|
||||
// For non-players/non-bots types (e.g. bags), set the timestamp delta if entity is being spawned to the client
|
||||
//if ( _VisualPropertyTreeRoot->B->B->getSHEETnode()->BranchHasPayload ) // assumes this is done after arbitrateDiscreetProperties() // CHANGED BEN
|
||||
|
|
|
@ -227,7 +227,7 @@ public:
|
|||
{
|
||||
outbox.serialBitAndLog( BranchHasPayload );
|
||||
if ( a() ) a()->fillDiscreetProperties( outbox );
|
||||
if ( a() ) b()->fillDiscreetProperties( outbox );
|
||||
if ( b() ) b()->fillDiscreetProperties( outbox );
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -161,7 +161,7 @@ void CWorldEntity::init( const CEntityId& id, const TDataSetRow &index )
|
|||
{
|
||||
_Type = Trigger;
|
||||
}
|
||||
else if ( (id.getType() >= RYZOMID::npc ) || ( id.getType() <= RYZOMID::flora) )
|
||||
else if ((id.getType() >= RYZOMID::bot_ai_begin) && (id.getType() <= RYZOMID::bot_ai_end))
|
||||
{
|
||||
_Type = AI;
|
||||
}
|
||||
|
|
|
@ -143,6 +143,7 @@ include('header.php');
|
|||
$config = str_replace("%nelSetupPassword%", addslashes($_POST["nelSetupPassword"]), $config);
|
||||
$config = str_replace("%domainDatabase%", addslashes($_POST["domainDatabase"]), $config);
|
||||
$config = str_replace("%nelDomainName%", addslashes($_POST["nelDomainName"]), $config);
|
||||
$config = str_replace("%nelSetupVersion%", addslashes($NEL_SETUP_VERSION), $config);
|
||||
$cryptKeyLength = 16;
|
||||
$cryptKey = str_replace("=", "", base64_encode(mcrypt_create_iv(ceil(0.75 * $cryptKeyLength), MCRYPT_DEV_URANDOM)));
|
||||
$cryptKeyIMAP = str_replace("=", "", base64_encode(mcrypt_create_iv(ceil(0.75 * $cryptKeyLength), MCRYPT_DEV_URANDOM)));
|
||||
|
|
Loading…
Reference in a new issue