Kotegaeshi92 Posted January 27, 2020 Posted January 27, 2020 Hi friends , Im having some problems to set a default crest when faction is selected, i cant get the method to set a default crest from crestcache (previously loaded in data/crest) for all faction members. can i get some help with this ? sorry for my bad english. Greetings Quote
0 Rumble Posted January 29, 2020 Posted January 29, 2020 Hola cabezon . Te paso esta solucion : Remplazar XXXXXXXX por el ID de la crest . CharInfo.java if(_inSpecialEvent) { writeD(0); writeD(0); writeD(0); writeD(0); } else { writeD(_activeChar.getClanId()); writeD(_activeChar.getClanCrestId()); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } if(_activeChar.factionId == 1) { writeD(_activeChar.getClanId()); writeD(XXXXXXXX); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else if(_activeChar.factionId == 2) { writeD(_activeChar.getClanId()); writeD(XXXXXXXX); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else { writeD(_activeChar.getClanId()); writeD(_activeChar.getClanCrestId()); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } UserInfo.java if(_activeChar.factionId == 1) { writeD(_activeChar.getClanId()); writeD(268436170); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else if(_activeChar.factionId == 2) { writeD(_activeChar.getClanId()); writeD(XXXXXXXX); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else { writeD(_activeChar.getClanId()); writeD(_activeChar.getClanCrestId()); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); // ally crest id } // 0x40 leader rights // siege flags: attacker - 0x180 sword over name, defender - 0x80 shield, 0xC0 crown (|leader), 0x1C0 flag (|leader) writeD(_relation); Esto lo saque de : http://l2devsadmins.net/l2devsAdmins2-0-11/index.php?topic=13689.msg69486#new Quote
0 Kotegaeshi92 Posted January 31, 2020 Author Posted January 31, 2020 On 1/29/2020 at 4:03 PM, Rumble said: Hola cabezon . Te paso esta solucion : Remplazar XXXXXXXX por el ID de la crest . CharInfo.java if(_inSpecialEvent) { writeD(0); writeD(0); writeD(0); writeD(0); } else { writeD(_activeChar.getClanId()); writeD(_activeChar.getClanCrestId()); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } if(_activeChar.factionId == 1) { writeD(_activeChar.getClanId()); writeD(XXXXXXXX); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else if(_activeChar.factionId == 2) { writeD(_activeChar.getClanId()); writeD(XXXXXXXX); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else { writeD(_activeChar.getClanId()); writeD(_activeChar.getClanCrestId()); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } UserInfo.java if(_activeChar.factionId == 1) { writeD(_activeChar.getClanId()); writeD(268436170); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else if(_activeChar.factionId == 2) { writeD(_activeChar.getClanId()); writeD(XXXXXXXX); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); } else { writeD(_activeChar.getClanId()); writeD(_activeChar.getClanCrestId()); writeD(_activeChar.getAllyId()); writeD(_activeChar.getAllyCrestId()); // ally crest id } // 0x40 leader rights // siege flags: attacker - 0x180 sword over name, defender - 0x80 shield, 0xC0 crown (|leader), 0x1C0 flag (|leader) writeD(_relation); Esto lo saque de : http://l2devsadmins.net/l2devsAdmins2-0-11/index.php?topic=13689.msg69486#new Gracias Jericko ! Quote
Question
Kotegaeshi92
Hi friends ,
Im having some problems to set a default crest when faction is selected,
i cant get the method to set a default crest from crestcache (previously loaded in data/crest) for all faction members.
can i get some help with this ?
sorry for my bad english.
Greetings
2 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.