Jump to content
  • Register Now

    Sign up and take advantage of the features of our community! Some forums are only accessible to our members!

  • 0

Non-existent map - teleport


santa12

Question

Hi, does anyone know how to teleport someone to m1 when the map doesn't exist? Usually, it throws the character to the login screen when someone tries to enter a non-existent map.

Link to post

1 answer to this question

Recommended Posts

  • 0

input_db.cpp search this:

        sys_err("InputDB::PlayerLoad : cannot find valid location %d x %d (name: %s)", pTab->x, pTab->y, pTab->name);
        d->SetPhase(PHASE_CLOSE);
        return;

 

Change it to:

        sys_err("InputDB::PlayerLoad : cannot find valid location %d x %d (name: %s)", pTab->x, pTab->y, pTab->name);
        lMapIndex = EMPIRE_START_MAP(d->GetAccountTable().bEmpire);
        pos.x = EMPIRE_START_X(d->GetAccountTable().bEmpire);
        pos.y = EMPIRE_START_Y(d->GetAccountTable().bEmpire);
        // d->SetPhase(PHASE_CLOSE);
        // return;

 

Link to post

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


  • Recently Browsing

    No registered users viewing this page.

  • Topics

  • Posts

    • Hy, I have a problem with the compile this system ! I have problem with this : [TABLES.H]   typedef struct SShopItemTable { DWORD vnum; BYTE count; TItemPos pos; // PC 상점에만 이용 long long price; // PC, shop_table_ex.txt 상점에만 이용 BYTE display_pos; // PC, shop_table_ex.txt 상점에만 이용, 보일 위치. long alSockets[ITEM_SOCKET_MAX_NUM]; TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_MAX_NUM]; DWORD price_type = 1;
    • There are no ui.py files in the release. I already changed the characterwindow.py as you can see in the screen, I just need the new imagebox class so that i can show a tooltip when i hover above the image. The picture is already from my client Learn how to read
    • Hello guys, how to solve this problem ?  this is problem   this is the fix     How to fix? 
×
×
  • 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.