Jump to content

Recommended Posts

Posted

forgive me I'm a little inexperienced in the subject, you could guide me how to put not having to press the CTRL in zone

I actually don't remember how it's done, and I don't wanna look for it. Just use CTRL + H and "ZoneId.SIEGE", for example, and somewhere must be applied a check about that.

Posted

I actually don't remember how it's done, and I don't wanna look for it. Just use CTRL + H and "ZoneId.SIEGE", for example, and somewhere must be applied a check about that.

am not earning any item in pvp what can be? Cronicle H5

Posted

Hello, i use last aCis revision, but then i hit to player or kill him my flag is going down...

Ask it to aCis users or who did the patch. I just take care of h5 srsly I got so bored and mad from LoL xd

Posted

And there is to help me figure out why I'm not getting anything when you kill someone?

 

Rev: H5 L2jServer

H5 stable or H5 beta? If you're not getting reward is coz you're not getting PvP, or you missed the line.
Posted (edited)

I actually don't remember how it's done, and I don't wanna look for it. Just use CTRL + H and "ZoneId.SIEGE", for example, and somewhere must be applied a check about that.

It's handled by L2PcInstance in the boolean - > public boolean isAutoAttackable(L2Character attacker)

 

It's a very easy edit also.

 

For my solo zone I do it like this. IsInsideSoloZone is a custom boolean I have, normally it would/could be done like this. Obviously 'ZONE_PEACE' would need to be replaced with your custom zone type.

isInsideZone(ZONE_PEACE)

	public boolean isAutoAttackable(L2Character attacker)
	{
		// Check if the attacker isn't the L2PcInstance Pet
		if (attacker == this || attacker == getPet())
			return false;
		
		// TODO: check for friendly mobs
		// Check if the attacker is a L2MonsterInstance
		if (attacker instanceof L2MonsterInstance)
			return true;
		
		// Check if the attacker is not in the same party
		if (getParty() != null && getParty().getPartyMembers().contains(attacker))
			return false;
		
		// Check if the attacker is in olympia and olympia start
		if (attacker instanceof L2PcInstance && ((L2PcInstance)attacker).isInOlympiadMode() ){
			if (isInOlympiadMode() && isOlympiadStart() && ((L2PcInstance)attacker).getOlympiadGameId()==getOlympiadGameId())
				return true;
						if (isFakeDeath())
								return false;
			else
				return false;
		}
		
		// Check if the L2PcInstance is in an Event Match
		if (attacker instanceof L2PcInstance)
		{
			if ( EventManager.getInstance().ContainsMatchPlayer(this) && EventManager.getInstance().ContainsMatchPlayer(((L2PcInstance)attacker)) )
				return true;
		}
		
+		// Check if the L2PcInstance is in an Auto Flag Zone
+		if (attacker instanceof L2PcInstance)
+		{
+			if (this.isInSoloZone && ((L2PcInstance)attacker).isInSoloZone)
+				return true;
+		}
Edited by MlDNlGHT
Posted
For l2jFrozen users...In order to take pvp change this line:

Index: head-src/com/l2jfrozen/gameserver/model/zone/type/L2MultiFunctionZone.java

 

+ character.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, true);

- character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, true);

+character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, false);

Posted


- character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, true);

+ character.setInsideZone(L2Character.ZONE_MULTIFUNCTION, false);

 

lool, seriously ? :not bad:
Posted

Nop, I don't need it. I never used and I won't use frozen.. :D

 

Well, yeah, it could work since with false you're no longed inside Multifunction zone..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...