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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..