Jump to content
  • 0

AREA_SIZE in especific map


Haku

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   2
  • Joined:  12/04/13
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  215
  • Reputation:   45
  • Joined:  05/03/13
  • Last Seen:  

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 :/.

Link to comment
Share on other sites

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.

×
×
  • Create New...