Jump to content

<< Masterio >>

Members
  • Posts

    252
  • Credits

  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Everything posted by << Masterio >>

  1. its not effective for 1k queries per min ;), in java must be some method what get this data from Item singletons.
  2. Hi a have request for java developers. How to get this red value (pAtk of weapon) from java side. I created instance i checked stats funcs etc and i can't obtain this value. <item id="4700" type="Weapon" name="Sword of Delusion - Health"> <set name="icon" val="icon.weapon_sword_of_delusion_i01" /> <set name="default_action" val="equip" /> <set name="weapon_type" val="sword" /> <set name="bodypart" val="rhand" /> <set name="random_damage" val="10" /> <set name="attack_range" val="40" /> <set name="damage_range" val="0;0;40;120" /> <set name="immediate_effect" val="1" /> <set name="crystal_count" val="1322" /> <set name="crystal_type" val="c" /> <set name="material" val="mithril" /> <set name="weight" val="1400" /> <set name="price" val="3304300" /> <set name="change_weaponId" val="9270" /> <set name="soulshots" val="3" /> <set name="spiritshots" val="3" /> <set name="enchant_enabled" val="1" /> <set name="item_skill" val="3013-1" /> <for> <set order="0x08" stat="pAtk" val="139" /> <set order="0x08" stat="mAtk" val="76" /> <set order="0x08" stat="rCrit" val="8" /> <set order="0x08" stat="pAtkSpd" val="379" /> <enchant val="0" order="0x0C" stat="pAtk" /> <enchant val="0" order="0x0C" stat="mAtk" /> </for> </item> I wrote something like this for tests: for(int i = 0; i<activeChar.getInventory().getItems().length; i++){ if(activeChar.getInventory().getItems()[i] != null){ L2ItemInstance itemInstance = activeChar.getInventory().getItems()[i]; L2Item item = ItemTable.getInstance().getTemplate(itemInstance.getItem().getItemId()); try{ System.out.println("Item: "+item.getName()+", id: "+item.getItemId()); System.out.println("Icon: "+item.getIcon()); System.out.println("Body part: "+item.getBodyPart()); }catch(Exception e){ } System.out.println("Effects: "+item.getEffects(itemInstance, activeChar).length); for(int j = 0; j<item.getEffects(itemInstance, activeChar).length; j++){ try{ L2Effect effect = item.getEffects(itemInstance, activeChar)[j]; if(effect != null){ System.out.println(" Abnormal level:" + effect.getAbnormalLvl()); System.out.println(" Abnormal Time:" + effect.getAbnormalTime()); System.out.println(" Abnormal Type:" + effect.getAbnormalType()); System.out.println(" Count:" + effect.getCount()); System.out.println(" Effect Flags:" + effect.getEffectFlags()); System.out.println(" Effect Power:" + effect.getEffectPower()); System.out.println(" Force Effect:" + effect.getForceEffect()); System.out.println(" Level:" + effect.getLevel()); System.out.println(" Total Count:" + effect.getTotalCount()); System.out.println(" Skill Name:" + effect.getSkill().getName()); } }catch(Exception e){ } } System.out.println("StatFuncs: "+item.getStatFuncs(itemInstance, activeChar).length); for(int k = 0; k<item.getStatFuncs(itemInstance, activeChar).length; k++){ try{ Func f = item.getStatFuncs(itemInstance, activeChar)[k]; Env env = new Env(); env.setItem(itemInstance); System.out.println(" order:" +f.order+", stat[name]:"+f.stat.name()+", stat[value]:"+f.stat.getValue()+", stat[ordinal]:"+f.stat.ordinal()+", "+env.toString()); }catch(Exception e){ } } System.out.println("-------------------------------------------------------------------------------"); } } This code not obtain information about weapon pAtk/mAtk or Armor pDef/mDef. Thanks for answer.
  3. All changes are in info.txt file. Generally 3.0.3 -> 3.4.2 Improves stability and speed of system. Previous versions was not optimized for big online. About error write to me on pm and give me skype id i will write to you.
  4. case 2: // new if (command.startsWith("_bbsclan"))|| (command.startsWith("_bbsmemo"))|| (command.startsWith("_bbstopics"))|| (command.startsWith("_bbsposts"))|| (command.startsWith("_bbstop"))|| (command.startsWith("_bbshome"))|| (command.startsWith("_bbsloc"))|| (command.startsWith("_bbscprs")){ //to Custom PvP System BBS Manager CustomPvpSystemBBSManager.getInstance().parsecmd(command, activeChar); }
  5. /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.l2jserver.gameserver.communitybbs; import com.l2jserver.Config; import com.l2jserver.gameserver.communitybbs.Manager.ClanBBSManager; import com.l2jserver.gameserver.communitybbs.Manager.PostBBSManager; import com.l2jserver.gameserver.communitybbs.Manager.RegionBBSManager; import com.l2jserver.gameserver.communitybbs.Manager.TopBBSManager; import com.l2jserver.gameserver.communitybbs.Manager.TopicBBSManager; import com.l2jserver.gameserver.custom.auctionhall.AuctionHallBBSManager; import com.l2jserver.gameserver.custom.pvpsystem.CustomPvpSystemBBSManager; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.L2GameClient; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.ShowBoard; public class CommunityBoard { public static CommunityBoard getInstance() { return SingletonHolder._instance; } public void handleCommands(L2GameClient client, String command) { L2PcInstance activeChar = client.getActiveChar(); if (activeChar == null) return; switch (Config.COMMUNITY_TYPE) { default: case 0: //disabled activeChar.sendPacket(SystemMessageId.CB_OFFLINE); break; case 1: // old RegionBBSManager.getInstance().parsecmd(command, activeChar); break; case 2: // new if (command.startsWith("_bbsclan"))|| (command.startsWith("_bbsmemo"))|| (command.startsWith("_bbstopics"))|| (command.startsWith("_bbsposts"))|| (command.startsWith("_bbstop"))|| (command.startsWith("_bbshome"))|| (command.startsWith("_bbsloc"))|| (command.startsWith("_bbscprs")){ //to Custom PvP System BBS Manager CustomPvpSystemBBSManager.getInstance().parsecmd(command, activeChar); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } break; } } /** * @param client * @param url * @param arg1 * @param arg2 * @param arg3 * @param arg4 * @param arg5 */ public void handleWriteCommands(L2GameClient client, String url, String arg1, String arg2, String arg3, String arg4, String arg5) { L2PcInstance activeChar = client.getActiveChar(); if (activeChar == null) return; switch (Config.COMMUNITY_TYPE) { case 2: if (url.equals("Topic")) { TopicBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Post")) { PostBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Region")) { RegionBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else if (url.equals("Notice")) { ClanBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); } else { ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + url + " is not implemented yet</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); } break; case 1: RegionBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar); break; default: case 0: ShowBoard sb = new ShowBoard("<html><body><br><br><center>The Community board is currently disabled</center><br><br></body></html>", "101"); activeChar.sendPacket(sb); activeChar.sendPacket(new ShowBoard(null, "102")); activeChar.sendPacket(new ShowBoard(null, "103")); break; } } private static class SingletonHolder { protected static final CommunityBoard _instance = new CommunityBoard(); } } Edit case 2: in public void handleCommands(L2GameClient client, String command)
  6. 1. Yes i checked all topics with HTM table td tags :D 2. I dont wanna image in td i want background image in td or table, its mean i put background image and then i can put other data inside example: text.
  7. I tested all tags background imgsrc etc ... not work. About engine i cant find it here:D
  8. Like in subject: when i put <table background="imgsrc..."> it not work. Have you some idea? Its in game HTM.
  9. I founded update package for this system on my SSD check it. http://maxcheaters.com/forum/index.php?topic=248198.msg2285634#msg2285634
  10. are you updated L2PcInstance like in patch? remember to remove old code from doDie() method in L2PcInstance. because for me works perfect, when i use magic, normal hits etc. "Statistics" what do you mean?
  11. updated 3.0.5 fixed exceptions on magic hit, interrupt. check and report. About russian language, i have no idea for now how to do that i can't check my mods i haven't russian clients.:D You should find on this forum some advice how to do that, exactly how to use russian language in HTM files, maybe some special tag required or something :D
  12. #CustomPvpImagesEnabled = True set this option on true, False is not supported i next revision i will remove it.
  13. hookage what is you mysql version, required is 5.5+ System tested on latest frozen so it work for 100%. Ok i restore the situation , error is generated by magic skills i will fix it, be patient pls:D
  14. OK i will change coding , next what class are using what skill i want restore the situation :D
  15. tell me what server files are you using, i mean chronicle version. I'm sure for 99% you wrong implemented the patch.
  16. System not required any client side files, what are you not understand?:D All images are inside "images" folder.
×
×
  • Create New...