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

    • Nothing about high five is hardcore even at x1, such easy Chronicle. 
    • This is actually very interesting, i've seen similar concepts applied to different games (even single-player games such as skyrim with PrismaUI Prisma UI - Next-Gen Web UI Framework at Skyrim Special Edition Nexus - Mods and Community ) if it works seamlessly with the client then it would be insane. I believe everyone is tired of getting cancer with xdat/flash/.uc edits
    • Dragic is a trusted guy—buy with confidence. The feature list looks incredibly solid, and you've clearly put a ton of work into this pack. Good luck with the sale, mate!
    • Im Selling my Interlude server L2wish only The Data and Core of L2wish based on lucera2 files with source code reconstructed which i did a long time ago. Im not selling the servername copyrights logos launcher etc only server data and source code, including Essence Interface reworked with interface source also.      EXP/SP: x75  Adena: x20  Drop: x20  Spoil: x20  Seal Stones: x5  Fangs of Stakato: x5  Raid Boss EXP/SP: x75  Raid Boss Drop: x1  Epic Boss Drop: x1  Manor: x5  Safe Enchant: +3  Max Enchant: Unlimited   Normal Scroll S/A Grade: 50%   Blessed Scroll S/A Grade: 55%    Normal Scroll B/C/D Grade: 50%    Blessed Scroll B/C/D Grade 55%  Max clans in ally (2)  3rd Class Cost (700 Halisha's Mark from Shrine of Loyalty)  NPC Buffer with 3h buff duration  GM Shop until B-Grade  Mana Potions  (1000 Power Delay 10 Seconds)  Auto-learn skills   Buff Slots (22+4 extra with Divine Inspiration)  Autopickup  Auction House in NPC at all towns  Offline Stores  Max Clients per PC (2)  Retail Geodata and Pathnodes  Reworked movement  Shift + Click Droplist on Monsters  Alt + Click Remove Buffs  Global Shout & Trade Chat  Special akamanah and zariche transformation  Seven Sings (Open)  Olympiad Weekly Circle  Olympiad Non-class  (5 min participants to begin)  Olympiad Class based (5 min participants to begin)  Tyrannosaurus drop Top LS chance 20% 5 Minutes Respawn  Flames of Invincibility cast 5 sec / duration 30 sec  Premium Account System  Auto Farm system using 10th Skill Bar.  IMPROVED RING OF CORE +1 STR +1 INT • INCREASE M. ATK. AND P. ATK.  IMPROVED EARRING OF ORFEN +1 WIT • INCREASE CASTING SPEED.  Subclass Quest           Part I: Kill Cabrio (Aden-Seal of Shilen) Talk to the box and bring the item to Subclass Quest           NPC.           Part II: Go for Hallate TOI 3, Kernon TOI 8 and Golkonda TOI 11, (Regardless of the order)           kill them, talk to the boxes and bring the sticks to Subclass Quest NPC to redeem your           subclass item.    Vote Reward System with Vote Coins and 12 Hours Vote Rune.  Vote Rune increases your P. Def and M. Def by 6%, P. Attack and M. Attack by 4%, Movement Speed by 4%.  Duration 12 Hours   Quest Name Drop  Relics of the Old Empire x4-8  Gather The Flames x3  Alliance with the Ketra Orcs x5  Alliance with the Varka Silenos x5  War with Ketra Orcs x10  War with the Varka Silenos x10  The Finest Food x5  A Powerful Primeval Creature x5  Rise and Fall of the Elroki Tribe x8  Legacy of Insolence x6-50%  Exploration of Giants Cave Part 1 x3  Exploration of Giants Cave Part 2 x3   Seekers of the Holy Grail x10   Guardians of the Holy Grail x10  Hunt of the Golden Ram Mercenary Force x10  The Zero Hour x5  Delicious Top Choice Meat x1  Heart in Search of Power x1  Whisper of Dreams 1/2 x3  In Search Of Fragments Of The Dimension x1 Raid Boss Name LvL Respawn  Frintezza    80 Respawn 48 Hours + - 30 Min  • Frintezza’s Necklace drop chance is 100%  Valakas    80 Respawn 240 Hours + - 30 Min  Sleep time 30 Minutes • Necklace of Valakas drop chance is 100%  Antharas    80 Respawn 192 Hours + - 30 Min  Sleep time 30 Minutes • Earring of Antharas drop chance is 100%  Baium    80 Respawn 120 Hours + - 30 Min  Sleep time 30 Minutes • Ring of Baium drop chance is 100%  Zaken    80 Respawn 48 Hours + - 30 Min  Door Open 22:00 in the night • Zaken’s Earring drop chance is 100%  Orfen    80 Every 24 Hours -+ 20 Minutes  • Earring of Orfen drop chance is 30%  Core    80 Every 26 Hours -+ 20 Minutes   • Ring of Core drop chance is 30%  Ant Queen    80 Every 28 Hours -+ 20 Minutes • Ring of Queen Ant drop chance is 30%  Splendor Barakiel    80 Spawn 6 Hours + - 15 Min Random  Subclass - Cabrio    80 Spawn 6 Hours + - 15 Min Random  Subclass - Hallate    80 Spawn 6 Hours + - 15 Min Random  Subclass - Kernon    80 Spawn 6 Hours + - 15 Min Random  Subclass - Golkonda    80 Spawn 6 Hours + - 15 Min Random   Ketra's Hero Hekaton    80 Spawn 22 Hours + - 15 Min Random   Ketra's Commander Tayr    80 Spawn 22 Hours + - 15 Min Random  Varka's Hero Shadith    80 Spawn 22 Hours + - 15 Min Random   Varka's Commander    80 Spawn 22 Hours + - 15 Min Random   Command Description .getreward Get vote reward from Hopzone. .rune Your Rune Informations. .menu Personal Menu Options. .raid Shows Normal Raids & Respawn. .epic Shows Epic Raids & Respawn. .rewards Get your Achievments. .offline Offline Shops. .relog Clearing your cache fps.     Source code reconstructed from my Lucera2 project.             Akamanah/Zariche transformation (This video was with an old interface version).             Contact me for more informations, trollers will be not answered and don't expect a low price or a price drop. This project was running with 500+ real players.
  • 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..