Skip to content

Buff Zone

Featured Replies

Hi dears, tell me please how it's possible to make some farm zones with different buffs?

for safe farm buff for p atk

for pvp/pk zone farm for atk spd

for raid boss farm p atk/atk spd.

Thank you

Edited by FactorX
Tell / tell

Give the buff you want in method onEnter in each zone you need

Edited by melron

  • Author

Where în java is that onenter ?  În teleport?

 

  • Author

i don't know where to enter to set that :(

You searched for 'onEnter' word in your eclipse and you still have questions? Or you didnt even touch this tool?

  • Author

No melron...i never search cuz i think it's alot of that onEnter. But i try now. Thank you

  • Author

And i have this..what code i need for set 1,2 zones + buffs? I don't know that code.

  • Author
// Was the character not yet inside this zone?
			if (!_characterList.contains(character))
			{
				List<Quest> quests = getQuestByEvent(EventType.ON_ENTER_ZONE);
				if (quests != null)
				{
					for (Quest quest : quests)
						quest.notifyEnterZone(character, this);
				}
				_characterList.add(character);
				onEnter(character);
			}
		}

 

Someone mute this person, he made 112 posts in 2 days, keep ignoring rules, making 5 posts in row on his own topic in just 20 minutes, no respect others, trashtalk and generaly i got tired of seeing his name on every new topic. 

Gameserver/model/zone/type open your zone thay you need and then apply the buff thing. 

  • Author

I need code for adding buff...

If you want to create new zone, then ready this 

 

But, depending your zone, maybe better would be handle it directly on teleport, like remove all buffs and give xyz buffs, but then if it's accessible zone, ppl get buffs and walk there with full buff. So, having a unique zone you control it using onEnter method. 

If you don't know how, can't handle, simply skip your idea. Been there, done that. 

Edited by SweeTs

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.