Jump to content

Faction code for l2jacis 365


Recommended Posts

Hello i found a code in another forum and i post here. 

working fine in acis 365

Gameserver:

http://pastebin.com/Pc2ZxS1L gameserver

http://pastebin.com/ArftpRKH DataPck

some pictures

2q1bdxf.jpg&key=46055cd4847a705557d7e13e

24vmf51.jpg&key=0fb2c1f787020c32c9442111

2a5y7ti.jpg&key=f31155a9cb2a4fd8d6c2375c

9funi8.jpg&key=36f90322ab9000a4327b28d4b

i3du6s.jpg&key=fccd9e1fe632871347408e1f5

Edited by PaRaNoiC*
Link to comment
Share on other sites

On 16/10/2017 at 2:30 AM, Rumble said:

why you post your topic in my topic?

you give datapack/gameserver

i give only code. :)

Edited by PaRaNoiC*
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

the code is poorly written and its missing to many checks/protections its a basic "i am blue" and "you are red" with so many useless if statements, bad handle of try with resources  http://prntscr.com/ha9m9a

you could at least update/fix it instead of found and share cause not all knows how to edit

Edited by Nightw0lf
Link to comment
Share on other sites

  • 1 year later...

You have an empty config in your properties / you forgot to paste the config to properties and by default its empty on config.java

 

To find out which config is that, go to Config.java 1483 line.

  • Thanks 1
Link to comment
Share on other sites

Thanks for the tip ... was there value not enough.

 

  1. +# Annnounce Faction Players
  2. +# Values Are In Minutes
  3. +AnnouncePlayersDelay =

Kara's nervous? I'm a noob at java but trying to understand and Yes I code it wrote.

Link to comment
Share on other sites

 

 

Now there is another problem (the factions can beat each other in the city with a simple attack, but with skills they cannot ... what check to prohibit in cities to beat with a simple attack? I suppose something is necessary here

 

  1.     public void updatePvPStatus()
        {
            if (!issfaction() || !isffaction())
            {
                return;
            }
                    if (isInsideZone(ZoneId.PVP))
            {
                return;
            }
            PvpFlagTaskManager.getInstance().add(this, Config.PVP_NORMAL_TIME)
            if (getPvpFlag() == 0)
            {
                updatePvPFlag(1);
            }
        }
        public void updatePvPStatus(Creature target)
        {
            final Player player = target.getActingPlayer();
            if (player == null)
            {
                return;
            }
            if (isInDuel() && player.getDuelId() == getDuelId())
            {
                return;
            }
            if (player.issfaction() || player.isffaction())
            {
                return;
            }
Link to comment
Share on other sites

  • Vision locked this topic
Guest
This topic is now closed to further replies.


×
×
  • Create New...