Jump to content
  • 0

Acis Trade/pvp


koler

Question

hello i use acis 368 rev and i want to disable the trade inside siege , and in siege if you kill someone you dont get pvp how i can fix  any help please

Edited by koler
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

hello i use acis 368 rev and i want to disable the trade inside siege , and in siege if you kill someone you dont get pvp how i can fix  any help please

disable trade in siege traderequest.java

 

put a check like 

	if(target.isInSiege()|| player.isInSiege())
		{
			player.sendMessage("You or your target cannot trade during Siege.");
			return;
		}
Link to comment
Share on other sites

  • 0

inside siege you mean only in the siege area? if yes then your check should be isInsideZone(ZoneId.SIEGE) . otherwise do what reborn said

Link to comment
Share on other sites

  • 0

 

disable trade in siege traderequest.java

 

put a check like 

	if(target.isInSiege()|| player.isInSiege())
		{
			player.sendMessage("You or your target cannot trade during Siege.");
			return;
		}

i find it thx

Edited by koler
Link to comment
Share on other sites

  • 0

inside siege you mean only in the siege area? if yes then your check should be isInsideZone(ZoneId.SIEGE) . otherwise do what reborn said

package net.sf.l2j.gameserver.model.zone;
 
/**
 * Zone Ids.
 * @author Zoey76
 */
public enum ZoneId
{
PVP(0),
PEACE(1),
SIEGE(2),
MOTHER_TREE(3),
CLAN_HALL(4),
NO_LANDING(5),
WATER(6),
JAIL(7),
MONSTER_TRACK(8),
CASTLE(9),
SWAMP(10),
NO_SUMMON_FRIEND(11),
NO_STORE(12),
TOWN(13),
HQ(14),
DANGER_AREA(15),
CAST_ON_ARTIFACT(16),
NO_RESTART(17),
SCRIPT(18);
 
private final int _id;
 
private ZoneId(int id)
{
_id = id;
}
 
public int getId()
{
return _id;
}
 
public static int getZoneCount()
{
return values().length;
}
}
 
 
 
 
 
 
 
here is zoneid how i can enable pvp points?
Link to comment
Share on other sites

  • 0

Nothing ti do with it..

Just in my check use

isInsideZone(ZoneId.SIEGE) instead isinSiege..

And about pvps in sieges its from L2pcInstance.java

Edited by Reborn12
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...