Jump to content

Tessa

Members
  • Posts

    1,474
  • Credits

  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Everything posted by Tessa

  1. Damn this IP binding protection... :lol: Btw... I bet he actually expects to receive a mail with "all passwords and information". ^^
  2. What about "None"? :lol:
  3. How is it going with your game engine? :lol:
  4. :lol:
  5. %20 is the space char between Program and Files... :lol:
  6. Yeah, damn, I't works for me that way. :/
  7. Have you did what I said? ;D
  8. The latest, always... :lol:
  9. I'm not using eclipse but I managed to do it... ;D This is how my eclipse looks after I've added tools.jar: Window -> Preferences -> Installed JREs :lol: You can manually add the missing tools.jar by clicking "Edit" on the selected JDK, and then "Add External JARs..."... Hope it helps. ;D http://prnt.sc/doyvme
  10. I don't see why you calling this professional... it's an enterprise level website!
  11. I did it for L2JFrozen a long time ago... :lol: http://www.maxcheaters.com/topic/186701-please-check-here/
  12. To use reload()... nab :lol:
  13. Let me repeat this... achylek approved. :lol:
  14. Just don't click on the fake "X" :lol:
  15. I understand, and I fixed my mistake... thanks for the hint. :lol:
  16. Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 5) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision ) @@ -114,12 +114,7 @@ import net.sf.l2j.gameserver.model.actor.stat.PcStat; import net.sf.l2j.gameserver.model.actor.status.PcStatus; import net.sf.l2j.gameserver.model.actor.template.PcTemplate; -import net.sf.l2j.gameserver.model.base.ClassId; -import net.sf.l2j.gameserver.model.base.ClassLevel; -import net.sf.l2j.gameserver.model.base.Experience; -import net.sf.l2j.gameserver.model.base.PlayerClass; -import net.sf.l2j.gameserver.model.base.Race; -import net.sf.l2j.gameserver.model.base.SubClass; +import net.sf.l2j.gameserver.model.base.*; import net.sf.l2j.gameserver.model.entity.Castle; import net.sf.l2j.gameserver.model.entity.Duel.DuelState; import net.sf.l2j.gameserver.model.entity.Hero; @@ -597,7 +592,9 @@ private int _coupleId = 0; private boolean _marryrequest = false; private int _requesterId = 0; - + + private Faction faction; + private final SummonRequest _summonRequest = new SummonRequest(); private final GatesRequest _gatesRequest = new GatesRequest(); @@ -10704,5 +10701,17 @@ activeChar.sendPacket(new RecipeShopMsg(this)); break; } + } + + public Faction getFaction() { + return this.faction; + } + + public void setFaction(Faction faction) { + this.faction = faction; + } + + public boolean isGood() { + return this.faction == Faction.GOOD; } } \ No newline at end of file Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 5) +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision ) @@ -31,6 +31,7 @@ import net.sf.l2j.gameserver.model.L2Clan.SubPledge; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; +import net.sf.l2j.gameserver.model.base.Faction; import net.sf.l2j.gameserver.model.base.Race; import net.sf.l2j.gameserver.model.entity.ClanHall; import net.sf.l2j.gameserver.model.entity.Couple; @@ -95,6 +96,12 @@ GmListTable.getInstance().addGm(activeChar, false); else GmListTable.getInstance().addGm(activeChar, true); + } else { + if (activeChar.getRace() == Race.Human || activeChar.getRace() == Race.Elf || (activeChar.getRace() == Race.Dwarf && activeChar.getAppearance().getSex())) { + activeChar.setFaction(Faction.GOOD); + } else { + activeChar.setFaction(Faction.EVIL); + } } // Set dead status if applies \ No newline at end of file Index: java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java (revision 5) +++ java/net/sf/l2j/gameserver/network/serverpackets/UserInfo.java (revision ) @@ -273,8 +273,12 @@ writeD(0); writeD(0); } - + + if (_activeChar.isGM()) { - writeD(_activeChar.getAppearance().getNameColor()); + writeD(_activeChar.getAppearance().getNameColor()); + } else { + writeD(_activeChar.isGood() ? 0x00FF00 : 0x0000FF); + } // new c5 writeC(_activeChar.isRunning() ? 0x01 : 0x00); // changes the Speed display on Status Window \ No newline at end of file Index: java/net/sf/l2j/gameserver/model/base/Faction.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- java/net/sf/l2j/gameserver/model/base/Faction.java (revision ) +++ java/net/sf/l2j/gameserver/model/base/Faction.java (revision ) @@ -0,0 +1,6 @@ +package net.sf.l2j.gameserver.model.base; + +public enum Faction { + GOOD, + EVIL +} \ No newline at end of file Index: java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (revision 5) +++ java/net/sf/l2j/gameserver/network/serverpackets/CharInfo.java (revision ) @@ -218,8 +218,12 @@ writeD(0); writeD(0); } - + + if (_activeChar.isGM()) { - writeD(_activeChar.getAppearance().getNameColor()); + writeD(_activeChar.getAppearance().getNameColor()); + } else { + writeD(_activeChar.isGood() ? 0x00FF00 : 0x0000FF); + } writeD(0x00); // isRunning() as in UserInfo? \ No newline at end of file There is some topic shit... :lol: I had to download both l2 and acis to do this... ;D Note that the edited packets are just an example of how to use this... ^^
  17. Not that much but still... it was useful for me to know it. :lol:
  18. What solution? Just implement the code from the first page. :lol:
  19. I'm not afraid to say that I'm noob. :lol:
  20. I'm thankful too, I just learned something new. :lol:
  21. I'm editing my answer right now, I just benchmarket it, and I saw the difference. :lol:
  22. Lol, damn it... it really does! :lol: Thanks, I will use this from now on... ^^
  23. Inline comparsion is faster than if statement?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock