feat: implement a bunch of basic scripts that don't really do anything (#1999)

* feat: implement a bunch of basic scripts that don't really do anything

None of these do anything noticeable or break anything

* fixes
This commit is contained in:
David Markowitz
2026-06-16 07:49:30 -07:00
committed by GitHub
parent c0d055e66e
commit 79bb48d3bc
6 changed files with 46 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
set(DSCRIPTS_SOURCES_02_SERVER_DLU
"DLUVanityTeleportingObject.cpp"
"RegisterWithZoneControl.cpp"
PARENT_SCOPE)

View File

@@ -0,0 +1,12 @@
#include "RegisterWithZoneControl.h"
#include "Entity.h"
#include "EntityManager.h"
#include "GameMessages.h"
void RegisterWithZoneControl::OnStartup(Entity* self) {
GameMessages::ObjectLoaded objLoaded;
objLoaded.objectID = self->GetObjectID();
objLoaded.lot = self->GetLOT();
objLoaded.Send(Game::entityManager->GetZoneControlEntity()->GetObjectID());
}

View File

@@ -0,0 +1,14 @@
// Darkflame Universe
// Copyright 2026
#ifndef REGISTERWITHZONECONTROL_H
#define REGISTERWITHZONECONTROL_H
#include "CppScripts.h"
class RegisterWithZoneControl : public CppScripts::Script {
public:
void OnStartup(Entity* self) override;
};
#endif //!REGISTERWITHZONECONTROL_H