Haku Posted July 20, 2020 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 60 Reputation: 2 Joined: 12/04/13 Last Seen: Saturday at 04:54 AM Share Posted July 20, 2020 (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 July 20, 2020 by Haku Quote Link to comment Share on other sites More sharing options...
0 Kreustoo Posted July 20, 2020 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 216 Reputation: 45 Joined: 05/03/13 Last Seen: March 9 Share Posted July 20, 2020 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 :/. Quote Link to comment Share on other sites More sharing options...
Question
Haku
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
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.