Jump to content
  • 0

Block Bs In Flagzone


nortim

Question

Recommended Posts

  • 0


maybe now is better with the solomum code

 

in heal.java

 

final int[] supporters =

{

15,

16,

29,

30,

42,

43,

97,

105,

112,

115,

136,

116

}; // support classes ID's

for (int act : supporters)

{

if (activeChar.getActingPlayer().getClassId().getId() == act && ((L2PcInstance) target).isInsideZone(123123))

{

activeChar.getActingPlayer().sendMessage("You can't heal in this zone..");

continue;

}

}

Link to comment
Share on other sites

  • 0
maybe now is better with the solomum code

in heal.java

			final int[] supporters =
			{
				15,
				16,
				29,
				30,
				42,
				43,
				97,
				105,
				112,
				115,
				136,
				116
			}; // support classes ID's
			for (int act : supporters)
			{
				if (activeChar.getActingPlayer().getClassId().getId() == act && ((L2PcInstance) target).isInsideZone(123123))
				{
					activeChar.getActingPlayer().sendMessage("You can't heal in this zone..");
					continue;
				}
			}

Where do I put it so they do not get into certain arenas?

Link to comment
Share on other sites

  • 0

Where do I put it so they do not get into certain arenas?

just in the code you added change _player to  ((L2PcInstance)character)

Link to comment
Share on other sites

  • 0

Where do I put it so they do not get into certain arenas?

 

I wouldn't suggest tazerman's code. It is only activated when a player casts a heal. In case a player dont cast a heal, he can stay in zone and use cleanse, recharge and stuff like this. I think my way is long way better.

Link to comment
Share on other sites

  • 0

 

Sorry i forget about that... Do it like

+if (character instanceof L2PcInstance)
+{
+	_player = (L2PcInstance)character;
+	final int[] supporters = {15,16,29,30,42,43,97,105,112,115,136,116}; // support classes ID's
+	for (int act : supporters)
+	if  (_player.getActiveClass() == act)
+	{
+		_player.sendMessage("You can't enter in flag zone with a support class.");
+		_player.teleToLocation(83417 + Rnd.get(101) - 50, 149028 + Rnd.get(101) - 50, -3408);
+	}

I wouldn't suggest tazerman's code. It is only activated when a player casts a heal. In case a player dont cast a heal, he can stay in zone and use cleanse, recharge and stuff like this. I think my way is long way better.

 

+}

 

The error persists .. how can I fix it? Sorry for the nudity, I'm performing now.2chb9ub.png

Link to comment
Share on other sites

  • 0

just in the code you added change _player to  ((L2PcInstance)character)

would it be this? 

 

     L2PcInstance _player = (L2PcInstance)character;
    final int[] supporters = {15,16,29,30,42,43,97,105,112,115,136,116}; // support classes ID's
    for (int act : supporters)
    if  (_player.getActiveClass() == act)
    {
    _player.sendMessage("You can't enter in flag zone with a support class.");
    _player.teleToLocation(83417 + Rnd.get(101) - 50, 149028 + Rnd.get(101) - 50, -3408);
    }
    }
Link to comment
Share on other sites

  • 0

The error persists .. how can I fix it? Sorry for the nudity, I'm performing now.2chb9ub.png

I failed again, lol, cant you just fix it by yourself?

 

replace:

_player = (L2PcInstance)character;

 

with:

L2PcInstance _player = (L2PcInstance) character;

 

Sorry for this, i was not concentrated, but you could fix it easy by yourself.

Link to comment
Share on other sites

  • 0

I wanted to thank all of you, resolved my question very quickly and gave me support! Many thanks, maxcheaters is the best!

No problem, we are glad to help you! You can ask our help whenever you want. Also feel free to mark my answer as a solution to this thread so other members can find it too :)

Link to comment
Share on other sites

  • 0

 

would it be this? 

 

     L2PcInstance _player = (L2PcInstance)character;
    final int[] supporters = {15,16,29,30,42,43,97,105,112,115,136,116}; // support classes ID's
    for (int act : supporters)
    if  (_player.getActiveClass() == act)
    {
    _player.sendMessage("You can't enter in flag zone with a support class.");
    _player.teleToLocation(83417 + Rnd.get(101) - 50, 149028 + Rnd.get(101) - 50, -3408);
    }
    }

 

 

I failed again, lol, cant you just fix it by yourself?

 

replace:

_player = (L2PcInstance)character;

 

with:

L2PcInstance _player = (L2PcInstance) character;

 

Sorry for this, i was not concentrated, but you could fix it easy by yourself.

i think you fail again :)

 

you need to add return; or else for all other

Edited by pirama
Link to comment
Share on other sites

  • 0

No problem, we are glad to help you! You can ask our help whenever you want. Also feel free to mark my answer as a solution to this thread so other members can find it too :)

 

Ready buddy! Thank you very much! I am very happy. I added the mod and it was certim in the areas NPoly and Cuboid, but in the Cylinder he buga and the char goes to the top of the city .. would like to make me pagans temple like NPoly? So I can edit the respawns without bugar the char when I get back to the city ..?

Edited by nortim
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...