Jump to content
  • 0

AREA_SIZE in especific map


Question

Posted (edited)

Hi, i want change declaration of area_size to other in especific map or cell.

// Visible area size (how many squares away from a player they can see)
area_size: 15



i Try that but not works, because i dont know to get map SD:

map.hpp

#define AREA_SIZE getareasize(battle_config.area_size)
int getareasize(int size){

    struct map_session_data *sd = ???????????;

    int NOVA_AREA_SIZE = size;
    if(map_getcell( sd->bl.m, sd->bl.x, sd->bl.y, CELL_CHKPLATEIA) ){
        NOVA_AREA_SIZE = 30;
    }
    return NOVA_AREA_SIZE;
}

 

Edited by Haku

1 answer to this question

Recommended Posts

  • 0
Posted

Hello,

AREA_SIZE being used in a lot of place I don't think you can do it like that, you have to change every AREA_SIZE by a new function (or use define function) that gives now another parameter, the map.

I don't see any easy solution to have an area size depending of the map/cell :/.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...