MR-8: Nemere Dungeon

This commit is contained in:
Mind Rapist
2026-01-18 09:01:56 +02:00
parent 94a2e35129
commit 681a8cae1b
24 changed files with 1317 additions and 90 deletions

View File

@@ -42,6 +42,15 @@ bool CHARACTER::StartRiding()
return false;
}
// MR-8: Prevent mounting in Nemere's Watchtower
long lMapIndex = GetMapIndex();
if (lMapIndex >= 352 * 10000 && lMapIndex < 353 * 10000)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot ride your horse in Nemere's Watchtower."));
return false;
}
// MR-8: -- END OF -- Prevent mounting in Nemere's Watchtower
DWORD dwMountVnum = m_chHorse ? m_chHorse->GetRaceNum() : GetMyHorseVnum();
@@ -151,6 +160,16 @@ void CHARACTER::HorseSummon(bool bSummon, bool bFromFar, DWORD dwVnum, const cha
if (IsRiding())
return;
// MR-8: Prevent mounting in Nemere's Watchtower
long lMapIndex = GetMapIndex();
if (lMapIndex >= 352 * 10000 && lMapIndex < 353 * 10000)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot ride your horse in Nemere's Watchtower."));
return;
}
// MR-8: -- END OF -- Prevent mounting in Nemere's Watchtower
sys_log(0, "HorseSummon : %s lv:%d bSummon:%d fromFar:%d", GetName(), GetLevel(), bSummon, bFromFar);
long x = GetX();
@@ -357,10 +376,12 @@ bool CHARACTER::CanUseHorseSkill()
{
if(IsRiding())
{
if (GetHorseGrade() == 3)
// MR-8: CanUseHorseSkill() grade fix
if (GetHorseGrade() >= 3)
return true;
else
return false;
// MR-8: -- END OF -- CanUseHorseSkill() grade fix
if(GetMountVnum())
{