Jump to content

Recommended Posts

Posted

This is actually 'Transfer Adena' Voiced Command, which simply provides the target with an increased amount of adena.

Although you lack of some checks. Anyway, kinda useless but gj.

That's just a sample, i am not going to create 500 configs for this command like you always do, facepalm!

 

Yep.

 

@Codex ..do it following .transfer item-id count player :)

Good idea, i checked the createitem admin command ill do it later..

 

 

Enjoy.

Posted

That's just a sample, i am not going to create 500 configs for this command like you always do, facepalm!

 

Did I ever say that you need to make 500 configs?

Your system is 100% bypassable =]

And by the way don't use words whose meanings you don't understand.

 

PS: And once again I'll say that your code is 'limited'.

Posted

this can have a problem.

You dont check if the first person has adena to transfer, so if you dont have any adena and write .transfer the first person will get extra adena

Posted

Did I ever say that you need to make 500 configs?

Your system is 100% bypassable =]

And by the way don't use words whose meanings you don't understand.

 

PS: And once again I'll say that your code is 'limited'.

Stop replying configurable tard.

Posted

thx for reply :)

wtf spammer.

 

not usefull for me and for many others

I would never share something useful in this kind of forum rolf! Relax, all the shares here are useless.

Posted

Stop replying configurable tard.

 

Hahaha, you are a BIG Fail.

Is this okay for you, I mean can you understand this english, or should I bring a dictionary?

You dont check if the first person has adena to transfer, so if you dont have any adena and write .transfer the first person will get extra adena

 

Jeez, what a mega-idiot.

Posted
package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

 

import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;

import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

import net.sf.l2j.gameserver.serverpackets.InventoryUpdate;

import net.sf.l2j.gameserver.serverpackets.ActionFailed;

import net.sf.l2j.gameserver.util.Util;

import net.sf.l2j.gameserver.model.L2Object;

 

public class transferhelp implements IVoicedCommandHandler

{

private static String[] _voicedCommands =

{

"transfer"

};

 

public boolean useVoicedCommand(String command, L2PcInstance activeChar)

{

        if (Util.calculateDistance(activeChar, target, true) > 150)

        return false; 1

       

if (activeChar.getTarget() == null)

return false;

 

if (command.equalsIgnoreCase("transer"))

{

L2Object target = activeChar.getTarget();

 

// check if the target is missing and if it is a player.

if (target != null && target instanceof L2PcInstance)

((L2PcInstance)target).addItem("Transferred", 57, 10000000, target, true); //the item is transferred. 2

 

// remove the item the sender transferred.

activeChar.getInventory().reduceAdena("AdenaTransfer", 10000000, activeChar, null); 3

InventoryUpdate iu = new InventoryUpdate();

((L2PcInstance)target).sendMessage("You have been given 10.000.000 adena.");

activeChar.sendMessage("Your 10.000.000 adena dissapeared.");

activeChar.sendPacket(iu); 4

}

return true;

}

 

public String[] getVoicedCommandList()

{

return _voicedCommands;

}

}

 

I will avoid to take the risk and point out your getTarget() method, since I suppose that i will be flamed as well.

Let us take a look on what I have pointed out right now.

 

1. Isn't that check a little bit useless? And even if you decide to add it, make sure to inform the player with a message saying the reason why he can't transfer.

 

2. Avoid adding the item to the player first and removing them afterwards.

 

3. There is no check to see if the player has the proper quantity in his inventory. In this way, even if the player has 1 adena, the other adena will be successfully transfered, and the player will simply lose 1 adena. Pretty easy way to farm adena by making bots.

 

4. Kinda useless, ain't it? I mean, the result is the same even without it, check it out.

 


 

As an overall comment, I'll have to say that you creation lacks of the proper checking and has some bad-written methods.

Take your time to fix your errors and add the proper checks and I hope that you'll keep practicing on it.

 

PS: Making mistakes is not bad, just try to avoid them in simple codes like this one.

Posted

I will avoid to take the risk and point out your getTarget() method, since I suppose that i will be flamed as well.

Let us take a look on what I have pointed out right now.

 

1. Isn't that check a little bit useless? And even if you decide to add it, make sure to inform the player with a message saying the reason why he can't transfer.

 

2. Avoid adding the item to the player first and removing them afterwards.

 

3. There is no check to see if the player has the proper quantity in his inventory. In this way, even if the player has 1 adena, the other adena will be successfully transfered, and the player will simply lose 1 adena. Pretty easy way to farm adena by making bots.

 

4. Kinda useless, ain't it? I mean, the result is the same even without it, check it out.

 


 

As an overall comment, I'll have to say that you creation lacks of the proper checking and has some bad-written methods.

