Jump to content

Recommended Posts

Posted

w0w, hello MxC. Today while i was searching in L2J Forums i found something freaking cool.

 

- I am not sure if is working - I haven't tested it.

 

That's how it works:

<a action="bypass -h npc_%objectId%_GiveBuffs SkilldId SkillLvl PriceItemId Priceammount">get buff XXXX</a>

See ?? You write after GiveBuffs(space)SkillId(space)SkillLvl(space)PriceItemId(space)Priceammount.

 

Here is a real Example.

<a action="bypass -h npc_%objectId%_GiveBuffs 1204 2 57 5000000">get buff XXXX</a>

1204 ( The id of the skill ), 2 ( Skill level or buff level ), 57 ( Is adena, id of adena ), 500000 ( The ammount of adena, for this buff )

 

^^ is windwalk Buff, level 2. And you get this for xxxxx adena.

 

This is the simple diff, for this function:

Index: D:/Workspace/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java
===================================================================
--- /java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java	(revision 2501)
+++ /java/net/sf/l2j/gameserver/model/actor/instance/L2NpcInstance.java	(working copy)
@@ -890,6 +891,27 @@
                html.replace("%playername%", player.getName());
                player.sendPacket(html);
            }
+            else if(command.startsWith("GiveBuff")){
+            	String[] params = command.split(" ");
+            	int SkillId 	= Integer.parseInt(params[1]);
+            	int SkillLvl 	= Integer.parseInt(params[2]);
+            	int ItemId 	= Integer.parseInt(params[3]);
+            	int ItemAmmount = Integer.parseInt(params[4]);
+            	int Ammount 	= player.getInventory().getItemByItemId(ItemId).getCount();
+            	L2Item item = ItemTable.getInstance().getTemplate(ItemId);
+
+            	if(Ammount < ItemAmmount)
+            	{
+            		player.sendMessage("You don't have enough " + item.getName() + " to get this buff." );
+            		player.sendMessage("You need " + ItemAmmount + " " + item.getName() + " to be able to get this buff.");
+            	}
+            	else
+            	{
+            		player.getInventory().destroyItemByItemId("getting buffs", ItemId, ItemAmmount, player, null);
+            		L2Skill skill = SkillTable.getInstance().getInfo(SkillId, SkillLvl);
+            		skill.getEffects(this, L2Character.class.cast(player));
+            	}
+            }
            else if (command.equalsIgnoreCase("TerritoryStatus"))
            {
            	NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); 

 

Credits: L2JForum

Posted

Easier : Make a phyton and change ITEM_ID and price of bufs xD

Python sucks, and always STUCKS.

 

man no make double post...!!:S btw this can be hacked?

For now yes..

 

wait wait, is this for a buffer .. or? i didnt understand.

Also if its not protected why do you share it?

Because i want.

Posted

Note: This function is not reccomended !, Hackers may send packets ! Although with some protections :D It can be useful. I will try to protect it.

idiot..

you can always make a check if the player is in peace zone or not >.<

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

    • The client and the system aren't working very well; the screen is black, and some things aren't loading.  😞 
    • LINEAGE2.SK Summer Season is Comming! GRAND OPENING - 14.08.2026 at 20:00 GMT+1  OBT - 07.08.2025 at 20:00 GMT+1   Website :https://lineage2.sk Discord : https://discord.gg/gj7AC5juGP       Server Features and Rates Xp – 20x Sp – 20x Adena – 10x Drop – 15x Spoil - 15x  Epic Raid Boss  - 1x Regular RB - 5x  Quest - 5x Fame - 2x Epaulette - 15x Manor - 15x     Special Features Somik Interface Limited AutoFarm Vote System Champions System Achievement System And more in information below     Enchant Settings  Safe Enchant: +3  Max Enchant: +16 Enchant Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%     NPC Buffer all buffs, songs, dances including 3rd prof + resists Buff Slots: 24 (+4) / 12 Buff Duration: 2 Hours     Epic Bosses & Respawns Queen Ant: 24 hours +/-8h Core: 3 days +/-8h Orfen: 2 days +/-8h Baium: 5 days +/-8h Beleth: 7 days +/-8h Antharas: 7 days +/-8h Valakas: 7 days +/-8h     Instances Zones Zaken: 6 players Normal Freya: 6 players Hard Freya: 12 Players Frintezza: 6 Players Tiat: 6 Players Beleth: 12 Players     GM Shop weapon/armor/jwl (max S grade) shots/spiritshots (max S grade) mana potions (1000 MP, 10s)      Global Gatekeeper all towns including cata/necro ToI Gracia Hellbound ...     Olympiad period 7 days (Monday) no class participants min 6 base class participants min 6 max enchant +6 Start points 20     Class Transfer for Adena     Subclass Quest Not required Max Subclass 3 Subclass Max LvL 85     Events Team vs Team Capture the Flag Death Match Last Hero Korean Style Treasure Hunt      Clans All new clans start with Clan LvL 5! Clan Skills/LvL for Clan Coins     Others  max 3 windows per HWID  BoM/MoM spawned in towns Auto-learn skills Autoloot Retail LvL of Epic Bosses Cancellation return buff system (30sec) Cancellation return buff -  not effect olympiad
    • LINEAGE2.SK Summer Season is Comming! GRAND OPENING - 14.08.2026 at 20:00 GMT+1  OBT - 07.08.2025 at 20:00 GMT+1   Website :https://lineage2.sk Discord : https://discord.gg/gj7AC5juGP       Server Features and Rates Xp – 20x Sp – 20x Adena – 10x Drop – 15x Spoil - 15x  Epic Raid Boss  - 1x Regular RB - 5x  Quest - 5x Fame - 2x Epaulette - 15x Manor - 15x     Special Features Somik Interface Limited AutoFarm Vote System Champions System Achievement System And more in information below     Enchant Settings  Safe Enchant: +3  Max Enchant: +16 Enchant Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%     NPC Buffer all buffs, songs, dances including 3rd prof + resists Buff Slots: 24 (+4) / 12 Buff Duration: 2 Hours     Epic Bosses & Respawns Queen Ant: 24 hours +/-8h Core: 3 days +/-8h Orfen: 2 days +/-8h Baium: 5 days +/-8h Beleth: 7 days +/-8h Antharas: 7 days +/-8h Valakas: 7 days +/-8h     Instances Zones Zaken: 6 players Normal Freya: 6 players Hard Freya: 12 Players Frintezza: 6 Players Tiat: 6 Players Beleth: 12 Players     GM Shop weapon/armor/jwl (max S grade) shots/spiritshots (max S grade) mana potions (1000 MP, 10s)      Global Gatekeeper all towns including cata/necro ToI Gracia Hellbound ...     Olympiad period 7 days (Monday) no class participants min 6 base class participants min 6 max enchant +6 Start points 20     Class Transfer for Adena     Subclass Quest Not required Max Subclass 3 Subclass Max LvL 85     Events Team vs Team Capture the Flag Death Match Last Hero Korean Style Treasure Hunt      Clans All new clans start with Clan LvL 5! Clan Skills/LvL for Clan Coins     Others  max 3 windows per HWID  BoM/MoM spawned in towns Auto-learn skills Autoloot Retail LvL of Epic Bosses Cancellation return buff system (30sec) Cancellation return buff -  not effect olympiad
  • 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..