Skip to content

About cond

Featured Replies

exist cond if some1 is inside on peace zone cannot use current skill?

and when go out from town can use it..?

 

like this  <player peace="false"/>

  • Author

yes,check olympiad.

 

i cant find it but will try better later

What exactly you want to 'disable'? Since, you can play with code such as isInsideZone(ZoneId.PEACE) or w/e it is in your pack :)

so you want to restrict skills in peace zone right?

5-6 skills

 

its hardcoded, useless to have a condition for 5-6 skills, try to find the restriction in the core

  • Author

						if(getSkillType() == SkillType.RESURRECT)
					{
						// check target is not in a active siege zone
						if(player.isInsideZone(L2Character.ZONE_PEACE) && !player.isInsideZone(L2Character.ZONE_SIEGE))

						{
							condGood = false;
							player.sendPacket(new SystemMessage(SystemMessageId.CANNOT_BE_RESURRECTED_DURING_SIEGE));
						}

any bug from this? also i cant add for heal type maybe i add it in wrong place?

 

 

 

i test this and working but i cant modifie all beucase is is target_corpse_ally can rez ..

its hardcoded, useless to have a condition for 5-6 skills, try to find the restriction in the core

 

its not hardcoded bro, u can even make a 3 line code on doCast packet

its not hardcoded bro, u can even make a 3 line code on doCast packet

 

hmmmm i guess than i have to get up to speed with changes from the past 1-2 year thanks for the info :)

Guest
This topic is now closed to further replies.

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.