Take your time to fix your errors and add the proper checks and I hope that you'll keep practicing on it.

 

PS: Making mistakes is not bad, just try to avoid them in simple codes like this one.

 

damn i really like you :D

 

but you cant change them nobody can they think and always will think that such codes make them good

Posted

You dont check if the first person has adena to transfer, so if you dont have any adena and write .transfer the first person will get extra adena

Jeez, what a mega-idiot.

3. There is no check to see if the player has the proper quantity in his inventory. In this way, even if the player has 1 adena, the other adena will be successfully transfered, and the player will simply lose 1 adena. Pretty easy way to farm adena by making bots.

Posted

The code is awful and useless. I've also noticed the thing that you can make "free money" but you guys were faster ;) and i hope Coyote wasn't refering to adenaman :o

Posted

And i repeat...

I would never share something useful in this kind of forum rolf! Relax, all the shares here are useless.

 

Cayote you are a (i deleted myself the bad comments ;D)

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

    • I think you should check the video more carefully you missing something very important 😛      
    • Im responding to an anonymous account with 3 posts, almost no background, and practically zero useful information added to the discussion. On top of that, the topic title is misleading  calling it "Lucera Source Code" gives a completely different impression from what is actually being presented.   I didn’t say anything different. Therefore, I have no clue how his process produces the same desirable result.   And here you are creating drama. Your topic title clearly says "Lucera Source Code," which is not actually the case, or at least that’s how it looked when I first clicked on it, so I don’t think I was completely off. There’s also no significant information about your process like  what difficulties you faced, what tools you used, or anything else meaningful. Yet you still expect others to provide value based on what? I’m not talking about your project itself which, by the way, good job. I’m talking about the topic itself as a source of value for this forum, because right now it doesn’t really offer much in that regard. So regarding the semantics, yes, wording does matter.  
    • You are funny guy! 😄 😄 😄    I was working with Lucera long before “AI apps” became fashionable. This was not something I generated in one day with a prompt. It took me years of work, testing, debugging and fixing broken decompiled code.   Of course a decompiled source is not the original private repository with the original comments, history and developer structure. Nobody said it is the same Git repository. But saying it is only “guesses” is also wrong.   When you decompile, rebuild, fix thousands of compile/runtime issues, restore broken logic, reconnect scripts, fix bad casts, repair database calls, compile it again and run it in-game, at that point it is no longer just a guess.   It becomes a working reconstructed source base!   The important part is not whether it is byte-for-byte identical to the original private source. The important part is that I can now work directly inside the code, change core logic, rebuild scripts, fix bugs and continue development without being locked behind closed binaries.   Does it compile? Yes. Does it run in-game? Yes. Can I modify core systems directly? Yes. Can I continue development independently? Yes.   So call it reconstructed, decompiled, cleaned, restored or whatever name you prefer. The result is still the same: I have a working source environment that gives me control over the lucera2 project.   And that was exactly the goal!   🙂 
    • You clearly have no idea who you're talking to.   I've been working in the cheat industry for years and have developed cheats for multiple games, including projects that operate at kernel level and bypass protections far more advanced than anything Lineage 2 has ever had. Compared to that, Lineage 2 is low tier and technically simple.   As for the topic title, it's perfectly fine. The only thing I forgot is that this forum hasn't changed after all these years. It's still full of people who would rather argue semantics and act like experts than contribute anything meaningful to the discussion. Whether you call it reverse engineering, reconstruction, or educated guesses doesn't change the fact that the result works and achieves its purpose.   Honestly, I don't think there's any reason for me to keep posting here. Most of the replies add nothing of value and only prove why many experienced developers stopped sharing their work on this forum years ago.       Nobody said Lucera is a bad product. In fact, the reason people spend time decompiling it is because it is a good product and has value.   What I find funny is that everyone openly acknowledges that Lucera gets decompiled, yet when someone actually discusses the technical side of it, people suddenly act like it's some impossible or mythical process.   Reverse engineering software is nothing new. It has existed for decades and happens in every industry, from games to operating systems to commercial applications. Lucera is no exception.     I never said Deazer is a bad developer. Quite the opposite, he's a skilled developer and Lucera is one of the most stable projects I've worked with.   My only criticism is that, as a customer, you're heavily dependent on him. If he's willing to help, you'll get an answer quickly. If he's not interested in the issue or simply doesn't feel like dealing with it, then you're left to research and solve it on your own.   That's not necessarily a technical problem with Lucera itself, it's just one of the downsides of relying on a closed source project where a lot depends on a single developer.   From a stability standpoint, though, Lucera has always been among the best files available in my experience.
  • 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..