Hello,
I solved this issue by creating my custom mapflag and here is manual, how to do it ?
open: src/map/map.hpp
find:
enum e_mapflag : int16 {
insert BEFORE "MF_MAX"
MF_NOSTORAGE,
MF_MAX
};
open: src/map/script_constants.hpp
find:
/* mapflags */
export_constant(MF_NOMEMO);
export_constant(MF_NOTELEPORT);
add to end of this block:
export_constant(MF_NOSTORAGE);
open src/map/atcommand.cpp
find:
if (map_getmapflag(m_id, MF_NOCOSTUME))
strcat(atcmd_output, " NoCostume |");
add:
if (map_getmapflag(m_id, MF_NOSTORAGE))
strcat(atcmd_output, " NoStorage |");
find:
ACMD_FUNC(storage)
{
nullpo_retr(-1, sd);
add:
if (map_getmapflag(sd->bl.m, MF_NOSTORAGE)) {
clif_displaymessage(fd, msg_txt(sd, 1516)); // Command is disabled on this map.
return -1;
}
find:
ACMD_FUNC(guildstorage)
{
nullpo_retr(-1, sd);
add:
if (map_getmapflag(sd->bl.m, MF_NOSTORAGE)) {
clif_displaymessage(fd, msg_txt(sd, 1516)); // Command is disabled on this map.
return -1;
}
open: conf/msg_conf/map_msg.conf
to end of this document, add new line:
1516: Command is disabled on this map.
Be careful, if this ID is already used, you must to change id, to latest available and change this id in "msg_txt(sd, yourid)"
Recompile your project.
Create file in npc/mapflag/nostorage.txt
Insert into file:
prontera mapflag nostorage
Add line to npc/script_mapflags.conf
npc: npc/mapflag/nostorage.txt
Reload NPC scripts.
At this time, @storage and @guildstorage commands are not allowed in prontera.
ENJOY ?