Rio Posted May 27, 2011 Posted May 27, 2011 Could some1 help me with a java code, when players hits enemies in ARENA zone to flag... plox :D Quote
0 marwan Posted May 27, 2011 Posted May 27, 2011 i didn't understand you "ARENA zone to flag... plox" Quote
0 Rio Posted May 27, 2011 Author Posted May 27, 2011 -.- when a player hits another player in arena like gludin arena or colliseum then he flags Quote
0 Rio Posted May 28, 2011 Author Posted May 28, 2011 Check zones.xml from data. i dont want to change the zone type , but to make players flag in arena :S Quote
0 An4rchy Posted May 28, 2011 Posted May 28, 2011 net.sf.l2j.gameserver.model.zone.type.L2ArenaZone Find: onEnter(L2Character character) Add after it: if (character instanceof L2PcInstance) { ((L2PcInstance)character).updatePvPFlag(1); } I don't know if this is permanant(if they have all time in there flag), but you could test it and tell me. If it isn't, i can fix it. Quote
0 Tryskell Posted May 28, 2011 Posted May 28, 2011 You can understand the ask in 2 ways : - you hit someone in an L2Arena and you're not in the arena (so it looks like a fix). - both players are in arena (it's a custom). In first way, you have to make a check if both players are in L2Arena, if not the attacker is flagged. In second, you have to delete the code which stop the flag system when you're on arenas. Basically, flagsystem is handled from public void updatePvPStatus(L2Character target) and public void updatePvPStatus() Quote
Question
Rio
Could some1 help me with a java code, when players hits enemies in ARENA zone to flag... plox :D
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.