Skip to content

Instantly share code, notes, and snippets.

#include <stack>
#include <tuple>
#include <string>
#include <cstdint>
#include <array>
#include <cassert>
template <typename T>
class Maybe
{
const int CLEAR_MODE = 0;
const int ACTION_MODE_PARRY = 2;
const int ACTION_MODE_POWER_ATTACK = 3;
const int ACTION_MODE_IMPROVED_POWER_ATTACK = 4;
const int ACTION_MODE_COUNTERSPELL = 5;
const int ACTION_MODE_FLURRY_OF_BLOWS = 6;
const int ACTION_MODE_RAPID_SHOT = 7;
const int ACTION_MODE_EXPERTISE = 8;
const int ACTION_MODE_IMPROVED_EXPERTISE = 9;
const int ACTION_MODE_DEFENSIVE_CAST = 10;
#include "Chat.hpp"
#include "API/CAppManager.hpp"
#include "API/CExoString.hpp"
#include "API/CNWSClient.hpp"
#include "API/CNWSDungeonMaster.hpp"
#include "API/CNWSMessage.hpp"
#include "API/CNWSPlayer.hpp"
#include "API/Constants.hpp"
#include "API/CServerExoApp.hpp"
#include "API/CVirtualMachine.hpp"
#include "nwnx"
const int NWNX_CREATURE_MOVEMENT_RATE_PC = 0;
const int NWNX_CREATURE_MOVEMENT_RATE_IMMOBILE = 1;
const int NWNX_CREATURE_MOVEMENT_RATE_VERY_SLOW = 2;
const int NWNX_CREATURE_MOVEMENT_RATE_SLOW = 3;
const int NWNX_CREATURE_MOVEMENT_RATE_NORMAL = 4;
const int NWNX_CREATURE_MOVEMENT_RATE_FAST = 5;
const int NWNX_CREATURE_MOVEMENT_RATE_VERY_FAST = 6;
const int NWNX_CREATURE_MOVEMENT_RATE_DEFAULT = 7;
void Metrics::Update(ViewPtr<Tasks> tasks)
{
for (auto& resampler : m_resamplers)
{
ResamplerData* data = resampler.second.get();
if (data->m_isWorkingAsynchronously)
{
continue;
}
// This header includes everything that is necessary for spawning loot on Arelith.
#include "gs_inc_pc"
#include "inc_lootdist"
#include "inc_lootgen"
#include "inc_lootname"
#include "inc_lootresref"
#include "mi_inc_database"
#include "mi_log"
#include "x3_inc_string"
#include "MoveSpeed.hpp"
#include "API/CAppManager.hpp"
#include "API/Constants.hpp"
#include "API/CServerExoApp.hpp"
#include "API/CNWSCreature.hpp"
#include "API/Functions.hpp"
#include "API/Globals.hpp"
#include "API/Version.hpp"
#include "Services/Events/Events.cpp"
Summoned Formian Taskmaster
Str: 18 -> 22
Dex: 10 -> 14
Con: 18 -> 22
Int: 10
Wis: 13
Cha: 12
NaturalAC: 10 -> 14
MaximumHP: 59 -> 104
{
// This is the template file for a chat bot using gpt-3.5-turbo.
// Each character should be its own file which should be included via the userfile command line.
// Note, this file is old and contains some old stuff
"variables": {
// Users must implement these variables to create a character.
"%CHAT_CONTEXT%": "%%UNIMPLEMENTED%%",
"%CHAT_GUIDELINES%": "%%UNIMPLEMENTED%%",
#MAXMODEL ASCII
newmodel pnl_hpbar
classification CHARACTER
setsupermodel pnl_hpbar NULL
setanimationscale 1
#MAXGEOM ASCII
beginmodelgeom pnl_hpbar
node dummy pnl_hpbar
parent NULL
position 0 -0.3 0