Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #007697

  • 0 - None Assigned

  • Duplicate

Issue Confirmations

  • Yes (0)No (0)
Photo

MAP_ZONE_DB Confused ~ Wrong

Posted by Jezu on 11 September 2013 - 04:41 PM

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.

on my src/map/map.h :
#define MAP_ZONE_LMS_NAME "LMS"
on my db/re/map_zone_db.conf :


{
	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"
	}
},

on my Last Man Standing Script: (with proper tabbing)
rwc03 mapflag zone LMS

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.

Confirming and dupe of bug report: http://herc.ws/board...33-map-zone-db/

To fix this problem you can add this (temporary) just set the min lvl of gm to enable this command:


-	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;
}

Edited by kyeme, 11 September 2013 - 05:00 PM.


Or if the npc enable the PVP just add:
setmapflag "rwc03",mf_zone,"LMS";

changed status to: Duplicate

moved issue from Core

Thanks for this kyeme and Ind! /no1