Jump to content

Recommended Posts

Posted (edited)

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*
Posted (edited)
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*
  • 3 weeks later...
  • 2 weeks later...
Posted (edited)

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
  • 1 year later...
Posted

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
Posted

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.

Posted

 

 

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;
            }
  • Vision locked this topic
Guest
This topic is now closed to further replies.


  • Posts

    • I think that solves the freeze thing, anyway great share! 
    • Introducing: Daily & Weekly Missions!   I've released a major panel update with a new Missions system and expanded language support.   Players can now complete daily and weekly missions directly through the panel and claim rewards such as balance or items. Mission progress is tied to in-game activity and supported panel actions, and the update also adds a dedicated Missions page, dashboard mission previews, claimable mission indicators, and full admin tools for creating and managing missions.   The Roll page now shows the potential reward drops below the roll container.   Alongside this, I’ve expanded the panel’s language support with new locale options, including Bulgarian, Czech, Georgian, Lithuanian, Polish, Romanian, Japanese, Simplified Chinese, and Traditional Chinese.     The Demo is now updated with the new features for you to try out!
    • I sell complete packs. If you want to add an item, NPC, etc., you have to do that yourselves. Your friend bought the pack; he's the one who needs to configure his server type. He received what he bought as agreed, and I'm saying this without knowing who you're talking about, because anyone who buys something receives what was agreed upon.   Regards. mmmmm L2Velmore ????   If that's the one, I see everything went well... if I remember correctly you were crying over $100, I gave you a better price, and I suppose you made thousands with that... And you're still coming back to complain? :=)
    • I know many people have struggled with this specific issue and had trouble setting up the correct behavior for Toggle skills in aCis. By default, toggles interrupt the player's movement (retail-like), which often feels clunky to players who prefer a smoother, more modern experience. I've prepared a clean solution that eliminates this "freeze" and allows for fluid movement while toggling your auras. Below is the code on how to achieve this. Hope it helps! Changes in PlayerAI.java: Modified doActiveIntention to properly update the active state without stalling. Removed the forced stop() during toggle casting. Added a MoveToLocation broadcast to ensure other players see your movement correctly (prevents visual "teleporting" or desync). Best regards 😃 diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java index ba0425a..1b2658d 100644 --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/ai/type/PlayerAI.java @@ -28,6 +28,7 @@  import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;  import net.sf.l2j.gameserver.network.serverpackets.AutoAttackStart;  import net.sf.l2j.gameserver.network.serverpackets.ChairSit; +import net.sf.l2j.gameserver.network.serverpackets.MoveToLocation;  import net.sf.l2j.gameserver.network.serverpackets.MoveToLocationInVehicle;  import net.sf.l2j.gameserver.network.serverpackets.MoveToPawn;  import net.sf.l2j.gameserver.network.serverpackets.StopMove; @@ -159,7 +160,10 @@      @Override      public synchronized void doActiveIntention()      { -        doIdleIntention(); +        prepareIntention(); +        _currentIntention.updateAsActive(); +        if (!getActor().isMoving()) +            thinkIdle();      }            @Override @@ -280,8 +284,9 @@                    if (skill.isToggle())          { -            getActor().getMove().stop();              getActor().getCast().doToggleCast(skill, target); +            if (getActor().isMoving()) +                getActor().broadcastPacket(new MoveToLocation(getActor()));          }          else          { https://pastebin.com/twZujZ3Y
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..