Jump to content

[Interlude Project] L2j Esios


Guest Elfocrash

Recommended Posts

This is wrong here ->https://www.assembla.com/code/l2jesios/subversion/changesets/35

 

         newChar.setTitle("");

        if (Config.ALLOW_CHAR_TITLE)      
            newChar.setTitle(Config.CHAR_TITLE);

 

You must Do it like this:

        if (Config.ALLOW_CHAR_TITLE)      
            newChar.setTitle(Config.CHAR_TITLE);
        else
newChar.setTitle("");

 

ps:also what are you doing? you follow the frozen? adding custom shits? at least learn how the if -else if -else working because you made a mistake here :)

 

hahaha that rlly show your skills absolute. +1 on messy dumb codding 101.

Link to comment
Share on other sites

Reached rev 45.

Added several features.

 

 

Features

  • New character custom title
  • Welcome screen message
  • Entering messages
  • Last visit message
  • Casino Npc
  • Antiheavy Classes
  • Npc Buffer Instance
  • Siege Informer Npc
  • Random Reward Box
  • Pvp Chat
  • Webservered Html Npc
  • Siege Reward
  • Automatic Restard
  • Petition Logger

Nice
Link to comment
Share on other sites

hahaha that rlly show your skills absolute. +1 on messy dumb codding 101.

newChar.addAdena("Init", Config.STARTING_ADENA, null, false);

newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);

- newChar.setTitle("");

+ if(Config.ALLOW_START_TITLE)

+ newChar.setTitle(Config.START_TITLE);

Link to comment
Share on other sites

newChar.addAdena("Init", Config.STARTING_ADENA, null, false);

newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);

- newChar.setTitle("");

+ if(Config.ALLOW_START_TITLE)

+ newChar.setTitle(Config.START_TITLE);

 

?? read the whole code before you post something please.

Link to comment
Share on other sites

I had a good laugh about the custom title.

 

I'd do it like this:

newChar.setTitle(Config.START_TITLE);

Where Config.START_TITLE is empty String as default and you could drop the useless boolean Config.ALLOW_START_TITLE

 

Although, not sure, but if you don't set something it may be null and you would get NPEs around the code, if you keep the Config.ALLOW_START_TITLE then you should set an empty String before, not in an else clause.

 

Have fun!

Link to comment
Share on other sites

As said Zoey you don't need like half the time boolean configs, as you can make a check based on value (> 0 or != 0 depending what you aim) if other config implies an int, or !isEmpty for String.

Link to comment
Share on other sites

I had a good laugh about the custom title.

 

I'd do it like this:

newChar.setTitle(Config.START_TITLE);

Where Config.START_TITLE is empty String as default and you could drop the useless boolean Config.ALLOW_START_TITLE

 

Although, not sure, but if you don't set something it may be null and you would get NPEs around the code, if you keep the Config.ALLOW_START_TITLE then you should set an empty String before, not in an else clause.

 

Have fun!

yeah, thats best solution. Anyway this is really serious problem, we need more ideas :D:D

Link to comment
Share on other sites

nice idea from you elfo but there are alot interlude projects like aCis L2J and so on.... maybe you could try to use Hi5. That's my opinion. Anyways good luck and wish you da best

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...