Jump to content

Official Ovenuç® Flame topic (L2J Professionals)


xdem

Recommended Posts

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. :)

Link to comment
Share on other sites

Guest Elfocrash

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.

Link to comment
Share on other sites

where is the null check?

 

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

Link to comment
Share on other sites

Guest Elfocrash

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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?:

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest Elfocrash

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.

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • Well, sorry not sorry for resurrecting old topic, but I believe it's ultimately stupid to implement license checks like Vilmis did 🙂   private static String url = "jdbc:mysql://185.80.128.233/" + getData("Zm9ydW1fZGI="); private static String username = getData("bXJjb3B5cmlnaHQ="); private static String password = getData("Y29weXJpZ2h0XzEyMw=="); con = GlobalDB.getInstance().getConnection(); PreparedStatement statement; statement = con.prepareStatement("SELECT field_6 from core_pfields_content WHERE member_id = ?"); statement.setInt(1, Config.FORUM_USER_ID); ResultSet rset = statement.executeQuery();   This awesome way of coding things leaves us with base64-encoded credentials and DB exposed and accessible globally 😉 Btw he checks his licensing data from some plugin generated table his forum uses. Vilmis took action and ensured that mrcopyright user would have only needed accesses and rights for this operation. But he forgot to ensure that his INFORMATION_SCHEMA database would not be exposed and readable... That leads us to fully readable server variables like version used (10.1.26-MariaDB-0+deb9u1 - pretty ancient DB and OS, I'd assume). From here you can go south and do some kinky stuff, if you want and have knowledge for that. But who cares, right?   Ooh, table core_pfields_content field_6 is IP address which is checked by FORUM_USER_ID. Yep, you can query all IP addresses there (124 of them right now) and also do whatever you want with them! 🙂  The most fun part? Files source has been shared what, more than 2 years ago?  Vilmis still uses very same credentials and never changed it after sources exposure - who cares. Although, "sources" may be way too strong word here. If anyone still use paid Orion versions, I'd suggest packing your shit and leaving immediately, or at least fix this incompetent fool caused problems. It's obvious Vilmis don't care or maybe doesn't even know from the first place how to solve this problem (hint hint - tiny PHP Rest API microservice which would do absolutely the same but without exposing sensitive data?). By doing that, he exposes his infrastructure and YOUR data, and he does that for more than 2 years now 🙂 Developer of century!    
    • rename the l2.bin into l2.exe
    • L2LIVE.PRO- Dynamic Mid-rates Essence Seven Signs GRAND OPENING - July 5, 20:00 GMT+3 (EEST) TEST SERVER IS OPEN - COME AND CHECK IT OUT TODAY! Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu   Server description * EXP/SP: Dynamic (x1- x100 based on your level, *before* Sayha and EXP buffs * Adena: x50 / Item Drop: x10 / Fishing EXP increased / Attribute EXP increased * Simplified gameplay to stay in the loop while not spending hours and hours farming * Starter Pack containing very useful items for beginners * MP replenishing potions with auto-consumption * No overpowered donations L2LIVE shop * All spellbook coupons, pet spellbook coupons and master books are sold via Game Assistant * Additionally you can buy SP pouches, enchanted talismans, pet training guides and various other consumables for Adena and L-Coin * More items such as cloaks, more talismans, agathions, belts, pendants, enchantment scrolls of various grades, evolution stones, etc will be added! Shop server as a shortcut, and all retail-like ways of earning items are still here! L-Coins * Drops with small change and in random amounts from Lv60+ monsters  * All raidbosses drop random amount of L-Coin Pouches generating up to 420 Lcoin per unit. **Grand Olympiad and Events** * Grand Olympiad is held week day * Format is 1v1, unlimited weekly fights  * Heroes are declared weekly at Sunday * There are three automated events - TvT, CTF and Deathmatch, running at evenings * Orc Fortress, Battle with Balok, Keber Hunter, Archievements Box, Daily Gift Calendar provisional events are active too Custom user commands * .offlineplay command, your character will keep playing till death or server restart * .offlineshop command, keeps your shop sitting until all items are purchased * .apon / .apoff - enable/disable HP/MP autoconsume And lots of other small improvements are waiting for you!   Join our community and be part of it at: https://www.l2live.pro https://discord.gg/k3NMgR4Dmu
  • Topics

×
×
  • Create New...