Calculating EXP of Leeches

Discussion in 'General Discussion' started by MedicSmile, Jul 2, 2018.

  1. MedicSmile
    Offline

    MedicSmile Donator

    Joined:
    Jun 1, 2018
    Messages:
    34
    Likes Received:
    11
    Location:
    Singapore
    Country Flag:
    IGN:
    MedicSmile
    Level:
    153
    Guild:
    Tilted
    Hi all, does anyone knows how EXP of leeches are calculated?

    If you're gonna throw in this formula:
    Monster XP * (0.8 * Player level / Total party level) * 150% (Only if you have maxed Holy Symbol)

    I'm telling you right now it is only accurate for a 2 person party. And even in a 2 person party, it can go off by up to 10-15% depending on player levels.

    Also it is very very off for party of larger numbers.

    How do I know it is inaccurate? Basically I tried and tested. Raw data is here

    So could anybody enlighten me on how this works?

    Thanks
     
  2. PhotonSphere
    Offline

    PhotonSphere Donator

    Joined:
    Jun 25, 2017
    Messages:
    250
    Likes Received:
    536
    Gender:
    Male
    Country Flag:
    IGN:
    PhotonSphere
    Level:
    191
    I deduced some formula myself while doing petri leech:

    When leeching 1 member within leech range (i.e. 2-people party, the mage does 100% of the damage):
    • Mage gets mob_exp * 0.8 * (1.5 if has HS)
    • Leecher gets mob_exp * (0.8 * leecher_level / party_total_level) * (1.5 if has HS) * 1.0034
    I have no idea where the 1.0034 comes from. It's just a number that I deduced from data.

    When leeching 2 party member within leech range (i.e. 3-people party, mage does 100% of the damage):
    • Mage gets mob_exp * 0.625 * (1.5 if has HS)
    • Leecher gets mob_exp * (0.8 * leecher_level / party_total_level) * (1.5 if has HS) * 1.1783
    Again, I have no idea where the 1.1783 comes from. I deduced that number from data.

    You can see these formula fit your data if plugged in. I didn't do any experiments for party with >3 people, so I have nothing to say in those scenarios.

    Some official responses would be nice too.
     
    Last edited: Jul 2, 2018
  3. MedicSmile
    Offline

    MedicSmile Donator

    Joined:
    Jun 1, 2018
    Messages:
    34
    Likes Received:
    11
    Location:
    Singapore
    Country Flag:
    IGN:
    MedicSmile
    Level:
    153
    Guild:
    Tilted
    Your data is very similar to some of mine. and I've noticed that it only applied IF those members are way lower level than you. When you bring these data up to ppl of similar level, or even higher level than yourself. It no longer works.
     
  4. PhotonSphere
    Offline

    PhotonSphere Donator

    Joined:
    Jun 25, 2017
    Messages:
    250
    Likes Received:
    536
    Gender:
    Male
    Country Flag:
    IGN:
    PhotonSphere
    Level:
    191
    Oh yeah, I tried to leech my 192 Bishop using my 174 I/L, and my deduced formula is very off.

    But still, for high-level mages leeching low-level leechers, they serve as good approximations. And that's what most people care about XD.

    Hopefully you can deduce a formula that works for all levels. It's like trying to discover relativity when most people (including me) are satisfied with Newtonian Mechanics as a low-speed small-gravity approximation, LOL.

    Or maybe God (@Karven ) can just tell us how he designed the universe.
     
    Last edited: Jul 2, 2018
  5. Matty
    Offline

    Matty Donator

    Joined:
    May 15, 2015
    Messages:
    2,103
    Likes Received:
    2,711
    Gender:
    Male
    Location:
    Stockholm
    Country Flag:
    IGN:
    Matty
    Level:
    200
    Guild:
    Heroes
    It's something like Monster EXP * EXP Rate * (Your level/average party level) / party size * Holy Symbol bonus (most likely 1.5 in this case) if I remember correctly.
     
  6. MedicSmile
    Offline

    MedicSmile Donator

    Joined:
    Jun 1, 2018
    Messages:
    34
    Likes Received:
    11
    Location:
    Singapore
    Country Flag:
    IGN:
    MedicSmile
    Level:
    153
    Guild:
    Tilted
    Yeah I'm aware of those and I'm saying they aren't accurate lol. But I didn't see party size in the formula. Let me try.
     
  7. MedicSmile
    Offline

    MedicSmile Donator

    Joined:
    Jun 1, 2018
    Messages:
    34
    Likes Received:
    11
    Location:
    Singapore
    Country Flag:
    IGN:
    MedicSmile
    Level:
    153
    Guild:
    Tilted
    LMAO Cracking the Da Vinci Code.
     
  8. Matty
    Offline

    Matty Donator

    Joined:
    May 15, 2015
    Messages:
    2,103
    Likes Received:
    2,711
    Gender:
    Male
    Location:
    Stockholm
    Country Flag:
    IGN:
    Matty
    Level:
    200
    Guild:
    Heroes
    The difference is that is uses the average party level rather than the total party level. You can thank the original creator of OdinMS for that.
     
  9. Geyforlife
    Offline

    Geyforlife Well-Known Member

    Joined:
    Jul 30, 2017
    Messages:
    1,187
    Likes Received:
    2,616
    Country Flag:
    IGN:
    Geybrian
    Level:
    o7
    Guild:
    USSR
    @Matty

    average party level = party total level / party size

    substituting into your given equation,
    exp gained = Monster EXP * EXP Rate * (Your level/(party total level / party size)) / party size * Holy Symbol bonus
    exp gained = Monster EXP * EXP Rate * (Your level/party total level ) * Holy Symbol bonus

    i.e. they are the same thing... Also, there is some sort of multiplier like 0.8 for 2 ppl leech
     
    chainyu0220 and Matty like this.
  10. Matty
    Offline

    Matty Donator

    Joined:
    May 15, 2015
    Messages:
    2,103
    Likes Received:
    2,711
    Gender:
    Male
    Location:
    Stockholm
    Country Flag:
    IGN:
    Matty
    Level:
    200
    Guild:
    Heroes
    Yeah shit, my bad. Party size isn't even mentioned twice in the actual calc, no idea how it snuck in there.

    There's no explicit mention of a 0.8 multiplier in the code afaik. Let me try to revise the formula a bit:

    So for a N man party, the experience gained by the leecher assuming they aren't damaging the mob would be something like
    Code:
    ((Monster EXP * EXP Rate * (1.1 + 0.05 * N)/N + 1) * (leecher level/average party level) * HS bonus 
    barring any mistakes on my part and/or the formula being changed in the last 5 months or so.

    EDIT: Added EXP Rate for visibility
     
    Last edited: Jul 2, 2018
  11. Geyforlife
    Offline

    Geyforlife Well-Known Member

    Joined:
    Jul 30, 2017
    Messages:
    1,187
    Likes Received:
    2,616
    Country Flag:
    IGN:
    Geybrian
    Level:
    o7
    Guild:
    USSR
    So I did some leeching at jr newties and gained 6,579 exp for a LV 147 char. My bishop was LV 180. And the party was only two of us.

    Using your formula,
    (3800 * 3.2* (1.1 +0.05 * 2)/2 + 1 )* (147/163.5) *1.5 =9840.91

    Assuming you meant this instead,
    (3800 * 3.2* (1.1 +0.05 * 2)/ (2 + 1 ))* (147/163.5) *1.5= 6599.71

    Which is what we get when we do the 0.8 multiplier thing,
    3800*3.2* 0.8* 147/ (147+180)*1.5 = 6599.71

    Edit: made some miscalculations on the first equation
     
    Last edited: Jul 2, 2018
    Matty likes this.
  12. Matty
    Offline

    Matty Donator

    Joined:
    May 15, 2015
    Messages:
    2,103
    Likes Received:
    2,711
    Gender:
    Male
    Location:
    Stockholm
    Country Flag:
    IGN:
    Matty
    Level:
    200
    Guild:
    Heroes
    Edited my post accordingly. Figured the EXP rate would be included in the Monster EXP but minor differences.

    Try that calc for a party with 3+ members. The 0.8 multiplier is probably just a happy accident from the fact that the total party level is average party level * 2 in this case and 1.2/3 = 0.4.
     
  13. Geyforlife
    Offline

    Geyforlife Well-Known Member

    Joined:
    Jul 30, 2017
    Messages:
    1,187
    Likes Received:
    2,616
    Country Flag:
    IGN:
    Geybrian
    Level:
    o7
    Guild:
    USSR
    If this is what you mean,

    [Monster EXP * EXP Rate * (1.1 + 0.05 * N)/ (N + 1) ] * (leecher level/average party level) * HS bonus

    then I guess I am fine with it. Previously I was substituting 0.8 with other values like 0.94, 1.045, 1.13, 1.2 as the party got larger as I didn't know how the actual formula worked.

    In any case, there are still differences in the exp gained as the formula says I would gain 6599 when I actually gained 6579. I guessed that it was probably the way the game processes the number (turning numbers to integers midway in calculation) and it seems that this formula yields the right exp :o

    exp gained =FLOOR((Monster exp * exp rate *(1.1+0.05 * N)/(N + 1 ))* (Leecher level /FLOOR( (Total party level / N) ) )*1.5)

    so apparently the average level is an integer and should be treated as 163 instead of 163.5. Thanks @Matty !
     
    Last edited: Jul 2, 2018
    nomade, t234, Cola and 1 other person like this.

Share This Page