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

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...