i try to be a bit more clear...
This is some code(that you already have) from char_item.cpp
Here there is the code about blocking potion in Arena map.
First check if char is in arena map **
Second if arena_potion_limit flag is > 0 char can't use potion
Third if arena_potion_limit flag is 0 or lower check for max use potion that you can set from arena_potion_limit_count flag
**According with checking char in ArenaMap, game calls IsArenaMap function.
Your problem is that your char isn't in ArenaMap
How to add the right index for arena map?
Wanderfull!We got the function!
Well and how to call it from lua?
That's Amazing! We have all we need!
So we have to use arena.add_map!
Settings.lua
Replace
arena.add_map(112, 8534, 101, 8564, 101)
arena.add_map(112, 8584, 101, 8614, 101)
arena.add_map(112, 8534, 155, 8564, 155)
arena.add_map(112, 8584, 155, 8514, 155)
with
arena.add_map(322, 8534, 101, 8564, 101)
arena.add_map(322, 8584, 101, 8614, 101)
arena.add_map(322, 8534, 155, 8564, 155)
arena.add_map(322, 8584, 155, 8514, 155)