Files
DarkflameServer/dScripts/02_server/Map/General/ElementalChestsServer.h
Aaron Kimbrell 4f18578c1f feat(scripts): L_ELEMENTAL_CHESTS_SERVER
The Fire Temple chests drop their loot matrix and coins from currency table 132 at level 1 for the player, and set
the flag their precondition targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:44:44 -06:00

14 lines
629 B
C++

#pragma once
#include "CppScripts.h"
#include <optional>
// L_ELEMENTAL_CHESTS_SERVER.lua (Fire Temple chests, LOT 16837-16841): used (its CheckPrecondition is checked on use
// as for any object), it drops its loot matrix and coins from currency table 132 at level 1 for the player, and sets
// the flag its precondition targets.
class ElementalChestsServer : public CppScripts::Script {
public:
void OnUse(Entity* self, Entity* user) override;
// The flag a CheckPrecondition value targets (the precondition's targetLOT), or nothing
static std::optional<uint32_t> PreconditionFlag(const std::string& checkPrecondition);
};