Jump to content

[CODE] When you select item Spawn msg Wht rate have*


GsL

Recommended Posts

 

Hello ppl i share this code because i buy it for 10e but not working for me becuase i dont

I say to Vampir to fix it code * When you select item send you msg wht echant rate have

and he fix me this ,this is for standar echant rates enjoy ( L2jfrozen Interlude )

 

 

 

 

 

Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/EnchantScrolls.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/EnchantScrolls.java	(revision 948)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/EnchantScrolls.java	(working copy)
@@ -18,6 +18,7 @@
  */
package com.l2jfrozen.gameserver.handler.itemhandlers;

+import com.l2jfrozen.Config;
import com.l2jfrozen.gameserver.handler.IItemHandler;
import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
@@ -67,6 +68,26 @@
		L2PcInstance activeChar = (L2PcInstance) playable;
		if(activeChar.isCastingNow() || activeChar.isCastingPotionNow())
			return;
+		
+		if(item.getItemId() == 6569 || item.getItemId() == 6571 || item.getItemId() == 6573 || item.getItemId() == 6577)
+			activeChar.sendMessage("There is "+Config.BLESS_ARMOR_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 6570 || item.getItemId() == 6572 || item.getItemId() == 6574 || item.getItemId() == 6578)
+			activeChar.sendMessage("There is "+Config.BLESS_WEAPON_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 6569 || item.getItemId() == 6571 || item.getItemId() == 6573 || item.getItemId() == 6577)
+			activeChar.sendMessage("There is "+Config.BLESS_JEWELRY_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 954 || item.getItemId() == 950 || item.getItemId() == 732 || item.getItemId() == 962)
+			activeChar.sendMessage("There is "+Config.CRYSTAL_ARMOR_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 953 || item.getItemId() == 949 || item.getItemId() == 731 || item.getItemId() == 961)
+			activeChar.sendMessage("There is "+Config.CRYSTAL_WEAPON_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 954 || item.getItemId() == 950 || item.getItemId() == 732 || item.getItemId() == 962)
+			activeChar.sendMessage("There is "+Config.CRYSTAL_JEWELRY_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 951 || item.getItemId() == 947 || item.getItemId() == 959 || item.getItemId() == 729)
+			activeChar.sendMessage("There is "+Config.NORMAL_WEAPON_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 952 || item.getItemId() == 948 || item.getItemId() == 960 || item.getItemId() == 730)
+			activeChar.sendMessage("There is "+Config.NORMAL_ARMOR_ENCHANT_LEVEL.get(4)+"% chance of success!");
+		else if(item.getItemId() == 952 || item.getItemId() == 948 || item.getItemId() == 960 || item.getItemId() == 730)
+			activeChar.sendMessage("There is "+Config.NORMAL_JEWELRY_ENCHANT_LEVEL.get(4)+"% chance of success!");
+			

		activeChar.setActiveEnchantItem(item);
		activeChar.sendPacket(new SystemMessage(SystemMessageId.SELECT_ITEM_TO_ENCHANT));

 

Credits : me for idea and money & Vampir for coding :)

 

Link to comment
Share on other sites

And yes, you DO need this shit. Because if noone gives you this shit, you will keep getting scammed by people trying to take your money.

 

Secondly, you need to provide the full class or method code for someone to tell you what's wrong with it, not just the patch. It might be an incompatibility between your code and the patch that makes it not play well in your project.

Link to comment
Share on other sites

And yes, you DO need this shit. Because if noone gives you this shit, you will keep getting scammed by people trying to take your money.

 

Secondly, you need to provide the full class or method code for someone to tell you what's wrong with it, not just the patch. It might be an incompatibility between your code and the patch that makes it not play well in your project.

 

i m not trying to steal any1 sweet  money will send from a trust person from staff* if some1 know to fix that just send me pm all u say wht is shit who is pro here to fix it? anyway i share it if some1 want it .

Link to comment
Share on other sites

I didn't say you are trying to steal money. I said THEY are trying to steal money from YOU. Can't you understand english ? And yes I'm the pro you are talking about and I can fix it.

 

 

But I won't.

 

Cause I dont need your money and most of all I don't like your face.

Link to comment
Share on other sites

I didn't say you are trying to steal money. I said THEY are trying to steal money from YOU. Can't you understand english ? And yes I'm the pro you are talking about and I can fix it.

 

 

But I won't.

 

Cause I dont need your money and most of all I don't like your face.

 

[GR] Epidi me ta agglika alla lene alla katalavenw s zitisa omorfe na m kaneis tin xari? eleoc eisai

