Jump to content

cronol

Members
  • Posts

    14
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by cronol

  1. Hi mates, I'm having problems with the system. When I add something in ItemName-e I get this error. Does anyone know how to solve it? History: FMallocWindows::Malloc <- Size -732658304 FArray <- FMallocWindows::Realloc <- 00000000 -732658304 FArray <- FArray::Realloc <- 1964319072*4 <- TArrayL2FNameSerialize <- FL2SetItemData::Serialize <- FL2ItemDataBase::Serialize <- FL2ItemNameDataManager::Serialize <- FL2GameData::LoadL2DataBin <- FL2GameData::ItemNameDataLoad <- FL2GameData::Load <- UGameEngine::Init <- InitEngine Could it be that I have reached the limit of items?
  2. Hello everyone, I'm having some problems attaching the buylist and multisell to the custom NPC I created. First step i just created NPC on \data\stats\npcs\npcs\custom <npc id="7806" templateId="32503" nameRu="Пинтер" nameEn="Pasive Armor" titleRu="Кузнец" titleEn="Blacksmith"> <set name="aggroRange" value="0" /> <set name="ai_type" value="Fighter" /> <set name="baseAtkRange" value="40" /> <set name="baseCON" value="43" /> <set name="baseCritRate" value="4" /> <set name="baseDEX" value="30" /> <set name="baseHpMax" value="2444" /> <set name="baseHpRate" value="1" /> <set name="baseHpReg" value="8" /> <set name="baseINT" value="21" /> <set name="baseMAtk" value="470" /> <set name="baseMAtkSpd" value="333" /> <set name="baseMDef" value="217" /> <set name="baseMEN" value="20" /> <set name="baseMpMax" value="1346" /> <set name="baseMpReg" value="2.7" /> <set name="basePAtk" value="689" /> <set name="basePAtkSpd" value="253" /> <set name="basePDef" value="296" /> <set name="baseRunSpd" value="120" /> <set name="baseSTR" value="40" /> <set name="baseShldDef" value="0" /> <set name="baseShldRate" value="0" /> <set name="baseWIT" value="20" /> <set name="baseWalkSpd" value="50" /> <set name="castle_id" value="1" /> <set name="collision_height" value="16.5" /> <set name="collision_radius" value="7.0" /> <set name="level" value="70" /> <set name="rewardExp" value="0" /> <set name="rewardRp" value="0" /> <set name="rewardSp" value="0" /> <set name="shots" value="NONE" /> <set name="texture" value="" /> <set name="type" value="Npc" /> <equip> <rhand itemId="89" /> <!--Big Hammer--> </equip> <skills> <skill id="4416" level="18" /> <!--Dwarves--> </skills> <attributes> <defence attribute="fire" value="150" /> <defence attribute="water" value="150" /> <defence attribute="wind" value="150" /> <defence attribute="earth" value="150" /> <defence attribute="holy" value="150" /> <defence attribute="unholy" value="150" /> </attributes> </npc> Second Step I have created htm on \data\html\en\default taking a reference one and changing the name which I have given the same as the ID of my NPC Custom I have set up this on HTML(is from grocery) <html><body>Trader Helvetia:<br> Welcome! Our shop carries a wide range of inexpensive but high-quality items. Come in, come in! Take some time and have a look around. If you need anything, just give me a shout.<br> <a action="bypass -h npc_%objectId%_Buy 3008100">Buy/Sell/Refund General.</a><br> <a action="bypass -h npc_%objectId%_Buy 3008101">Buy/Sell/Refund Dyes.</a><br> <a action="bypass -h npc_%objectId%_TerritoryStatus">View information about the local lord and tax rate.</a><br> <a action="bypass -h npc_%objectId%_Quest">Quest</a> </body></html> Third step I have spawned NPC on Server he give me html dialog but dont do nothing when i click What can i do to solve this?
  3. I want to buy but i have same problem. They have sanctions at RU
  4. Good colleagues, I would need a hand to fix this text so that everything does not appear as rows. Here is the code StringUtil.append(html1, "<tr>", "<td><img src=\"" + item.getIcon() + "\" height=32 width=32></td>" + "<td><font color=\"", color, "\">", item.getName() + "</td>" + "<tr><td><font color=\"00cc66\">Chance: </font>", "<font color=\"ffffff\">" + roundChance + "0%" + "</font></td></tr>", "<td>", (drop.isQuestDrop() ? "Quest" : (cat.isSweep() ? "Sweep" : "Drop")), "</td>", "</tr>");
  5. IF someone can help to disable initial password ingame? I have tried to modify this but not work. SECOND_AUTH_ENABLED = serverSettings.getProperty("SAEnabled", false); Someone know what more can i change?
  6. How can I disable the initial password? Also to remove the startup tutorials. I have set it to false in server.ini and Config.java but they keep appearing @Pinkymaybe you can help me Thank you very much in advance
  7. I don't know what to do... I'm a bit stuck. When compiling the code it doesn't give me problems but it doesn't work either public final class HomeBoard implements IParseBoardHandler { // SQL Queries private static final String COUNT_FAVORITES = "SELECT COUNT(*) AS favorites FROM `bbs_favorites` WHERE `playerId`=?"; private static final String[] COMMANDS = { "_bbshome", "_bbstop", "_testpage1" }; @Override public String[] getCommunityBoardCommands() { return COMMANDS; } @Override public boolean parseCommunityBoardCommand(String command, L2PcInstance activeChar) { if (command.equals("_bbshome") || command.equals("_bbstop")) { CommunityBoardHandler.getInstance().addBypass(activeChar, "Home", command); String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/home.html"); html = html.replaceAll("%fav_count%", Integer.toString(getFavoriteCount(activeChar))); html = html.replaceAll("%region_count%", Integer.toString(getRegionCount(activeChar))); html = html.replaceAll("%clan_count%", Integer.toString(ClanTable.getInstance().getClanCount())); CommunityBoardHandler.separateAndSend(html, activeChar); } if (command.contains ("_testpage1")) { CommunityBoardHandler.getInstance().addBypass(activeChar, "testpage1", command); String testpage1 = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/custom/index.html"); } else if (command.startsWith("_bbstop;")) { final String path = command.replace("_bbstop;", ""); if ((path.length() > 0) && path.endsWith(".html")) { final String html = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/CommunityBoard/" + path); CommunityBoardHandler.separateAndSend(html, activeChar); } } return true; }
  8. Ok, now i dont have any error on homeboard.java but is not working... when i press button to main HOMEBOARD.JAVA On home.html i have this coded <tr><td align="left"><button value="Main" action="bypass _testpage1;" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Info_Down" fore="L2UI_CT1.OlympiadWnd_DF_Info"></td></tr> In CN no redirect... home.html
  9. Good colleague, I have tried what you have recommended but it is giving me problems, could you help me to find the fault.
  10. Sorry if I haven't explained myself well. For example I have downloaded the files from the L2 Essence community board. They have the html of the community board and the .utx with the textures for the client. Now my question is how do I import the html. copying and pasting into the html folder doesn't work... from what I've researched you need to edit the files and add the offsets and the java side My question is exactly what .java do I have to modify.
  11. Greetings colleagues, I have decided to start the adventure of creating an L2 server. I'm doing fine but I've come to a problem that I don't know how to solve. It is related to the Community board, I have taken one that is in the forum but I cannot install it. From what I've been researching and it's not enough to have the HTML and the client file. You have to modify the java files... I have come to the conclusion that I have to modify something in this route game\data\scripts\handlers\communityboard I dont want codes only a simple guide how to do it. IF someone can help me. Thanks you
×
×
  • Create New...