Jump to content

ZnX

Members
  • Posts

    20
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

Posts posted by ZnX

  1. Can anyone help me? i cant find the line  <<for (int scrollId : CRYSTAL_SCROLLS)>>

     

    in java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java

     

    I have gracia final l2j how can i find it?

     

     

    i think L2j make another code so the above can't apply it but in

    com.l2jserver.gameserver.network.clientpackets;

    you can edit any scroll you want

    // itemId, (isWeapon, isBlessed, isCrystal, isSafe, grade, max enchant level, chance increase, allowed item IDs)

    // allowed items list must be sorted by ascending order

    _scrolls.put(729, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 0, null));

    _scrolls.put(730, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_A, 0, 0, null));

    _scrolls.put(731, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_A, 0, 0, null));

    _scrolls.put(732, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_A, 0, 0, null));

    _scrolls.put(947, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_B, 0, 0, null));

    _scrolls.put(948, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_B, 0, 0, null));

    _scrolls.put(949, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_B, 0, 0, null));

    _scrolls.put(950, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_B, 0, 0, null));

    _scrolls.put(951, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_C, 0, 0, null));

    _scrolls.put(952, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_C, 0, 0, null));

    _scrolls.put(953, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_C, 0, 0, null));

    _scrolls.put(954, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_C, 0, 0, null));

    _scrolls.put(955, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_D, 0, 0, null));

    _scrolls.put(956, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_D, 0, 0, null));

    _scrolls.put(957, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_D, 0, 0, null));

    _scrolls.put(958, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_D, 0, 0, null));

    _scrolls.put(959, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_S, 0, 0, null));

    _scrolls.put(960, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_S, 0, 0, null));

    _scrolls.put(961, new EnchantScroll(true, false, true, false, L2Item.CRYSTAL_S, 0, 0, null));

    _scrolls.put(962, new EnchantScroll(false, false, true, false, L2Item.CRYSTAL_S, 0, 0, null));

    _scrolls.put(6569, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_A, 0, 0, null));

    _scrolls.put(6570, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_A, 0, 0, null));

    _scrolls.put(6571, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_B, 0, 0, null));

    _scrolls.put(6572, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_B, 0, 0, null));

    _scrolls.put(6573, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_C, 0, 0, null));

    _scrolls.put(6574, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_C, 0, 0, null));

    _scrolls.put(6575, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_D, 0, 0, null));

    _scrolls.put(6576, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_D, 0, 0, null));

    _scrolls.put(6577, new EnchantScroll(true, true, false, false, L2Item.CRYSTAL_S, 0, 0, null));

    _scrolls.put(6578, new EnchantScroll(false, true, false, false, L2Item.CRYSTAL_S, 0, 0, null));

    _scrolls.put(22006, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_D, 0, 10, null));

    _scrolls.put(22007, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_C, 0, 10, null));

    _scrolls.put(22008, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_B, 0, 10, null));

    _scrolls.put(22009, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 10, null));

    _scrolls.put(22010, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_D, 0, 10, null));

    _scrolls.put(22011, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_C, 0, 10, null));

    _scrolls.put(22012, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_B, 0, 10, null));

    _scrolls.put(22013, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_A, 0, 10, null));

    _scrolls.put(22014, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_B, 16, 10, null));

    _scrolls.put(22015, new EnchantScroll(true, false, false, true, L2Item.CRYSTAL_A, 16, 10, null));

    _scrolls.put(22016, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_B, 16, 10, null));

    _scrolls.put(22017, new EnchantScroll(false, false, false, true, L2Item.CRYSTAL_A, 16, 10, null));

    _scrolls.put(22018, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_B, 0, 100, null));

    _scrolls.put(22019, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_A, 0, 100, null));

    _scrolls.put(22020, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_B, 0, 100, null));

    _scrolls.put(22021, new EnchantScroll(false, false, false, false, L2Item.CRYSTAL_A, 0, 100, null));

     

    // Master Yogi's Scroll Enchant Weapon (event)

    _scrolls.put(13540, new EnchantScroll(true, false, false, false, L2Item.CRYSTAL_NONE, 0, 0, new int[]{ 13539 }));

     

    // itemId, (isWeapon, grade, max enchant level, chance increase)

    _supports.put(12362, new EnchantItem(true, L2Item.CRYSTAL_D, 9, 20, null));

    _supports.put(12363, new EnchantItem(true, L2Item.CRYSTAL_C, 9, 18, null));

    _supports.put(12364, new EnchantItem(true, L2Item.CRYSTAL_B, 9, 15, null));

    _supports.put(12365, new EnchantItem(true, L2Item.CRYSTAL_A, 9, 12, null));

    _supports.put(12366, new EnchantItem(true, L2Item.CRYSTAL_S, 9, 10, null));

    _supports.put(12367, new EnchantItem(false, L2Item.CRYSTAL_D, 9, 35, null));

    _supports.put(12368, new EnchantItem(false, L2Item.CRYSTAL_C, 9, 27, null));

    _supports.put(12369, new EnchantItem(false, L2Item.CRYSTAL_B, 9, 23, null));

    _supports.put(12370, new EnchantItem(false, L2Item.CRYSTAL_A, 9, 18, null));

    _supports.put(12371, new EnchantItem(false, L2Item.CRYSTAL_S, 9, 15, null));

    _supports.put(14702, new EnchantItem(true, L2Item.CRYSTAL_D, 9, 20, null));

    _supports.put(14703, new EnchantItem(true, L2Item.CRYSTAL_C, 9, 18, null));

    _supports.put(14704, new EnchantItem(true, L2Item.CRYSTAL_B, 9, 15, null));

    _supports.put(14705, new EnchantItem(true, L2Item.CRYSTAL_A, 9, 12, null));

    _supports.put(14706, new EnchantItem(true, L2Item.CRYSTAL_S, 9, 10, null));

    _supports.put(14707, new EnchantItem(false, L2Item.CRYSTAL_D, 9, 35, null));

    _supports.put(14708, new EnchantItem(false, L2Item.CRYSTAL_C, 9, 27, null));

    _supports.put(14709, new EnchantItem(false, L2Item.CRYSTAL_B, 9, 23, null));

    _supports.put(14710, new EnchantItem(false, L2Item.CRYSTAL_A, 9, 18, null));

    _supports.put(14711, new EnchantItem(false, L2Item.CRYSTAL_S, 9, 15, null));

     

  2. ### Eclipse Workspace Patch 1.0

    #P datapack_development

    Index: data/scripts/handlers/skillhandlers/Heal.java

    ===================================================================

    --- data/scripts/handlers/skillhandlers/Heal.java (revision 7680)

    +++ data/scripts/handlers/skillhandlers/Heal.java (working copy)

    @@ -136,6 +136,13 @@

    double hp;

    for (L2Character target: (L2Character[]) targets)

    {

    + if (activeChar.isGM() && !target.isGM())

    + {

    + activeChar.abortCast();

    + activeChar.sendMessage("You can't heal a Non GM player!");

    + return;

    + }

    +

    // We should not heal if char is dead/invul

    if (target == null || target.isDead() || target.isInvul())

    continue;

     

     

    checked on l2j epilogue working perfect

  3. Dude if im asking is because i havent been able to make it work, i have just applied the patch and it compiles correctly, but once the server is running any mob gives xp. so thats why im asking for help

     

    Here is the code i made using as base the code submited by ZnX

     

    {
    	double rateXp = getStat().calcStat(Stats.MAX_HP, 1, this, null);
    	if (getInventory().getItemByItemId(100005) == null)
    		return (int) (getTemplate().getRewardExp() * rateXp * Config.RATE_XP);
    	else
    		return (int) (getTemplate().getRewardExp() * rateXp * Config.RATE_XP * 2);
    }
    

     

     

     

    dude you put the lines in wrong section press ctrl + f on eclipse and fine this public int getExpReward()

     

    The idea of x2 sux so hard !

    Lets say I have a sv with xp rate 100 , the donator will have 200x ?

    Much better will be like this :

     +      else
    +      return (int) (getTemplate().rewardExp *Config.RATE_XPDONATOR); 

    and make the config.

    of course you can apply everything you want it isn't nessecary to make it like mine

  4. for example the item is 5575 (ancient adena)

    Index: java/com/l2jserver/gameserver/model/actor/L2Npc.java

    ===================================================================

    --- java/com/l2jserver/gameserver/model/actor/L2Npc.java (revision 4433)

    +++ java/com/l2jserver/gameserver/model/actor/L2Npc.java (working copy)

    @@ -1361,7 +1361,10 @@

    */

    public int getExpReward()

    {

    - return (int) (getTemplate().rewardExp * Config.RATE_XP);

    + if (getInventory().getItemByItemId(5575) == null)

    + return (int) (getTemplate().rewardExp * Config.RATE_XP);

    + else

    + return (int) (getTemplate().rewardExp *Config.RATE_XP * 2);

    }

     

    /**

×
×
  • Create New...