KaLeDoR Posted December 8, 2020 Posted December 8, 2020 (edited) hi i tried to change spawn protection effect on l2jacis 382 version editing userinfo.java i want to change teamtype to abnormal effect IMPRISION 2 can anyone help me a bit cause i'm too newbie on coding and any help would be most welcome! Thank you! Edited December 8, 2020 by KaLeDoR
0 Tryskell Posted December 8, 2020 Posted December 8, 2020 (edited) You have to move the code logic, aka (Config.PLAYER_SPAWN_PROTECTION > 0 && _player.isSpawnProtected()) to (and similar to what already is done with //hide effect) : writeD((!_player.getAppearance().isVisible() && _player.isGM()) ? (_player.getAbnormalEffect() | AbnormalEffect.STEALTH.getMask()) : _player.getAbnormalEffect()); Packets accept defined values, if it accepts a CAR you can't put an ICE-CREAM on it. Abnormal effects are set on the line I gave, and nothing else. Remember, for other players you have also to edit CharInfo. Edited December 8, 2020 by Tryskell
0 KaLeDoR Posted December 8, 2020 Author Posted December 8, 2020 i tried that but i have to move something else. i tried even change WriteC to writeD and bring me an error 1 hour ago, Tryskell said: You have to move the code logic, aka (Config.PLAYER_SPAWN_PROTECTION > 0 && _player.isSpawnProtected()) to (and similar to what already is done with //hide effect) : writeD((!_player.getAppearance().isVisible() && _player.isGM()) ? (_player.getAbnormalEffect() | AbnormalEffect.STEALTH.getMask()) : _player.getAbnormalEffect()); Packets accept defined values, if it accepts a CAR you can't put an ICE-CREAM on it. Abnormal effects are set on the line I gave, and nothing else. Remember, for other players you have also to edit CharInfo. yea i tried copy/paste this on the line you already mention but cause i'm newbie in java i dont know what to move to make the ice cream go to ice cream and car to car :)
Question
KaLeDoR
hi i tried to change spawn protection effect on l2jacis 382 version editing userinfo.java i want to change teamtype to abnormal effect IMPRISION 2 can anyone help me a bit cause i'm too newbie on coding and any help would be most welcome! Thank you!
Edited by KaLeDoR2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now