Cursed Weapons drop in Gracia cause minimap Issue

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Cursed Weapons drop in Gracia cause minimap Issue

Post by ShinichiYao »

If Cursed Weapons dropped in Gracia Area, all players online open map will auto display Gracia Area even they're at Aden Area and unable to change to Aden map.
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Cursed Weapons drop in Gracia cause minimap Issue

Post by JMD »

I would advice to make bug reports here: https://bitbucket.org/l2jserver/l2j_ser ... tatus=open

The devs will see it faster if you report it on bitbucket.
User avatar
ShinichiYao
Advanced User
Advanced User
Posts: 262
Joined: Tue Jan 12, 2016 3:53 am

Re: Cursed Weapons drop in Gracia cause minimap Issue

Post by ShinichiYao »

Its because ExCursedWeaponLocation packet send later then ExShowOwnthingPos packet.
I currently avoid this issue by make CW wont drop in Gracia

CursedWeaponsManager.java

Code: Select all

	public synchronized void checkDrop(L2Attackable attackable, L2PcInstance player)
	{
		// Cursed weapons cannot drop in instance
		if (attackable.getInstanceId() != 0)
		{
			return;
		}
		// Don't allow Cursed weapons drop in Gracia
		if (attackable.getX() < L2World.GRACIA_MAX_X)
		{
			return;
		}
		if ((attackable instanceof L2DefenderInstance) || (attackable instanceof L2RiftInvaderInstance) || (attackable instanceof L2FestivalMonsterInstance) || (attackable instanceof L2GuardInstance) || (attackable instanceof L2GrandBossInstance) || (attackable instanceof L2FeedableBeastInstance)
			|| (attackable instanceof L2FortCommanderInstance))
		{
			return;
		}
		
		for (CursedWeapon cw : _cursedWeapons.values())
		{
			if (cw.isActive())
			{
				continue;
			}
			
			if (cw.checkDrop(attackable, player))
			{
				break;
			}
		}
	}
Post Reply