Jump to content

Multifunctionzone


^Wyatt

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites


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

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

 

lool, seriously ? :not bad:
Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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.




  • Posts

    • Help plz i have this error   Has anyone had this happen to you? How do I solve it?  
    • ??? error   https://ibb.co/Srn4LsX No support  :S   No support : S ? :S @Lowness  ..... error, help   hey friend were you able to solve the problem? were you able to solve the problem?
    • I also think this feature would bring more harm than good... another example is a dwarf rushing against your mobs so he takes priority, then he plays fake death and proceeds to grief the shit out of you. A minimum damage threshold is necessary, which would basically converge to what is the default feature (i.e. biggest damage dealer)
    • I bought the premium to watch the video and it's private. 😢
    • For some Majestic reason OP can't edit their topics anymore?    Let me update the potential offers, I got up to 2 spots to fill.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1     A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks, side gigs are fine, as long as you are able to combine your gig and main.  All necessary tools are provided.  The team is consistent with > 10 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s. mobius is fine too for referrence only. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard, java knowledge is optional.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that. There's a small 30min interview process to demonstrate knowledge and just to meet each other.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1
  • Topics

×
×
  • Create New...