Files
DarkflameServer/dScripts/02_server/Map/General/ZoneFireTempleServer.h
Aaron Kimbrell a30f3bf904 feat(scripts): L_ZONE_FIRE_TEMPLE_SERVER
Each player gets the activity close button; it asks to confirm leaving, and yes takes the button away and sends the
player to their last zone that is not an instance.

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

14 lines
752 B
C++

#pragma once
#include "CppScripts.h"
// L_ZONE_FIRE_TEMPLE_SERVER.lua: the Fire Temple instance's zone script. Each player gets the activity close button;
// using it asks to confirm leaving (UI_EULA_CONFIRM_EXIT_LINE2), and yes takes the button away and sends the player
// to the last zone that is not an instance.
class ZoneFireTempleServer : public CppScripts::Script {
public:
void OnZoneLoadedInfo(Entity* self, const GameMessages::ZoneLoadedInfo& info) override;
void OnPlayerLoaded(Entity* self, Entity* player) override;
void OnMessageBoxResponse(Entity* self, Entity* sender, int32_t button, const std::u16string& identifier, const std::u16string& userData) override;
static void ToggleActivityCloseButton(Entity* player, bool show);
};