Jump to content
  • 0

Question

Posted

hello i do adapt baium java from acis last rev to frozen is working perfect but

the angels is not hit i try to fix it but nathing. is not show nathing error in console

and baium attack angel but angel is not attack baium. i want if any can help

for fix the problem

 

here is the code 

http://pastebin.com/rRc1r6wm

6 answers to this question

Recommended Posts

  • 0
Posted

no i change the ramdom target and again the angel is hit me if i am in boss zone but after i am dead is not

target baium and start attack

        public L2Character getRandomTarget(L2NpcInstance npc)
        {
                L2Character[] characters = new L2Character[_Zone.getCharactersInside().size()];
                int count = 0;
                for (L2Character cha : _Zone.getCharactersInside().values())
                {
                        if (! (cha instanceof L2PcInstance || cha instanceof L2Summon || cha instanceof L2DecoInstance)) continue;
                        if (! Util.checkIfInRange(9000, npc, cha, true)) continue;
                        if (cha.isDead()) continue;
                        if (cha.isAlikeDead()) continue;
                        if (cha.getZ() < npc.getZ() - 100 || cha.getZ() > npc.getZ() + 100) continue;
                        if (! GeoData.getInstance().canSeeTarget(cha.getX(), cha.getY(), cha.getZ(), npc.getX(), npc.getY(), npc.getZ())) continue;
                        characters[count++] = cha;
                }
                if (count > 0)
                {
                        QuestTimer timer = getQuestTimer("clean_player", null, null);
                        if (timer != null)
                                timer.cancel();
                        startQuestTimer("clean_player", 20000, null, null);
                        return characters[Rnd.get(count)];
                }
                return null;
        }
  • 0
Posted

if i have weapon he say my name like 

[1] target1 -> support

and after say

[2] target1 -> support target2 -> baium

 if i remove weapon say

[2] target1 -> null target2 -> baium

 

but again is not attack angel -> baium....

            else if (event.equalsIgnoreCase("angels_aggro_reconsider"))
            {
                boolean updateTarget = false; // Update or no the target
               
                for (L2NpcInstance minion : _Minions)
                {
                    L2Attackable angel = ((L2Attackable) minion);
                    if (angel == null)
                        continue;
                   
                    L2Character victim = angel.getMostHated();
                   
                    if (Rnd.get(100) < 10) // Chaos time
                        updateTarget = true;
                    else
                    {
                        if (victim != null) // Target is a unarmed player ; clean aggro.
                        {
                            if (victim instanceof L2PcInstance && victim.getActiveWeaponInstance() == null)
                            {
                                angel.stopHating(victim); // Clean the aggro number of previous victim.
                                updateTarget = true;
                            }
                            logcheck.info("[1] Target1 -> " +victim);
                        }
                        else
                            // No target currently.
                            updateTarget = true;
                    }
                   
                    if (updateTarget)
                    {
                        L2Character newVictim = getRandomTarget(minion);
                        if (newVictim != null && victim != newVictim)
                        {
                            angel.addDamageHate(newVictim, 0, 10000);
                            angel.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, newVictim);
                            logcheck.info("[2] Target1 -> " + victim + " Target2 -> " + newVictim);
                        }
                    }
                }
            }

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


  • Posts

    • buenas no puedo poner el server On para que entren mis amigos   LoginServer # ================================================= # Settings authorization server # ================================================= # Host and port for client connections LoginserverHostname = 127.0.0.1 LoginserverPort = 2106 # Host and port for game servers LoginHost = 192.168.100.25 ( mi Ip interna) LoginPort = 9014     GameServer   # =============================== # Network Configuration Server  # # =============================== # IP which Bind Game server, * - all possible GameserverHostname = * GameserverPort = 7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 186.158.144.71 ( Ip externa ovbio) # This is transmitted to the client from the same network, so it has to be a local IP or resolvable host name InternalHostname = 192.168.100.25 # AdvIpSystem Make more GameServerIDs. Every Ip should be Protected by a DDoS Guard. # Your Server will have Success with this system Online. AdvIPSystem = False # Address \ port LS LoginPort = 9014 LoginHost = 192.168.100.25 LoginUseCrypt = true # How to request ID of LS RequestServerID = 4 # Permission to take a different id, if requested busy AcceptAlternateID = False     en que estaria fallando ?    
    • mporeis na valeis l2jaCis i kapoio etimo project  free sources gia aCis edw https://acis.i-live.eu/index.php?topic=1974.0 server install ktl edw https://acis.i-live.eu/index.php?topic=10190.0 an dn vgaleis akrh steile mou discord margazeas2
    • Hello! I am new to l2 server creation and i need your help please!!! I want to make my own l2 interlude c6 server with custom thing in it.  I need help with where to start. What source pack to pick to start and what to do. Please if you can help me i would appreciate it very much !!!
    • Need Discord with rare badge? VISIT US AND SHOP WITH US! NEW STOCK   Aged, Early Supporter Discord Accounts I sell HQ Aged and Early, Discord Accounts that are inactive and not flagged by discord at cheap prices   If you want to contact me, you can add me on discord: worldcoldwar Features: Format - age : email : pass : token Not flagged and undetected by discord HQ % With OGE Emails, password etc can be changed Unverified Early Supporter 24M Boost Badge HypeSquad Events Early Verified Bot Developer Early Supporters SHOP LINK: disvault1.mypaylix.gg/ For PayPal payments, please open a ticket. If you experience any problems with cryptocurrency payments, please open a ticket as well.
  • 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..