Updated for NWNEE 37-13

Updated for NWNEE 37-13.  Updated NWNxEE scripts.  CODI Core AI tweaks.  Added Diamond Golem AI.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2025-01-10 19:01:12 -05:00
parent 37c79b6d57
commit ce72b8d120
685 changed files with 6642 additions and 7699 deletions

View File

@@ -3,7 +3,6 @@
/// @{
/// @file nwnx_redis_lib.nss
/// @brief Allows connection and interfacing with a redis server.
#include "nwnx"
/// @anchor redis_results
/// @name Redis Results
@@ -65,44 +64,44 @@ string NWNX_Redis_GetResultAsString(int resultId);
int NWNX_Redis_GetResultType(int resultId)
{
NWNX_PushArgumentInt(resultId);
NWNX_CallFunction("NWNX_Redis", "GetResultType");
return NWNX_GetReturnValueInt();
NWNXPushInt(resultId);
NWNXCall("NWNX_Redis", "GetResultType");
return NWNXPopInt();
}
int NWNX_Redis_GetArrayLength(int resultId)
{
NWNX_PushArgumentInt(resultId);
NWNX_CallFunction("NWNX_Redis", "GetResultArrayLength");
return NWNX_GetReturnValueInt();
NWNXPushInt(resultId);
NWNXCall("NWNX_Redis", "GetResultArrayLength");
return NWNXPopInt();
}
// Returns the last
int NWNX_Redis_GetArrayElement(int resultId, int idx)
{
NWNX_PushArgumentInt(resultId);
NWNX_PushArgumentInt(idx);
NWNX_CallFunction("NWNX_Redis", "GetResultArrayElement");
return NWNX_GetReturnValueInt();
NWNXPushInt(resultId);
NWNXPushInt(idx);
NWNXCall("NWNX_Redis", "GetResultArrayElement");
return NWNXPopInt();
}
float NWNX_Redis_GetResultAsFloat(int resultId)
{
NWNX_PushArgumentInt(resultId);
NWNX_CallFunction("NWNX_Redis", "GetResultAsString");
return StringToFloat(NWNX_GetReturnValueString());
NWNXPushInt(resultId);
NWNXCall("NWNX_Redis", "GetResultAsString");
return StringToFloat(NWNXPopString());
}
int NWNX_Redis_GetResultAsInt(int resultId)
{
NWNX_PushArgumentInt(resultId);
NWNX_CallFunction("NWNX_Redis", "GetResultAsString");
return StringToInt(NWNX_GetReturnValueString());
NWNXPushInt(resultId);
NWNXCall("NWNX_Redis", "GetResultAsString");
return StringToInt(NWNXPopString());
}
string NWNX_Redis_GetResultAsString(int resultId)
{
NWNX_PushArgumentInt(resultId);
NWNX_CallFunction("NWNX_Redis", "GetResultAsString");
return NWNX_GetReturnValueString();
NWNXPushInt(resultId);
NWNXCall("NWNX_Redis", "GetResultAsString");
return NWNXPopString();
}