antiblock
Rodnia | Alpha & Omega
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
ButchGraig

NIVEL DE ENTRADA EM MAPAS

Question

Como posso editar o nivel de entrada em algum mapa?

EX: tenho um mapa que só está permitindo a entrada de level 105 e eu gostaria de por a 90.

Onde faço a edição do mapa para permitir?

Share this post


Link to post
Share on other sites

2 answers to this question

  • 1

Por exemplo o teu mapa na quest deve ter assim

 

with pc.get_level() <= 105

 

só tens que mudar para 

 

with pc.get_level() < 90

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif
  • 1

Depende de onde o update está feito o update pode ter sido feito em quest ou Source, em relação a quest o membro Tiago já abordou, eu também tenho de dizer que é mais comum o update ser feito em quest.

então em source terás algo desde tipo :

 

bool CAN_ENTER_ZONE(const LPCHARACTER& ch, int map_index)
{
    switch (map_index)
    {
    case 301:
    case 302:
    case 303:
    case 304:
        if (ch->GetLevel() < 90)
            return false;
    }
    return true;
}

 

 

---------------------------------

 

 


            if (CAN_ENTER_ZONE(this, mapIdx))
            {
                WarpSet(victim->GetX(), victim->GetY());
            }
            else
            {
                ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»ó´ë¹æÀÌ ÀÖ´Â °÷À¸·Î ¿öÇÁÇÒ ¼ö ¾ø½À´Ï´Ù."));
                return false;
            }

 

----------------------------------------------------------------------------

 

if (!CAN_ENTER_ZONE(this, pcci->lMapIndex))
            {
                ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»ó´ë¹æÀÌ ÀÖ´Â °÷À¸·Î ¿öÇÁÇÒ ¼ö ¾ø½À´Ï´Ù."));
                return false;
            }

    

tudo isto no arquivo char.cpp

Edited by Elliot
não mencionei o nome do arquivo (see edit history)

Share this post


Link to post
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