Jump to content
  • 0

Hi i need some help with zone


Question

Posted

Hi, Problem is that i don't know how to start flag when entering effect zone (like valakas lair)

My idea is to make a special zone that you enter and get a special buff with increases ur stats abit and upon entering you will be flaged for the time whan you are in that zone

Buff is easy but i have no idea how to do auto flag on entering the zone

Any help guys ? :)

4 answers to this question

Recommended Posts

  • 0
Posted

in L2EffectZone.java in onEnter, after if (character instanceof L2PcInstance){  put

		L2PcInstance player = (L2PcInstance) character;
		player.startPvPFlag();

i am not getting errors so its probably working:) hf

  • 0
Posted

Added and it is working abit

Flag appears for 1s and disappears

Any idea how to extend it for let's say 10 hours ?

Tryed to do like this

			L2PcInstance player = (L2PcInstance) character;
		long _pvpFlagLasts;
		{
			_pvpFlagLasts = 500000;
		}
		player.startPvPFlag();

but no luck

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
Answer this question...

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