koler Posted August 17, 2017 Share Posted August 17, 2017 (edited) 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 August 17, 2017 by koler Link to comment Share on other sites More sharing options...
0 Reborn12 Posted August 17, 2017 Share Posted August 17, 2017 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 More sharing options...
0 koler Posted August 17, 2017 Author Share Posted August 17, 2017 thx alot Link to comment Share on other sites More sharing options...
0 melron Posted August 17, 2017 Share Posted August 17, 2017 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 More sharing options...
0 koler Posted August 17, 2017 Author Share Posted August 17, 2017 (edited) 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 August 17, 2017 by koler Link to comment Share on other sites More sharing options...
0 Reborn12 Posted August 17, 2017 Share Posted August 17, 2017 where is traderequest.java? net.sf.l2j.gameserver.network.clientpackets Link to comment Share on other sites More sharing options...
0 koler Posted August 17, 2017 Author Share Posted August 17, 2017 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 More sharing options...
0 Reborn12 Posted August 17, 2017 Share Posted August 17, 2017 (edited) 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 August 17, 2017 by Reborn12 Link to comment Share on other sites More sharing options...
Question
koler
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 kolerLink to comment
Share on other sites
7 answers to this question
Recommended Posts