Jump to content

0flee

Members
  • Posts

    485
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by 0flee

  1. Here it is code, maybe it is more ok to change path to scripts folder. But i don;t know to change code
  2. In another word, where o should enter? in java file ond DelevelManager?
  3. I check before, isn't fro there. Cuz devs from sunrise can;t access my system :)
  4. How i can change title for npc? (L2j-Sunrise) I try from stats/npc/custom. But isn't from there. I set my title and usingServerSideTitle="true". Anything i do, no work. it is coded?
  5. Hello all, can someone tell me from where i can download/get a buffer for L2jMobius-High five? Thank you! I already have one. But i don;t like. Also i have in alt+b but no have scheme. I want a simple npc buffer. Greetings
  6. Hi all, someone could like to tell me how i can remove this confirm window? Everytime when i restart server, reload something, i get this. And i will be happy to know how to remove. Greetings
  7. Copy xml from original scroll, if you make that xml for scroll. open L2-file edit and search in ItemName-e.dat "Scroll of Might" And copy or edit that xml. Just change Item_Skill with your skill id. Also check this line if you have. i don;t work with aCis. <set name="default_action" val="SKILL_REDUCE" />
  8. If i am not wrong, you want player use that scrolls like others. So copy xml from might buff for exemple, and make a second xml skill for scroll with scroll image. Or simple edit with status existing scrolls.
  9. In l2j-mobius i find a skill which give drop rate up. I give skill, but no effect. Someone give me this code. Index: dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java =================================================================== --- dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java (revision 7034) +++ dist/game/data/scripts/handlers/bypasshandlers/NpcViewMod.java (working copy) @@ -265,6 +265,7 @@ final DecimalFormat chanceFormat = new DecimalFormat("0.00##"); int leftHeight = 0; int rightHeight = 0; + final double dropRateEffectBonus = player.getStat().getBonusDropRateMultiplier(); final StringBuilder leftSb = new StringBuilder(); final StringBuilder rightSb = new StringBuilder(); String limitReachedMsg = ""; @@ -363,6 +364,8 @@ rateAmount *= Config.PREMIUM_RATE_DROP_AMOUNT; } } + // bonus drop rate effect + rateChance *= dropRateEffectBonus; } sb.append("<table width=332 cellpadding=2 cellspacing=0 background=\"L2UI_CT1.Windows.Windows_DF_TooltipBG\">"); Index: dist/game/data/scripts/handlers/communityboard/DropSearchBoard.java =================================================================== --- dist/game/data/scripts/handlers/communityboard/DropSearchBoard.java (revision 7034) +++ dist/game/data/scripts/handlers/communityboard/DropSearchBoard.java (working copy) @@ -167,6 +167,7 @@ final int start = (page - 1) * 14; final int end = Math.min(list.size() - 1, start + 14); final StringBuilder builder = new StringBuilder(); + final double dropRateEffectBonus = player.getStat().getBonusDropRateMultiplier(); for (int index = start; index <= end; index++) { final CBDropHolder cbDropHolder = list.get(index); @@ -260,6 +261,8 @@ rateAmount *= Config.PREMIUM_RATE_DROP_AMOUNT; } } + // bonus drop rate effect + rateChance *= dropRateEffectBonus; } builder.append("<tr>"); Index: dist/game/data/stats/skills/08400-08499.xml =================================================================== --- dist/game/data/stats/skills/08400-08499.xml (revision 7034) +++ dist/game/data/stats/skills/08400-08499.xml (working copy) @@ -427,10 +427,16 @@ </skill> <skill id="8415" levels="5" name="Ring Ability - Drop Rate Up"> <!-- Increases item drop rate. --> + <table name="#bonusDropRate">10 20 30 40 50</table> <set name="icon" val="icon.skill3080" /> <set name="magicLvl" val="85" /> <set name="operateType" val="P" /> - <set name="targetType" val="NONE" /> + <set name="targetType" val="SELF" /> + <for> + <effect name="Buff"> + <add stat="bonusDropRate" val="#bonusDropRate" /> + </effect> + </for> </skill> <skill id="8416" levels="5" name="Earring Ability - Drop Rate Up"> <!-- Increases item drop rate. --> Index: dist/game/data/xsd/skills.xsd =================================================================== --- dist/game/data/xsd/skills.xsd (revision 7034) +++ dist/game/data/xsd/skills.xsd (working copy) @@ -414,9 +414,10 @@ <xs:enumeration value="waterPower" /> <xs:enumeration value="windPower" /> <xs:enumeration value="firePower" /> - <xs:enumeration value="bonusSp" /> <xs:enumeration value="defCritRateAdd" /> <xs:enumeration value="bonusExp" /> + <xs:enumeration value="bonusSp" /> + <xs:enumeration value="bonusDropRate" /> <xs:enumeration value="pvePhysDmg" /> <xs:enumeration value="pvePhysSkillsDmg" /> <xs:enumeration value="pveBowDmg" /> Index: java/org/l2jmobius/gameserver/model/actor/stat/PlayerStat.java =================================================================== --- java/org/l2jmobius/gameserver/model/actor/stat/PlayerStat.java (revision 7034) +++ java/org/l2jmobius/gameserver/model/actor/stat/PlayerStat.java (working copy) @@ -937,4 +937,9 @@ return bonus; } + + public double getBonusDropRateMultiplier() + { + return 1 + (calcStat(Stat.BONUS_DROP_RATE, 0, null, null) / 100); + } } Index: java/org/l2jmobius/gameserver/model/actor/templates/NpcTemplate.java =================================================================== --- java/org/l2jmobius/gameserver/model/actor/templates/NpcTemplate.java (revision 7034) +++ java/org/l2jmobius/gameserver/model/actor/templates/NpcTemplate.java (working copy) @@ -776,6 +776,12 @@ } } + // bonus drop rate effect + if (killer.getActingPlayer() != null) + { + rateChance *= killer.getActingPlayer().getStat().getBonusDropRateMultiplier(); + } + // calculate if item will drop if ((Rnd.nextDouble() * 100) < (dropItem.getChance() * rateChance)) { Index: java/org/l2jmobius/gameserver/model/stats/Stat.java =================================================================== --- java/org/l2jmobius/gameserver/model/stats/Stat.java (revision 7034) +++ java/org/l2jmobius/gameserver/model/stats/Stat.java (working copy) @@ -88,6 +88,7 @@ EXPSP_RATE("rExp"), BONUS_EXP("bonusExp"), BONUS_SP("bonusSp"), + BONUS_DROP_RATE("bonusDropRate"), ATTACK_CANCEL("cancel"), // ACCURACY & RANGE set like here, still no effect from skill. What it is wrong?
  10. Please help me with this error. Exception in thread "ThreadPoolExecutor-8" java.lang.NoClassDefFoundError: gr/sr /configsEngine/configs/impl/CommunityDonateConfigs at l2r.gameserver.communitybbs.BoardsManager.handleCommands(BoardsManage r.java:60) at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re questBypassToServer.java:251) at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli entPacket.java:71) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: gr.sr.configsEngine.configs.impl.Co mmunityDonateConfigs at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 6 more Thank you!
  11. And how i can fix it? @melron? what i can do?
  12. OK guys, i solve it. the problem was "=" from <=80. Now i leave it < 80 and it's working. thx again. Now i want to know how i can count them. it is player.getCountDelevel()?
  13. Ok, i have level 80 and i can;t do delevel. just on level 85. I will post here code. http://
  14. Yea, i did it on voice command. Now i must find that way to do delevel after lv 80. I try if (player.getLevel >= 80 && player.getLevel <= 85) // Only 80 .. 85 levels and chat still sau i no have requirements to do delevel.
  15. I try this before, unsuccessfully. Btw, i find a voice command to do that except npc. But it is in Greek and it is for interlude, and i try to adapt L2j-Sunrise , but idk if i can.
  16. I want after level 80 ( till level 85) player downlevel to 55.
  17. Yea, no work for me, thx all for attentions. everything i do, no work. I have lv 80 and item for destroy, Delevel Manager has telling me i no have lv 801.....
  18. I have complete with my code and this is final code, idk if it's works cuz i compile again and replace core. Also, i do not understand to explain this line and what he do exactly ExperienceData.getInstance().getExpForLevel(player.getLevel() - 1), 0);
  19. Well, thank you @melron for your effort to write here. btu is a bit hard to understand (for me) how it;s work that xp, sp to decrease. Cuz i want just XP to decrease, not sp. i don;t know numbers for level 55.
  20. No work. I get some errors in Eclipse.
  21. Also, i have a code, but i don;t want to be this and i want to edit.
  22. *UPDATE* No work, i don;t know how to fix this: - Player when have lv 85 to perform delevel; - Item request for delevel; - Item reward after delevel; - Exp from level 85 - 55 decrease; L2j-Sunrise. Thank you
  23. for reward was something like this player.addItem("xxxx", 57, 10, null, true);
  24. Apiga was an exemple, i want to replace with another item
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock