From 8d8aa020dd860cb310f9f325909e2c307fb90f6a Mon Sep 17 00:00:00 2001 From: Emagi Date: Thu, 14 Aug 2025 17:17:54 -0400 Subject: [PATCH] support ultravision, infravision, sonicvision and fishvision in KoS, DoF and earlier classic clients --- source/WorldServer/Player.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/WorldServer/Player.cpp b/source/WorldServer/Player.cpp index e12f887..3098532 100644 --- a/source/WorldServer/Player.cpp +++ b/source/WorldServer/Player.cpp @@ -1070,6 +1070,21 @@ EQ2Packet* PlayerInfo::serialize(int16 version, int16 modifyPos, int32 modifyVal packet->setDataByName("increase_max_power2", 128); packet->setDataByName("vision", info_struct->get_vision()); + switch(info_struct->get_vision()) { + case 1: // ultravision + case 255: + packet->setDataByName("spell_state_ultravision", 1); + break; + case 2: // infravision + packet->setDataByName("spell_state_infravision", 1); + break; + case 3: //sonicvision + packet->setDataByName("spell_state_sonicvision", 1); + break; + case 4: // fishvision + packet->setDataByName("spell_state_fishvision", 1); + break; + } packet->setDataByName("breathe_underwater", info_struct->get_breathe_underwater()); int32 expireTimestamp = 0;