Jump to content
  • 0

Block horse


KingWolf

Question

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

6 answers to this question

Recommended Posts

!-->
  • 0

input_login.cpp

Search 

else

 {

  if (CWarMapManager::instance().IsWarMap(ch->GetMapIndex()) ||

    marriage::WeddingManager::instance().IsWeddingMap(ch->GetMapIndex()))

  {

   if (!test_server)

    ch->WarpSet(EMPIRE_START_X(ch->GetEmpire()), EMPIRE_START_Y(ch->GetEmpire()));

  }

 }

 

under

 

 

if (ch->GetMapIndex() == ur index)

 {

  if (ch->IsRiding())

  {

   ch->StopRiding();

  }

 }

Link to comment
Share on other sites

  • 0
7 hours ago, Kidro said:

input_login.cpp

Search 

else

 {

  if (CWarMapManager::instance().IsWarMap(ch->GetMapIndex()) ||

    marriage::WeddingManager::instance().IsWeddingMap(ch->GetMapIndex()))

  {

   if (!test_server)

    ch->WarpSet(EMPIRE_START_X(ch->GetEmpire()), EMPIRE_START_Y(ch->GetEmpire()));

  }

 }

 

under

 

 

if (ch->GetMapIndex() == ur index)

 {

  if (ch->IsRiding())

  {

   ch->StopRiding();

  }

 }

is not functional

Link to comment
Share on other sites

  • 0

Uhm, ok.

char_horse.cpp

search

bool CHARACTER::StartRiding()
{

add under

 

    if (GetMapIndex() == xx || GetMapIndex() == xx)
    {
        StopRiding();
        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("The horse has been disabled in this map."));
        return false;
    }

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.