Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/02/24 in Posts

  1. OnTimer1000: showscript "Sage Endower", getnpcid(0); initnpctimer; end; OnInit: initnpctimer; ... ... ...
    1 point
  2. Thanks. Merry Christmas my guy.
    1 point
  3. This isn't goodbye, right?
    1 point
  4. Thanks for sharing.. Merry Christmas
    1 point
  5. 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 ?
    1 point
×
×
  • Create New...