Jump to content

Recommended Posts

Posted

AHAHAHAH I WILL CRY NOW THEY PUT THAT CODE

 

ESI RE ELFO SE PARAKALW MIN PERNIS MEROS SE KOUBENTA PIGENE MA8E TI KANEI TO DOATTACK KAI TO DOCAST KAI META ELA NA BGALIS GNWMI.. AN LEW PSEMATA OTI TO ELEGES ROTAME KAI TRYSKEL..

 

OSO GIA AUTO TWRA MPIKE KAI PALI EINAI AXRISTO KAI DEN EINAI GIA TO L2PHX EINAI GIA TA MOBS!!!

 

So you say that you are better than everyone right? Okay sir.

 

L2jfree:

 

protected void doAttack(final L2Character target)

{

if (_log.isDebugEnabled())

_log.debug(getName() + " doAttack: target=" + target);

 

if (isAlikeDead() || target == null || (this instanceof L2Npc && target.isAlikeDead())

|| (this instanceof L2PcInstance && target.isDead() && !target.isFakeDeath()))

{

// If L2PcInstance is dead or the target is dead, the action is stoped

getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);

 

sendPacket(ActionFailed.STATIC_PACKET);

return;

}

 

And before you call l2jfree devs noobs, think about the fact that l2jfree in private is now a multiplatform, multichronicle supported, lindvior pack with things that l2j never seen before. Also they make the code you make(can be anything) faster and code it much better. So either you admit that your wrong and you crawl back to the hole you came from or we are just going to rip your ego apart. :)

Guest Elfocrash
Posted

if (!isAlikeDead() && target != null)

{

if (this instanceof L2Npc && target.isAlikeDead()

 

 

from what you linked. What are you trying to say?

 

 

Actualy you say remove null from doAttack and go cast prominence skills from sorcer class with out that cast.. :)

Yeah and i said what it does while you doattack at the same time. Nvm i wont stick on that.

Posted

where is the null check?

 

Im laughing so hard! Man please continue with this your making my day! :DDDDDDDDDDDDDDDDDDDDDDDDDDDD

Guest Elfocrash
Posted

where is the null check?

Are you blind?

 

// =========================================================

// Method - Private

/**

* Launch a physical attack against a target (Simple, Bow, Pole or Dual).<BR><BR>

*

* <B><U> Actions</U> :</B><BR><BR>

* <li>Get the active weapon (always equiped in the right hand) </li><BR><BR>

* <li>If weapon is a bow, check for arrows, MP and bow re-use delay (if necessary, equip the L2PcInstance with arrows in left hand)</li>

* <li>If weapon is a bow, consume MP and set the new period of bow non re-use </li><BR><BR>

* <li>Get the Attack Speed of the L2Character (delay (in milliseconds) before next attack) </li>

* <li>Select the type of attack to start (Simple, Bow, Pole or Dual) and verify if SoulShot are charged then start calculation</li>

* <li>If the Server->Client packet Attack contains at least 1 hit, send the Server->Client packet Attack to the L2Character AND to all L2PcInstance in the _KnownPlayers of the L2Character</li>

* <li>Notify AI with EVT_READY_TO_ACT</li><BR><BR>

*

* @param target The L2Character targeted

*

*/

protected void doAttack(L2Character target)

{

if (Config.DEBUG)

_log.fine(getName()+" doAttack: target="+target);

 

if (!isAlikeDead() && target != null)

{

if (this instanceof L2Npc && target.isAlikeDead()

|| !getKnownList().knowsObject(target))

{

getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);

sendPacket(ActionFailed.STATIC_PACKET);

return;

}

else if (this instanceof L2PcInstance)

{

if (target.isDead())

{

getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);

sendPacket(ActionFailed.STATIC_PACKET);

return;

}

 

L2PcInstance actor = (L2PcInstance)this;

/*

* Players riding wyvern or with special (flying) transformations can do melee attacks, only with skills

*/

if ((actor.isMounted() && actor.getMountNpcId() == 12621)

|| (actor.isTransformed() && !actor.getTransformation().canDoMeleeAttack()))

{

sendPacket(ActionFailed.STATIC_PACKET);

return;

}

}

}

 

