Jump to content

Question

Posted (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 by KaLeDoR

2 answers to this question

Recommended Posts

  • 0
Posted (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 by Tryskell
  • 0
Posted

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 :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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