Added some base work for this

This commit is contained in:
KimLS
2024-11-27 18:54:14 -08:00
parent fe9df46a24
commit d9c17511fd
123 changed files with 16265 additions and 0 deletions
+1
View File
@@ -170,6 +170,7 @@ SET(zone_sources
zonedb.cpp
zone_base_data.cpp
zone_event_scheduler.cpp
zone_finable_locations.cpp
zone_npc_factions.cpp
zone_reload.cpp
zoning.cpp
+3
View File
@@ -858,6 +858,9 @@ void Client::CompleteConnect()
if (ClientVersion() >= EQ::versions::ClientVersion::SoD)
entity_list.SendFindableNPCList(this);
if (ClientVersion() >= EQ::versions::ClientVersion::RoF2)
zone->SendFindableLocations(this);
if (IsInAGuild()) {
if (firstlogon == 1) {
guild_mgr.UpdateDbMemberOnline(CharacterID(), true);
+1
View File
@@ -839,6 +839,7 @@ luabind::scope lua_register_packet_opcodes() {
luabind::value("GroupLeaderChange", static_cast<int>(OP_GroupLeaderChange)),
luabind::value("GroupLeadershipAAUpdate", static_cast<int>(OP_GroupLeadershipAAUpdate)),
luabind::value("GroupRoles", static_cast<int>(OP_GroupRoles)),
luabind::value("OP_SendFindableLocations", static_cast<int>(OP_SendFindableLocations)),
luabind::value("SendFindableNPCs", static_cast<int>(OP_SendFindableNPCs)),
luabind::value("HideCorpse", static_cast<int>(OP_HideCorpse)),
luabind::value("TargetBuffs", static_cast<int>(OP_TargetBuffs)),
+9
View File
@@ -2005,6 +2005,15 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
break;
}
case ServerOP_ReloadFindableLocations:
{
if (zone && zone->IsLoaded()) {
zone->SendReloadMessage("Findable Locations");
zone->ReloadFindableLocations();
}
break;
}
case ServerOP_ReloadBlockedSpells:
{
if (zone && zone->IsLoaded()) {
+1
View File
@@ -1200,6 +1200,7 @@ bool Zone::Init(bool is_static) {
LoadNPCEmotes(&npc_emote_list);
LoadAlternateAdvancement();
LoadBaseData();
LoadFindableLocations();
LoadMerchants();
LoadTempMerchantData();
+8
View File
@@ -454,6 +454,12 @@ public:
void LoadBaseData();
void ReloadBaseData();
// Findable Locations
void LoadFindableLocations();
void ReloadFindableLocations();
void ClearFindableLocations();
void SendFindableLocations(Client* client = nullptr);
private:
bool allow_mercs;
@@ -518,6 +524,8 @@ private:
// Base Data
std::vector<BaseDataRepository::BaseData> m_base_data = { };
// Findable Locations
};
#endif
+13
View File
@@ -0,0 +1,13 @@
#include "zone.h"
void Zone::LoadFindableLocations() {
}
void Zone::ReloadFindableLocations() {
}
void Zone::ClearFindableLocations() {
}
void Zone::SendFindableLocations(Client* client) {
}