if (isAttackingDisabled())

return;

 

 

God i though you were not so stupid...

Posted

where is the null check?

 

 

do you know what is the code there?

 

if (!isAlikeDead() && target != null) 

 

so the null check is not for phx :)

 

1555682.jpg

Posted

i listen here that null method is calling for l2phx and i wander somthing how is possible to attack to null target?

 

if it's null, it returns (it breaks it).

Posted

i listen here that null method is calling for l2phx and i wander somthing how is possible to attack to null target?

 

thats why the null check is there, to make it impossible to attack null target  :you serious?: :you serious?: :you serious?: :you serious?:

Posted

1555682.jpg

 

ahhaha you say that method is for phx elfo says that method is calling for skills (min me kaneis na balo sinomilia... nomizes oti to doattack elenxei kai ta skills)

 

and intrepid he says the same thing for l2phx

 

 

 

ok i will remove the null check  != null and i will test it now

Guest Elfocrash
Posted

i listen here that null method is calling for l2phx and i wander somthing how is possible to attack to null target?

Pfff let me explain it in even simpler words. This is not a Double check because the one is in the AttackRequest fine and the other is in the L2Character or whatever file. Yeah it passes through

both files so it might be a double check for L2phx BUT for java coding as a sum it is a MUST check to prevent NPEs which will cuz memory leaks and fuck up your stability. Dont think what

you do as a player and that this might look impossible. L2Char or PcInst are huge classes with 24/7 used methods. If these methods are not null checked then you are fucked.

 

 

I cant make it simpler.

Posted

ahhaha you say that method is for phx elfo says that method is calling for skills (min me kaneis na balo sinomilia... nomizes oti to doattack elenxei kai ta skills)

 

and intrepid he says the same thing for l2phx

 

ok i will remove the null check  != null and i will test it now

 

okay, change doAttack to throws

 

protected void doAttack(L2Character target) throws NullPointerException  :troll: :troll:

Guest
This topic is now closed to further replies.



  • Posts

    • ElmoreLab Harbor - Eternal C1 x1: ✅ https://harbor.elmorelab.com ElmoreLab Harbor - Eternal C1 x1 - is an exclusive server of the Eternal C1 chronicles from the top project ElmoreLab Harbor.   A unique server of its kind, on which everyone will have maximum pleasure, such as oldschool players who dream of nostalgia and to feel the warmest and classic C1 chronicles, as well as experienced players who are tired of thousands unbalanced servers of late chronicles. Due to the professional corrections of the balance system and the HONEST gameplay system - on this server, EVERY player will feel like in their own, warm and cozy Harbor C1. Let's return to the origins of L2 - back to 2004 in C1! ❤️   ⭐ Server characteristics:   STRICTLY 1 window, NO BOXES Bans for RMT and bots/cheats No donations with benefits Unique and high-quality PTS-build from Master Toma Professional corrections and full class-balance Reworked economy and closed all abuses Improved animations and all aspects of the game Exclusive HD-client with high-quality textures Experienced administration and management Fixed all bugs, geodata, exploits and holes Maximum sociality due to the 1-box system Discovering, exploring and researching Big online International server Nostalgia and oldschool-feelings   Rates: x1 Server start: 14.02.2025   The server is at the final stages of development and preparation for release. Information on the server will be updated, soon the patchnotes and changes/edits will be posted. Don't miss the legendary and epic experience on the best server in the last 20 years! ❤️ Join our C1-forum with a lot of information about server and active discussions.   ⭐ Website: https://harbor.elmorelab.com   ✅ Forum: https://forum-harbor.elmorelab.com   💥 Telegram: https://t.me/l2harbor https://t.me/l2harbor_chat   ⚡ Discord: https://discord.gg/harborelmorelab
    • yeah ok, if you say what is fuctional 100% i can't say something different 😛  but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
    • I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
    • hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.  I have access to modify everything even to make the clock to stop show how many time users play in server. 1) so maybe keep some personal info more hide. 2) i dont use ogg.dll 3) i create it and give it ready + support to install it. Plus what is mine can working with what ever .exe you want not just l2 with same simple method. And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too thats my source
  • Topics

×
×
  • Create New...