Jump to content
Tierri Lopes

Bloquear Entrada Em Mapas

Recommended Posts

Serve para bloquear a entrada em mapas através do nível da personagem.

 

Ir até ao ficheiro game/src/char.cpp

Procurar por:

 

bool CAN_ENTER_ZONE(const LPCHARACTER& ch, int map_index)

{

switch (map_index)

{

case 351:

case 352:

if (ch->GetLevel() < 100)

return false;

break;

 

case 301:

case 302:

case 303:

case 304:

if (ch->GetLevel() < 90)

return false;

 

Adicionar mais mapas e níveis consoante desejado. Exemplo:

Please login or register to see this code.

Share this post


Link to post
Share on other sites

Também podias ensinar a Por mapas apenas para gm

 

Que Ficaria assim :

Please login or register to see this code.

Share this post


Link to post
Share on other sites
Please login or register to see this quote. ya eu sei

 

mas if ( false == ch->IsGM())

return false;

break;

 

 

tambem da o return false xd

Share this post


Link to post
Share on other sites
Please login or register to see this quote. kkkkk, não é assim tão complicado, mas tens razão

Share this post


Link to post
Share on other sites

Hello, thank's for the tutorial. I have a question, is possible to do it with a mysql table?

 

thank's

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

I did not understand your question, could you explain it better, please?

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

Ok. For the moment you need build the source to add a new map, in this system.

 

I ask, is possible to do this system but with a table (navicat) , to add map and level, like this, you don't need build source.

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

×

Important Information

By using this site, you agree to our Terms of Use.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.