InFocus
Members-
Posts
306 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by InFocus
-
Help Html Setting (Gm Shop)
InFocus replied to InFocus's question in Request Server Development Help [L2J]
OK, <td align=center><button value="Sell" action="bypass -h npc_%objectId%_Sell" width=110 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td> -
Help Html Setting (Gm Shop)
InFocus replied to InFocus's question in Request Server Development Help [L2J]
It is gm shop, i download from inthernet. and where i can put that super.onBypassFeedback. At L2MerchantInstance.java? -
Help Html Setting (Gm Shop)
InFocus replied to InFocus's question in Request Server Development Help [L2J]
L2jServer (High Five) -
Help Html Setting (Gm Shop)
InFocus replied to InFocus's question in Request Server Development Help [L2J]
[28/09 16:00:18] L2MerchantInstance: Unknown NPC bypass: "Sell" NpcId: 10002 Error game server -
Help Html Setting (Gm Shop)
InFocus replied to InFocus's question in Request Server Development Help [L2J]
I do this already, I open seller Helvetia, but it is complicated -
HI all, how i can add button Sell at gm shop? I search in google and i find _Sell, but don;t work, i search in Eclipse and i don;t find something. Can somebody tell me where i can find that bypass? Thank's
-
HI all, how i can make a skill to be available on rebirth? I forgot syntax. Here it is skill <skill id="5000" levels="200" name="Rebirth - Super Strike"> <!-- CT2.5 retail confirmed --> <set name="castRange" val="1000" /> <set name="effectPoint" val="-100" /> <set name="effectRange" val="2000" /> <set name="hitTime" val="2000" /> <set name="magicLvl" val="76" /> <set name="mpConsume" val="108" /> <set name="operateType" val="A1" /> <set name="power" val="10000000" /> <set name="rideState" val="NONE" /> <set name="targetType" val="ONE" /> </skill> I forget how must be to add in passive and how i can do available for each rebirth
-
Why is closed my tpic? isn't work!!!! <!-- Vesper Avenger - Health --> <item> <ingredient id="5962" count="5"/> <production id="14137" count="1" enchant="17"/> </item> and error in gameserver [26/09 05:29:57] MultisellData: Could not parse file 10004.xml at line 10, column 52: cvc-complex-type.3.2.2: Attribute 'enchant' is not allowed to appear in element 'production'.
-
I try to search, but i can't find something
-
If anyone can tel me how i can add enchanted items in gm shop?
-
Help Armor/Weapon Install
InFocus replied to dodelez's question in Request Server Development Help [L2J]
You can't. -
Help Armor/Weapon Install
InFocus replied to dodelez's question in Request Server Development Help [L2J]
Max item id is 65535 -
I like how it's look new code, but i can't to edit my code (even if it's wrong) because mby , and i am sure, i'll broke all code. And i don;t want to spam maxcheaters.com with errors. I post here the code. Maybe someone wants to help me. I post here all code. I want to know what i must change. Thanks Guys
-
player.getInventory().unEquipItemInSlot(armorType); this line?
-
Help Armor/Weapon Install
InFocus replied to dodelez's question in Request Server Development Help [L2J]
I don't know what files use that project. -
Help Armor/Weapon Install
InFocus replied to dodelez's question in Request Server Development Help [L2J]
Then u must create XML by hand. Create xml with the id of item. Take exemple from another xml file -
Help Armor/Weapon Install
InFocus replied to dodelez's question in Request Server Development Help [L2J]
Server Side; - XML's, SQL. (for weapon/armor/jewels); Client Side: - itemname.dat, armorgrp.dat + Textures, Animations. -
Well, i paste here java file from npc enchant. package custom.Enchant; import java.util.logging.Logger; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.itemcontainer.Inventory; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.model.olympiad.OlympiadManager; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; import com.l2jserver.gameserver.network.serverpackets.CharInfo; import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo; import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate; import com.l2jserver.gameserver.network.serverpackets.UserInfo; public class Enchant extends Quest { public static final Logger _log = Logger.getLogger(Enchant.class.getName()); int npcId = 99942; // Item required to enchant armor +20 int itemRequiredArmor = 8284; int itemRequiredArmorCount = 10; // Item required to enchant jewels +20 int itemRequiredJewels = 8284; int itemRequiredJewelsCount = 10; // Item required to enchant weapon +20 int itemRequiredWeapon = 8284; int itemRequiredWeaponCount = 10; // Item required to enchant belt/shirt +20 int itemRequiredBeltShirt = 8284; int itemRequiredBeltShirtCount = 100; public Enchant(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(npcId); addFirstTalkId(npcId); addTalkId(npcId); } public static void main(String[] args) { new Enchant(-1, Enchant.class.getSimpleName(), "custom"); } public String onFirstTalk(L2Npc npc, L2PcInstance player) { String enchantType = "Enchant.htm"; if (player.getQuestState(getName()) == null) { newQuestState(player); } else if (player.isInCombat()) { return drawHtml("You are in combat", "Don't fight if you want to talk with me!", enchantType); } else if (player.getPvpFlag() == 1) { return drawHtml("You are flagged", "Don't fight if you want to talk with me!", enchantType); } else if (player.getKarma() != 0) { return drawHtml("You are in chaotic state", "Don't fight if you want to talk with me!", enchantType); } else if (OlympiadManager.getInstance().isRegistered(player)) { return drawHtml("You are registered for Olympiad", "You can't use my services<br1>while playing the Olympiad.", enchantType); } return "Enchant.htm"; } public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmlText = event; String enchantType = "Enchant.htm"; int armorType = -1; // Armor parts if (event.equals("enchantHelmet")) { armorType = Inventory.PAPERDOLL_HEAD; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantChest")) { armorType = Inventory.PAPERDOLL_CHEST; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantLeggings")) { armorType = Inventory.PAPERDOLL_LEGS; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantGloves")) { armorType = Inventory.PAPERDOLL_GLOVES; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantBoots")) { armorType = Inventory.PAPERDOLL_FEET; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantShieldOrSigil")) { armorType = Inventory.PAPERDOLL_LHAND; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } // Jewels else if (event.equals("enchantUpperEarring")) { armorType = Inventory.PAPERDOLL_LEAR; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantLowerEarring")) { armorType = Inventory.PAPERDOLL_REAR; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantNecklace")) { armorType = Inventory.PAPERDOLL_NECK; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantUpperRing")) { armorType = Inventory.PAPERDOLL_LFINGER; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantLowerRing")) { armorType = Inventory.PAPERDOLL_RFINGER; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } // Belt/Shirt else if (event.equals("enchantBelt")) { armorType = Inventory.PAPERDOLL_BELT; enchantType = "EnchantBeltShirt.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredBeltShirt, itemRequiredBeltShirtCount); } else if (event.equals("enchantShirt")) { armorType = Inventory.PAPERDOLL_UNDER; enchantType = "EnchantBeltShirt.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredBeltShirt, itemRequiredBeltShirtCount); } // Weapon else if (event.equals("enchantWeapon")) { armorType = Inventory.PAPERDOLL_RHAND; enchantType = "EnchantWeapon.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredWeapon, itemRequiredWeaponCount); } return htmlText; } private String enchant(String enchantType, L2PcInstance player, int armorType, int itemRequired, int itemRequiredCount) { QuestState st = player.getQuestState(getName()); int currentEnchant = 0; int newEnchantLevel = 0; if (st.getQuestItemsCount(itemRequired) >= itemRequiredCount) { try { L2ItemInstance item = getItemToEnchant(player, armorType); if (item != null) { currentEnchant = item.getEnchantLevel(); if ( currentEnchant < 100 ) { newEnchantLevel = setEnchant(player, item, currentEnchant+10, armorType); if ( newEnchantLevel > 0 ) { st.takeItems(itemRequired, itemRequiredCount); player.sendMessage("You successfully enchanted your " + item.getItem().getName() +" from +" + currentEnchant + " to +" + newEnchantLevel + "!"); String htmlContent = "<center>You successfully enchanted your:<br>"+ "<font color=\"FF7200\">" + item.getItem().getName() + "</font><br>"+ "From: <font color=\"AEFF00\">+" + currentEnchant + "</font> to <font color=\"AEFF00\">+" + newEnchantLevel + "</font>"+ "</center>"; return drawHtml("Congratulations!", htmlContent, enchantType); } } else { player.sendMessage("Your " + item.getItem().getName() + " is already +100!"); return drawHtml("It's already +100", "<center>Your <font color=\"FF7200\">" + item.getItem().getName() +"</font> is already +100!</center>", enchantType); } } } catch (StringIndexOutOfBoundsException e) { player.sendMessage("Something went wrong. Are equiped with the item?"); return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType); } catch (NumberFormatException e) { player.sendMessage("Something went wrong. Are equiped with the item?"); return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType); } player.sendMessage("Something went wrong. Are equiped with the item?"); return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType); } else { String content = "<center>"+ "Not enough <font color=\"FF7200\">Event - Glitering Medals</font>!<br>"; if ( st.getQuestItemsCount(itemRequired) > 0 ) { content += "You have " + st.getQuestItemsCount(itemRequired) + " Glittering Medals,<br1>"+ "Need " + (itemRequiredCount - st.getQuestItemsCount(itemRequired)) + " more."; } else { content += "You need <font color=\"FF7200\">" + itemRequiredCount + " Event - Glitering Medals</font>!"; } content += "</center>"; return drawHtml("Not Enough Items", content, enchantType); } } private L2ItemInstance getItemToEnchant(L2PcInstance player, int armorType) { L2ItemInstance itemInstance = null; L2ItemInstance parmorInstance = player.getInventory().getPaperdollItem(armorType); if ((parmorInstance != null) && (parmorInstance.getLocationSlot() == armorType)) { itemInstance = parmorInstance; if (itemInstance != null) { return itemInstance; } } return null; } private int setEnchant(L2PcInstance player, L2ItemInstance item, int newEnchantLevel, int armorType) { if (item != null) { // set enchant value player.getInventory().unEquipItemInSlot(armorType); item.setEnchantLevel(newEnchantLevel); player.getInventory().equipItem(item); // send packets InventoryUpdate iu = new InventoryUpdate(); iu.addModifiedItem(item); player.sendPacket(iu); player.broadcastPacket(new CharInfo(player)); player.sendPacket(new UserInfo(player)); player.broadcastPacket(new ExBrExtraUserInfo(player)); return newEnchantLevel; } return -1; } public String drawHtml(String title, String content, String enchantType) { String html = "<html>"+ "<title>L2Mondial Enchanter</title>"+ "<body>"+ "<center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"+ "<font color=\"FF9900\">" + title + "</font></center><br>"+ content + "<br><br>"+ "<center><a action=\"bypass -h Quest Enchant " + enchantType + "\">Go Back</a></center>"+ "</body>"+ "</html>"; return html; } } What i need to change here ?
-
Who can tell me how i can edit npc enchant with different enchant? i mean i have one npc for max enchant +150. This item need to be +0 to enchant it. and i want the secound one to be from 150 (not from +0) to +300. Now, the problem is it in .JAVA file. How i can duplicate npc to work both? I can change just id? (i try this and doesn;t work). Thank's
-
As title say, i am looking for captcha for private server. I want this captcha to get for player when he kill some mobs, or x time. I searh in old google, but i don;t find something. Plase share me some links, or tell me how i can make it. Thank you
-
Hallo Everyone, i am looking for Private Server Hosting 24/7 online. If someone know something, lemme know. I Search on internet but i do not know how and what i must to search. Thak you !
-
Hi all, how i can make a simple HTML link in alt+b?
-
http:// Done
-
In order of things, who can tell me how i can edit text color? Default it is white, but i want mauve. I think it is from ItemName.grp. But i don;t know what i must edit. TY
