Jezu - Sep 11, 2013 16:41
Greetings!
My problem is like this for example,
- I enabled my Last Man Standing script that you can find everywhere!
- I created a new map_zone_db.conf, together with on the map.h where you must create a new one of yours. Recompiled.
- Enable the map zone on the Last Man Standing with zone script.
[b]on my src/map/map.h :[/b][code=auto:0]#define MAP_ZONE_LMS_NAME "LMS"[/code]
[b]on my db/re/map_zone_db.conf :[/b]
[code=auto:0]
{
name: "LMS" /* Last Man Standing */
disabled_skills: {
AS_CLOAKING: "PLAYER"
GC_CLOAKINGEXCEED: "PLAYER"
TF_HIDING: "PLAYER"
NJ_SHADOWJUMP: "PLAYER"
NJ_KIRIKAGE: "PLAYER"
NJ_KASUMIKIRI: "PLAYER"
KO_YAMIKUMO: "PLAYER"
ST_CHASEWALK: "PLAYER"
SC_INVISIBILITY: "PLAYER"
NJ_KASUMIKIRI: "PLAYER"
AL_TELEPORT: "PLAYER"
SC_DIMENSIONDOOR: "PLAYER"
RG_INTIMIDATE: "PLAYER"
}
},
[/code]
on my [b]Last Man Standing Script: [/b][i](with proper tabbing)[/i][code=auto:0]rwc03 mapflag zone LMS[/code]
and the PROBLEM is when the NPC enabled the PVPON, the restrictions will be useless and the full map will be follow the "PvP" on map_zone_db.conf...
I think this is wrong, unlike on the skill_nocast_db, you can restrict those even the PvP turns on.
This post has been edited by
Jezu
on Sep 11, 2013 16:45
kyeme - Sep 11, 2013 16:55
Confirming and dupe of bug report: [url="http://herc.ws/board/tracker/issue-7333-map-zone-db/"][url="http://herc.ws/board/tracker/issue-7333-map-zone-db/"]http://herc.ws/board/tracker/issue-7333-map-zone-db/[/url][/url]
To fix this problem you can add this (temporary) just set the min lvl of gm to enable this command:
[code=auto:0]
- script atcmd_pvp -1,{
OnInit:
bindatcmd "pvpon","atcmd_pvp::OnAtcommand",60,99;
bindatcmd "pvpoff","atcmd_pvp::OnAtcommand2",60,99;
end;
OnAtcommand:
atcommand "@pvpon";
setmapflag "rwc03",mf_zone,"LMS";
end;
OnAtcommand2:
atcommand "@pvpoff";
setmapflag "rwc03",mf_zone,"LMS";
end;
}
[/code]
This post has been edited by
kyeme
on Sep 11, 2013 17:00
kyeme - Sep 11, 2013 16:57
Or if the npc enable the PVP just add:
setmapflag [color=rgb(0,136,0)]"rwc03"[/color][color=rgb(102,102,0)],[/color]mf_zone[color=rgb(102,102,0)],[/color][color=rgb(0,136,0)]"LMS"[/color][color=rgb(102,102,0)];[/color]
kyeme - Feb 7, 2014 2:10
Dupe of [url="http://herc.ws/board/tracker/issue-7333-map-zone-db/"]http://herc.ws/board/tracker/issue-7333-map-zone-db/[/url][quote name="Ind" timestamp="1391451211"]
Should be fixed in [url=https://github.com/HerculesWS/Hercules/commit/50bc76c412b6618d90fdbdb24d43da2bda0525a2]https://github.com/HerculesWS/Hercules/commit/50bc76c412b6618d90fdbdb24d43da2bda0525a2[/url][/quote]
Jezu - Feb 7, 2014 10:01
Thanks for this kyeme and Ind! /no1