-
Posts
793 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Bobi
-
yes i have but is shutdown any ideas how to fix that ?
-
why that happen ? how to fix ? Login Server GameServer Test1: Connection lost: Socket closed Server Test1 is now set as disconnected Updated Gameserver Test1 IP's: Unknown Opcode (7) from GameServer, closing connection. Game Server Damn! Registeration Failed: Not authed Connecting to login on 127.0.0.1:9014 Registered on login as Server 2 : Test1
-
how to enable my GameServer to use more RAM on Linux Debian
-
nop i use Interlude pack so in server.properties are config my IP
-
i was dont understand from where what to delete
-
what you mean ? from files gameserver/data/config/server.properties ?
-
why that ?? how to fix ? Exception in thread "main" java.net.UnknownHostException: * at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850) at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201) at java.net.InetAddress.getAllByName0(InetAddress.java:1154) at java.net.InetAddress.getAllByName(InetAddress.java:1084) at java.net.InetAddress.getAllByName(InetAddress.java:1020) at java.net.InetAddress.getByName(InetAddress.java:970) at com.l2jarchid.gameserver.GameServer.<init>(GameServer.java:635) at com.l2jarchid.gameserver.GameServer.main(GameServer.java:687)
-
[Help] Augmention Skills Fix Freya
Bobi replied to max.cheat's question in Request Server Development Help [L2J]
yes press in game Alt+G and write full augment name like : Item Skill: Duel Might press search skill button and you will see skill ID after that go to gameserver/data/stats/skill and fix your augments -
pc bang point are not in your inventory , you can see this only on screan not and in your inventory
-
your multisell need be like this <?xml version='1.0' encoding='utf-8'?> <list> <item id="1"> <ingredient id="65436" count="1"/> <production id="22" count="1"/> </item> </list> <item id="1"> if you want to add second item in same multisell , so next item need be with ID 2 <ingredient id="65436" count="1"/> that are item who npc will want you for buy any item <production id="22" count="1"/> that are item who npc will give you when you are ready with your multisell safe it with any numbers.. for example : 202011 After that go to gameserver/data/html/merchant and take your custom html npc or just take any random .... for example : delete all in html who you open ( if you dont know how to add multisell in npc) and add this <html> <body> <center> <br> <button value="Exchange" action="bypass -h npc_%objectId%_multisell 75" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"><br> </center> </body> </html> from here you need know : <button value="Exchange" where is Exchange write what you want . This is button who will be add on your npc npc_%objectId%_multisell 75" here you need config your multisell to work with your npc where is 75 this is name on multisell we was safe your custom mutisell with name 202011 so your line need be like this npc_%objectId%_multisell 202011"
-
yes but i think i will lost my custom additions who are exit in base pack right ? any way to update on last rev without lost my custom additions who are exits in base pack ? ofc without add all updates manually
-
there look fine any other ideas ?
-
tnx chmod 700 startGameServer.sh chmod 700 GameServer_loop.sh - need same fixed
-
why when i try to run my game server on linux system write me -bash: ./startGameServer.sh: Permission denied but i run my login server without problem im with root access and cant start game server... why?
-
Any ideas why and how to fix? ========================================================-[ Boss Individual AI ] startin Gordon Replaced: valakas with a new version Lair of Frintezza Exception in thread "main" java.lang.ClassCastException: com.l2jarchid.gameserver.model.actor.instance.L2BossInstance cannot be cast to com.l2jarchid.gameserver.model.actor.instance.L2GrandBossInstance at com.l2jarchid.gameserver.ai.Core.<init>(Core.java:100) at com.l2jarchid.gameserver.ai.Core.main(Core.java:226) at com.l2jarchid.gameserver.GameServer.<init>(GameServer.java:532) at com.l2jarchid.gameserver.GameServer.main(GameServer.java:687)
-
but i have some custom mods who are missed in original pack i will lost my custom mods?
-
any way with eclipse to update my server pack from timeline/svn on last rev without add add updates manually ?
-
hello i want to make one NPC who can remove PK point for 1 gb for example i want to make it with python script or something else (i choose that because idont understand from JAVA ) but i dont know from where need start and how can i do it . i hope someone will help me . what command i need use in python script to remove PK point ? (IL server pack) i hope with other i can do alone just dont know what need be command
-
[QUESTION/HELP]Auto Say in Freya
Bobi replied to jossoo's question in Request Server Development Help [L2J]
for npc ? -
fixed i forget to change in html files where is link to quest <a action="bypass -h npc_%objectId%_Quest 9999_NPCEnchant"><font color="347C17">ENCHANT ITEMS</font></a>
-
hello For example i have custom buffer Script with ID X i make copy/paste and change inside everything what need with ID Y for example i add in config to load and ID Y when server load i see there write buffer ID X imported Buffer ID Y imported so in game buffer X work without problem but Buffer Y cant make buffs , but and dont send any errors just not logic buffer ID Y to not work .. any ideas why ? i try and with other script for npc enchant and problem is same ID X work ID Y dont work for example enchant npc ID X - working import sys from com.l2jarchid import Config from com.l2jarchid.gameserver.model.quest import State from com.l2jarchid.gameserver.model.quest import QuestState from com.l2jarchid.gameserver.model.quest.jython import QuestJython as JQuest qn = "999999_NPCEnchant" ENCHANT_NPC = 90020 weapons = ['Sword','Blunt','Dagger','Bow','Pole','Etc','Fist','Dual Sword','Dual Fist','Big Sword','Big Blunt','Ancient','Rapier'] armors = ['Light','Heavy','Magic','Shield'] jewels = ['None'] acceptableItemTypes = weapons class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent (self,event,st) : if event == "choose_item" : htmltext = "" for Item in st.getPlayer().getInventory().getItems(): # given an item instance, get the item template to check what type it is itemType = Item.getItem().getItemType().toString() itemGrade = Item.getItem().getCrystalType() if itemType in acceptableItemTypes and itemGrade > 0 : htmltext += "<a action=\"bypass -h Quest 999999_NPCEnchant enchantItem_" + str(Item.getObjectId()) +"\">" + Item.getItem().getName() + "+" + str(Item.getEnchantLevel()) + "</a><br>" if htmltext == "": htmltext = "You have no enchantable items in your inventory" htmltext = "<html><body>Enchanter:<br>Please choose which item you wish me to enchant, from the below list:<br>" + htmltext + "</body></html>" elif event.startswith("enchantItem_"): # get the object id out of the event string objId = int(event.replace("enchantItem_", "")) # to avoid exploitation, check if the stored objectId still corresponds to an existing item # and if that item is still not equipped Item = st.getPlayer().getInventory().getItemByObjectId(objId ) if Item and not Item.isEquipped() : itemType = Item.getItem().getItemType().toString() itemEnchant = Item.getEnchantLevel() if st.getQuestItemsCount(12004) >= 100 : if (itemType in weapons and itemEnchant >= Config.ENCHANT_MAX_WEAPON) or (itemType in armors and itemEnchant >= Config.ENCHANT_MAX_ARMOR) or (itemType in jewels and itemEnchant >= Config.ENCHANT_MAX_JEWELRY) : htmltext = "reachedMaxEnchant.htm" else : Item.setEnchantLevel(itemEnchant+30) st.takeItems(12004, 100) htmltext = "congratulations.htm" else : htmltext = "notEnoughItems.htm" else : htmltext = "cheater.htm" return htmltext def onTalk (self,npc,player): htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>" st = player.getQuestState(qn) if not st : return htmltext if npc.getNpcId() == ENCHANT_NPC : htmltext = "1.htm" return htmltext QUEST = Quest(999999,qn,"NPCEnchant") CREATED = State('Start', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(ENCHANT_NPC) QUEST.addTalkId(ENCHANT_NPC) enchant npc ID Y - not work import sys from com.l2jarchid import Config from com.l2jarchid.gameserver.model.quest import State from com.l2jarchid.gameserver.model.quest import QuestState from com.l2jarchid.gameserver.model.quest.jython import QuestJython as JQuest qn = "9999_NPCEnchant" ENCHANT_NPC = 90021 weapons = ['Sword','Blunt','Dagger','Bow','Pole','Etc','Fist','Dual Sword','Dual Fist','Big Sword','Big Blunt','Ancient','Rapier'] armors = ['Light','Heavy','Magic','Shield'] jewels = ['None'] acceptableItemTypes = weapons class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent (self,event,st) : if event == "choose_item" : htmltext = "" for Item in st.getPlayer().getInventory().getItems(): # given an item instance, get the item template to check what type it is itemType = Item.getItem().getItemType().toString() itemGrade = Item.getItem().getCrystalType() if itemType in acceptableItemTypes and itemGrade > 0 : htmltext += "<a action=\"bypass -h Quest 9999_NPCEnchant enchantItem_" + str(Item.getObjectId()) +"\">" + Item.getItem().getName() + "+" + str(Item.getEnchantLevel()) + "</a><br>" if htmltext == "": htmltext = "You have no enchantable items in your inventory" htmltext = "<html><body>Enchanter:<br>Please choose which item you wish me to enchant, from the below list:<br>" + htmltext + "</body></html>" elif event.startswith("enchantItem_"): # get the object id out of the event string objId = int(event.replace("enchantItem_", "")) # to avoid exploitation, check if the stored objectId still corresponds to an existing item # and if that item is still not equipped Item = st.getPlayer().getInventory().getItemByObjectId(objId ) if Item and not Item.isEquipped() : itemType = Item.getItem().getItemType().toString() itemEnchant = Item.getEnchantLevel() if st.getQuestItemsCount(12004) >= 100 : if (itemType in weapons and itemEnchant >= Config.ENCHANT_MAX_WEAPON) or (itemType in armors and itemEnchant >= Config.ENCHANT_MAX_ARMOR) or (itemType in jewels and itemEnchant >= Config.ENCHANT_MAX_JEWELRY) : htmltext = "reachedMaxEnchant.htm" else : Item.setEnchantLevel(itemEnchant+30) st.takeItems(12004, 100) htmltext = "congratulations.htm" else : htmltext = "notEnoughItems.htm" else : htmltext = "cheater.htm" return htmltext def onTalk (self,npc,player): htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>" st = player.getQuestState(qn) if not st : return htmltext if npc.getNpcId() == ENCHANT_NPC : htmltext = "1.htm" return htmltext QUEST = Quest(9999,qn,"NPCEnchant") CREATED = State('Start', QUEST) QUEST.setInitialState(CREATED) QUEST.addStartNpc(ENCHANT_NPC) QUEST.addTalkId(ENCHANT_NPC) print "importing custom: enchant2 OK" config files '999999_NPCEnchant', '9999_NPCEnchant', When server load script i see enchant NPC ID X imported enchant NPC ID Y imported in game npc ID X work without errors but npc ID Y not work show me next error You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.
-
that is my rework script / already shared in mxc but from Gracia , i try to make for Interlude import com.l2jarchid.gameserver.model.actor.instance.L2NpcInstance; import com.l2jarchid.gameserver.model.actor.instance.L2PcInstance; import com.l2jarchid.gameserver.model.quest.Quest; import com.l2jarchid.gameserver.model.quest.QuestState; import com.l2jarchid.gameserver.model.Inventory; import java.sql.Connection; import java.sql.PreparedStatement; import com.l2jarchid.L2DatabaseFactory; import java.util.logging.Level; import com.l2jarchid.gameserver.model.L2ItemInstance; /** * * @author Rizel * */ public class AugmentShop extends Quest { private final static int ITEM_ID = 57; private final static int ITEM_COUNT = 1000000; private final static String qn = "AugmentShop"; private final static int NPC = 91000; public AugmentShop(int questId, String name, String descr) { super(questId, name, descr); addFirstTalkId(NPC); addStartNpc(NPC); addTalkId(NPC); } @Override public String onAdvEvent(String event, L2NpcInstance npc, L2PcInstance player) { String htmltext = ""; if (event.equalsIgnoreCase("active")) { htmltext = "active.htm"; } else if (event.equalsIgnoreCase("passive")) { htmltext = "passive.htm"; } else if (event.equalsIgnoreCase("chance")) { htmltext = "chance.htm"; } else { updateAugment(player, Integer.parseInt(event.substring(0,5)), Integer.parseInt(event.substring(6,10)), Integer.parseInt(event.substring(11,13))); } return htmltext; } @Override public String onFirstTalk(L2NpcInstance npc, L2PcInstance player) { String htmltext = ""; QuestState qs = player.getQuestState(qn); if (qs == null) qs = newQuestState(player); htmltext = "main.htm"; return htmltext; } public static void main(String[] args) { new AugmentShop(-1, qn, "AugmentShop"); } private static void updateAugment(L2PcInstance player, int attribute, int skill, int level) { L2ItemInstance item = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) == null) { player.sendMessage("You have to equip a weapon."); return; } if (player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND).isAugmented()) { player.sendMessage("The weapon is already augmented."); return; } if (player.getInventory().getInventoryItemCount(ITEM_ID, -1) < ITEM_COUNT) { player.sendMessage("You dont have enough item."); return; } Connection con = null; try { player.destroyItemByItemId("Consume", ITEM_ID, ITEM_COUNT, player, true); con = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = con.prepareStatement("REPLACE INTO item_attributes VALUES(?,?,?,?,?,?)"); statement.setInt(1, item.getObjectId()); statement.setInt(2, attribute*65536+1); statement.setInt(3, skill); statement.setInt(4, level); if (item.getElementals() == null) { statement.setByte(5, (byte) -1); statement.setInt(6, -1); } else { statement.setByte(5, item.getElementals().getElement()); statement.setInt(6, item.getElementals().getValue()); } statement.executeUpdate(); player.sendMessage("Succesfully augmented. You have to relog now."); statement.close(); } catch (Exception e) { _log.log(Level.SEVERE, "Could not augment item: "+item.getObjectId()+" ", e); } finally { L2DatabaseFactory.close(con); } } } error message from Import ---------- 1. ERROR in /AugmentShop.java (at line 113) if (item.getElementals() == null) ^^^^^^^^^^^^^ The method getElementals() is undefined for the type L2ItemInstance ---------- 2. ERROR in /AugmentShop.java (at line 120) statement.setByte(5, item.getElementals().getElement()); ^^^^^^^^^^^^^ The method getElementals() is undefined for the type L2ItemInstance ---------- 3. ERROR in /AugmentShop.java (at line 121) statement.setInt(6, item.getElementals().getValue()); ^^^^^^^^^^^^^ The method getElementals() is undefined for the type L2ItemInstance ---------- 4. ERROR in /AugmentShop.java (at line 134) L2DatabaseFactory.close(con); ^^^^^ The method close(Connection) is undefined for the type L2DatabaseFactory ---------- 4 problems (4 errors)The method close(java.sql.Connection) is undefined for the type com.l2jarchid.L2DatabaseFactory The method getElementals() is undefined for the type com.l2jarchid.gameserver.model.L2ItemInstance The method getElementals() is undefined for the type com.l2jarchid.gameserver.model.L2ItemInstance The method getElementals() is undefined for the type com.l2jarchid.gameserver.model.L2ItemInstance Failed executing script: home/GameServer/data/jscript/custom/AugmentShop/AugmentShop.java. See AugmentShop.java.error.log for details. AugmentShop.java.error.log files Error on: /home/GameServer/data/jscript/custom/AugmentShop/AugmentShop.java.error.log Line: -1 - Column: -1 compilation failed
-
i find this what i need but i still have problem with import 1. ERROR in /AugmentShop.java (at line 113) if (item.getElementals() == null) ^^^^^^^^^^^^^ The method getElementals() is undefined for the type L2ItemInstance ---------- 2. ERROR in /AugmentShop.java (at line 120) statement.setByte(5, item.getElementals().getElement()); ^^^^^^^^^^^^^ The method getElementals() is undefined for the type L2ItemInstance ---------- 3. ERROR in /AugmentShop.java (at line 121) statement.setInt(6, item.getElementals().getValue()); ^^^^^^^^^^^^^ The method getElementals() is undefined for the type L2ItemInstance ---------- 4. ERROR in /AugmentShop.java (at line 134) L2DatabaseFactory.close(con); ^^^^^ The method close(Connection) is undefined for the type L2DatabaseFactory ---------- 4 problems (4 errors)The method close(java.sql.Connection) is undefined for the type com.l2jarchid.L2DatabaseFactory The method getElementals() is undefined for the type com.l2jarchid.gameserver.model.L2ItemInstance The method getElementals() is undefined for the type com.l2jarchid.gameserver.model.L2ItemInstance The method getElementals() is undefined for the type com.l2jarchid.gameserver.model.L2ItemInstance any ideas how to fix it for interlude pack
-
+1 not recommended server !