-
Posts
1,474 -
Credits
0 -
Joined
-
Last visited
-
Days Won
4 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Tessa
-
Damn this IP binding protection... :lol: Btw... I bet he actually expects to receive a mail with "all passwords and information". ^^
-
What about "None"? :lol:
-
How is it going with your game engine? :lol:
-
New Years Eve Lottary Event(2017)
Tessa replied to Justice's topic in Maxcheaters Competitions & Events
28 :lol: -
Strange Error While Compiling
Tessa replied to OLSI's question in Request Server Development Help [L2J]
%20 is the space char between Program and Files... :lol: -
Strange Error While Compiling
Tessa replied to OLSI's question in Request Server Development Help [L2J]
Yeah, damn, I't works for me that way. :/ -
Strange Error While Compiling
Tessa replied to OLSI's question in Request Server Development Help [L2J]
Have you did what I said? ;D -
Strange Error While Compiling
Tessa replied to OLSI's question in Request Server Development Help [L2J]
The latest, always... :lol: -
Strange Error While Compiling
Tessa replied to OLSI's question in Request Server Development Help [L2J]
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 -
WTS [Sell] Minecraft Professional Website *very Cheap*
Tessa replied to CyraxDeveloper's topic in Web Development/Designing
I don't see why you calling this professional... it's an enterprise level website! -
Code .geticon() Using Xml
Tessa replied to newChar.needHelp()'s topic in Server Shares & Files [L2J]
I did it for L2JFrozen a long time ago... :lol: http://www.maxcheaters.com/topic/186701-please-check-here/ -
Code .geticon() Using Xml
Tessa replied to newChar.needHelp()'s topic in Server Shares & Files [L2J]
Ok ;D -
Code .geticon() Using Xml
Tessa replied to newChar.needHelp()'s topic in Server Shares & Files [L2J]
To use reload()... nab :lol: -
Let me repeat this... achylek approved. :lol:
-
Just don't click on the fake "X" :lol:
-
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
I understand, and I fixed my mistake... thanks for the hint. :lol: -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
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... ^^ -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
Not that much but still... it was useful for me to know it. :lol: -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
What solution? Just implement the code from the first page. :lol: -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
I'm not afraid to say that I'm noob. :lol: -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
I'm thankful too, I just learned something new. :lol: -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
I'm editing my answer right now, I just benchmarket it, and I saw the difference. :lol: -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
Lol, damn it... it really does! :lol: Thanks, I will use this from now on... ^^ -
Help Idk How...help Me On That Please
Tessa replied to Kelrzher's question in Request Server Development Help [L2J]
Inline comparsion is faster than if statement?