Jump to content
  • 0

Block horse


KingWolf

Question

6 answers to this question

Recommended Posts

  • 0
  • VIP

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 post
  • 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 post
  • 0
  • VIP

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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.