Jump to content

sotid

Members
  • Posts

    345
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by sotid

  1. the code added doesnt seem to have any changes to any handler. where exactly do you mean?
  2. What did you change? I can see my mistake in the first line , I guess I have to add them like this: private static void showItemsPage(Player activeChar, int page) { if (_command.startsWith("DropListNpc")) { I dont understand you. I really need some help here, can someone help me via anydesk/tv?
  3. l2jfrozen 1004 interlude. So I added this code: But when drops are too many I get the usual error Html is too long try using DB for this action. So I want to add pages for it but I dont have a clue what I am doing. These are the codes Im trying to follow: https://pastebin.com/pCEGRBLR https://pastebin.com/6hdGbztm I dont know if I even add the lines to the correct java . This is what I have done in the RequestBypassToServer.java. https://pastebin.com/23quwrAC
  4. Αυτα τα config ειναι οτι χρειαζεσαι , DeleteAgmentPassiveEffectOnChangeWep=true DeleteAgmentActiveEffectOnChangeWep=False Ετσι που τα εχεις ειναι 1 passive και οσα active θες. Για ενα και μονο active πρεπει να κανεις στα skills αλλαγες. πχ: <skill id="3135" levels="10" name="Item Skill: Shield"> <table name="#mpConsume">48 53 55 59 64 65 69 73 77 82</table> <table name="#rate">1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.1 1.11 1.12</table> <table name="#mpConsume_Init">10 11 11 12 13 14 14 15 16 17</table> <table name="#magicLvl">46 49 52 55 58 61 64 67 70 76</table> <set name="magicLvl" val="#magicLvl"/> <set name="mpInitialConsume" val="#mpConsume_Init"/> <set name="mpConsume" val="#mpConsume"/> <set name="target" val="TARGET_SELF"/> <set name="reuseDelay" val="180000"/> <set name="hitTime" val="1000"/> <set name="skillType" val="BUFF"/> <set name="isMagic" val="true"/> <set name="operateType" val="OP_ACTIVE"/> <set name="castRange" val="400"/> <set name="effectRange" val="900"/> <set name="staticReuse" val="true"/> <set name="staticHitTime" val="true"/> <for> <effect count="1" name="Buff" time="10800" val="0" stackOrder="1" stackType="augment"> <mul order="0x30" stat="pDef" val="#rate"/> </effect> </for> </skill> <for> <effect count="1" name="Buff" time="10800" val="0" stackOrder="1" stackType="augment"> ............ </effect> </for> Βαλε το ιδιο stackΤype σε ολα για να εχεις μονο ενα active.
  5. Thanks everyone sweets you can lock it
  6. Could be this one? http://prntscr.com/mitpie
  7. Yea but this method doesnt work for a stucksub server. You make the sub and you get the skill. Even if its the same skill with 31 levels each one for each class when the sub is added the highest level will overwrite the lower.
  8. No xml no csv . Db entry what do you mean ? frozen ha character_template and this is it. https://ibb.co/n1Kxngd Yea I already made new passives for each class for my pvp server but this topic is for the stucksub one so it doesnt work. So whats left is core side . I guess maybe on formulas? I cant find something specific or I see it and I miss it that has anything to do with heath and races. This is the whole formulas.java. https://pastebin.com/hXjXtNk5
  9. baksteen ,thanks mate<3 Thanks link2PK and for the like ,as you said finding someone for the stucksub server is very hard cause they lack of knowledge. In my case Ive made the pvp/farm as simple as possible for a stucksub/multiskill server still some times some people dont understand the concept behind it and they give up and leave, so yea I will be careful and patient and choose wisely.
  10. Δειξε μας φωτο απο τα config σου. gameserver/loginserver properties.
  11. Still dont search for things? https://maxcheaters.com/topic/221847-custom-enchant-system/
  12. 2106 is not the one:)
  13. Do you even search before posting?most of your Questions have already been answered. I had the same Question answered 10 topics ago.
  14. Thanks again! Lock it!
  15. Thanks , of that was a big oof... Now what? Do I have to add something in pcinstance? [javac] C:\Users\User\workspace - pvp - Copy\Stable_1004\gameserver\head-src\com\l2jfrozen\gameserver\model\L2Party.java:680: error: no suitable method found for addItem(String,int,long,L2PcInstance,boolean) [javac] member.addItem("Party", itemId, count, player, true); [javac] ^ [javac] method L2PcInstance.addItem(String,int,int,L2Object,boolean) is not applicable [javac] (actual argument long cannot be converted to int by method invocation conversion) [javac] method L2PcInstance.addItem(String,L2ItemInstance,L2Object,boolean) is not applicable [javac] (actual and formal argument lists differ in length) [javac] 1 error
  16. Next error as promised. :D Error: [javac] Compiling 911 source files to C:\Users\User\workspace - pvp - Copy\Stable_1004\gameserver\build\classes [javac] C:\Users\User\workspace - pvp - Copy\Stable_1004\gameserver\head-src\com\l2jfrozen\gameserver\model\L2Party.java:681: error: cannot find symbol [javac] member.addItem("Party", itemid, count, player, true); [javac] ^ [javac] symbol: variable itemid [javac] location: class L2Party [javac] 1 error Actual lines: public void distributeAdena(L2PcInstance player, int itemId, long itemCount, L2Character target) { // Get all the party members List<L2PcInstance> membersList = getPartyMembers(); // Check the number of party members that must be rewarded // (The party member must be in range to receive its reward) List<L2PcInstance> ToReward = FastList.newInstance(); for(L2PcInstance member : membersList) { if(!Util.checkIfInRange(Config.ALT_PARTY_RANGE2, target, member, true)) { continue; } ToReward.add(member); } // Avoid null exceptions, if any if (ToReward.isEmpty()) return; // Now we can actually distribute the adena reward // (Total adena split by the number of party members that are in range and must be rewarded) long count = itemCount / ToReward.size(); for(L2PcInstance member : ToReward) { member.addItem("Party", itemid, count, player, true); } FastList.recycle((FastList<?>) ToReward); } I dont get why I get this error , other lines of the same java use itemid before I tried to edit anything. Anyway the code I used:
  17. Thank you all I used this and finally works. html.replace("%level%", Integer.toString(rhand.getAugmentation().getSkill().getLevel())); Please dont lock the topic , I will post another error later so I wont spam with topics.
  18. http://prntscr.com/mcjc18 I get this .
  19. case 11: String htmContent11 = HtmCache.getInstance().getHtm("data/html/mods/donate/augment/active/page4.htm"); html.setHtml(htmContent11); html.replace("%objectId%", String.valueOf(this.getObjectId())); html.replace("%charname%", player.getName()); ItemInstance item = player.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND); if (item != null && item.isAugmented() && item.getAugmentation() != null && item.getAugmentation().getSkill() != null && item.getAugmentation().getSkill().getLevel() >= 1) { html.replace("%level%", item.getAugmentation().getSkill().getLevel()); } html.replace("%level%", "None"); player.sendPacket(html); break; like this? I get error. http://prntscr.com/mcj9v3
  20. My error: C:\Users\User\workspace - pvp - Copy\Stable_1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2DonateShopInstance.java:928: error: method replace in class NpcHtmlMessage cannot be applied to given types; [javac] html.replace("%level%", rhand.getAugmentation().getSkill().getLevel()); [javac] ^ [javac] required: String,String [javac] found: String,int [javac] reason: actual argument int cannot be converted to String by method invocation conversion The actual lines: case 11: String htmContent11 = HtmCache.getInstance().getHtm("data/html/mods/donate/augment/active/page4.htm"); html.setHtml(htmContent11); html.replace("%objectId%", String.valueOf(this.getObjectId())); html.replace("%charname%", player.getName()); if (rhand != null && rhand.isAugmented() && rhand.getAugmentation() != null && rhand.getAugmentation().getSkill() != null && rhand.getAugmentation().getSkill().getLevel() >= 1) { html.replace("%level%", rhand.getAugmentation().getSkill().getLevel()); } html.replace("%level%", "None"); player.sendPacket(html); break; I know what the error is I see it but I dont know how to fix it. Any help?
  21. I get your point mate , but people who are new with java and not very good with english, including me sometimes we dont understand what is obvious for you:) You can lock the topic , not necessary to spam it with our discussion , my problem is already solved.
  22. Thanks, nice share.
  23. Either this or votes = Integer.valueOf(inputLine.split(">")[2].split("<")[0].replace(",", "")); this seems to work , thank you both. You can lock it.
×
×
  • Create New...