apla ela ligo stin thesi tou malaka* (p eimai egw) k meta pekse to Egw kserw alla den sto ftiaxnw epidi dn m aresei fatsa sou  , 1st den sou zitisa to suport sou apla ekana share auto to skoupidi epidi kapoios isws to need k 2on isws iksere kapoios na m to fixari se parakalw stmata na spamaris [GR]

Link to comment
Share on other sites

this is shared, lol.

 

y i give him that code shared code and he change 2 3 word..

i dont wanna report he becuase he create another code and work perfect but he f@ck me here :)

 

[Gr] gr gt isws mhn katalaves ta agglika mou* Tou edwsa to code tou Rizlaaa etsi nmz ton lene k tou lew mporeis na m to kaneis etsi k etsi k m leei nai k m ton kanei add k m leei ok twra mpenw mesa k vlepw alla ntalon tou lew egw s zitisa allo k esu m ekanes allo k m leei auto p les den ginete k lew Na ma ste :) [Gr]

Link to comment
Share on other sites

Really dunno how it works on interlude but... why to not try something like that.

 

### Eclipse Workspace Patch 1.0
#P L2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java	(revision 948)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestEnchantItem.java	(working copy)
@@ -76,6 +76,8 @@
	};

	private int _objectId;
+	private int counter = 0;
+	L2ItemInstance itemc = null;

	@Override
	protected void readImpl()
@@ -544,6 +546,21 @@
		{
			chance = (Integer) aChance;
		}
+		
+		if(counter == 0 || itemc != item)
+		{
+			activeChar.sendMessage("There is "+chance+"% chance of success!, please press the button again.");
+			activeChar.sendPacket(new ItemList(activeChar, true)); 
+			itemc = item;
+			counter = 1;
+			return;
+		}
+		else if (counter == 1 && itemc == item)
+		{
+			counter = 0;
+			itemc = null;
+		}
+				
		synchronized (item)
		{
			if(rndValue < chance)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • I can use this folder system for High Five offline server?   The folder does not have a l2.exe file.   Thank you very much if anyone can help me.   https://drive.google.com/file/d/13kU-g_4JJ-sP-kg2F7pqkUOVKmQdubFm/view
    • I know, but...every time I have problem with IP address setup 😞
    • ENGLISH As you know, we have always profiled in the development of Java emulators, we continue to do our favorite thing, and now we have the opportunity to provide you with services in the field of private development of L2 assemblies Essence, Classic and High Five, which we have been doing in recent years, we have not been working on basic builds for a long time and work only on contracts for the world's best projects. These are the best builds we can offer, we have test servers and we can show them to you on the test, and if you are very good at gameplay, you will see a big difference in the quality and detail of the official content compared to the basic builds. These are the best top solutions in the world, which are currently used to implement the largest projects in the world. We guarantee 100% implementation of all official content. If you have any questions about testing, discussions, etc., please contact our studio and we will discuss everything. At the moment, you can get acquainted with the preliminary information and prices for Private L2 contracts here: Private Server packs L2 Essence 464, 447, 388, 362, 286 protocols Private server packs L2Classic Private server pack High Five РУССКИЙ --------------------------------------------- Как вы знаете мы всегда профилировались на разработке в сфере Java эмуляторов, мы продолжаем заниматься своим любимым делом, и сейчас у нас появилась возможность предоставлять вам услуги в сфере приватных разработок L2 сборок Essence, Classic и High Five, которыми мы занимаемся последние годы, мы уже давно не работаем над базовыми сборками и работаем только на контрактах для лучших мировых проектов. Это лучшие сборки, которые мы можем предложить, у нас есть тестовые сервера, и мы можем показать их вам на тесте, и если вы очень хорошо разбираетесь в игровом процессе, вы увидите большую разницу в качестве и детализации официального контента по сравнению с базовыми сборками. Это лучшие топовые решения в мире, которые на данный момент используются для реализации крупнейших проектов в мире. Мы даем гарантии - 100% реализации всего официального контента. По вопросам тестирования, обсуждений и тд - пишите по контактам нашей студии и мы все обсудим. На данный момент вы можете ознакомиться с предварительной информацией и ценами на Приватные контракты L2 тут: Приватные Сборки L2 Essence 464, 447, 388, 362, 286 protocols Приватные Сборки L2Classic Приватная Сборка High Five -------------------------------------------------------------- Contacts: Telegram: https://t.me/L2scripts Whatsapp, Viber: +1 (916) 226 1910 С уважением, Администрация !
  • Topics

×
×
  • Create New...