Jump to content

Group Experience Distribution


Recommended Posts

  • Active Member

constants.h

extern const DWORD        party_exp_distribute_table[PLAYER_EXP_TABLE_MAX + 1];

 

constnts.cpp

const DWORD party_exp_distribute_table[PLAYER_EXP_TABLE_MAX + 1] =
{
    0,
    10,        10,        10,        10,        15,        15,        20,        25,        30,        40,
    50,        60,        80,        100,    120,    140,    160,    184,    210,    240,
    270,    300,    330,    360,    390,    420,    450,    480,    510,    550,
    600,    640,    700,    760,    820,    880,    940,    1000,    1100,    1180,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,
};

 

change exp with your number

 

 

Link to comment
Share on other sites

I don't get it, what do the values in this table represent?

I see that there's a value for each level, but other than that, I can't make sense of it.

If I wanted to make it so when killing a Wild Dog, for example, every player in the group receives the full 15 XP, what change do I have to make?

Link to comment
Share on other sites

  • Active Member
4 minutes ago, ĐECKED said:

I don't get it, what do the values in this table represent?

I see that there's a value for each level, but other than that, I can't make sense of it.

If I wanted to make it so when killing a Wild Dog, for example, every player in the group receives the full 15 XP, what change do I have to make?


    10,        10,        10,        10,        15,        15,        20,        25,        30,        40,
    50,        60,        80,        100,    120,    140,    160,    184,    210,    240,
    270,    300,    330,    360,    390,    420,    450,    480,    510,    550,
    600,    640,    700,    760,    820,    880,    940,    1000,    1100,    1180,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    1260,    1320,    1380,    1440,    1500,    1560,    1620,    1680,    1740,    1800,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,
    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,    3000,

 

Here you change the board in the team with your own choice how much exactly you will take your team

Change the numbers until you find the right exp for your whole team

 

Link to comment
Share on other sites

  • Active Member
1 hour ago, ĐECKED said:

I don't get it, what do the values in this table represent?

I see that there's a value for each level, but other than that, I can't make sense of it.

If I wanted to make it so when killing a Wild Dog, for example, every player in the group receives the full 15 XP, what change do I have to make?

		when kill begin
			local mapindexbest = pc.get_map_index()
			if party.is_party() with mapindexbest == 1 or mapindexbest == 21 or mapindexbest == 41 then  --Add map
				local party_give_exp_all = {party.get_member_pids()}
				for i = 1, table.getn(party_give_exp_all) do
					if pc.select_pid(party_give_exp_all[i]) != 0 then
      					local give_experian = number(1, 2)
						if give_experian == 1 and pc.get_level() >= 90 and pc.get_level() < 100 then
							pc.give_exp2(15) --Change exp or what
						else
							if give_experian == 1 and pc.get_level() >= 90 and pc.get_level() < 100 then
								pc.give_exp2(15) --Change exp or what
							end
						end
					end
				end
			end
		end

Try this so I made party exp on my own server

You can define the maps you want. If you want exp to the whole team on a different map just make a second quest and set a new map with different exp

when kill begin   you change  when 101.kill begin  if you want them for specific mobs

Link to comment
Share on other sites

  • Premium
On 1/2/2023 at 5:36 PM, Draveniou1 said:
		when kill begin
			local mapindexbest = pc.get_map_index()
			if party.is_party() with mapindexbest == 1 or mapindexbest == 21 or mapindexbest == 41 then  --Add map
				local party_give_exp_all = {party.get_member_pids()}
				for i = 1, table.getn(party_give_exp_all) do
					if pc.select_pid(party_give_exp_all[i]) != 0 then
      					local give_experian = number(1, 2)
						if give_experian == 1 and pc.get_level() >= 90 and pc.get_level() < 100 then
							pc.give_exp2(15) --Change exp or what
						else
							if give_experian == 1 and pc.get_level() >= 90 and pc.get_level() < 100 then
								pc.give_exp2(15) --Change exp or what
							end
						end
					end
				end
			end
		end

Try this so I made party exp on my own server

You can define the maps you want. If you want exp to the whole team on a different map just make a second quest and set a new map with different exp

when kill begin   you change  when 101.kill begin  if you want them for specific mobs

Look... no.

There are things you shouldn't use a quest for, this is one of them.

  • Lmao 2
  • Good 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.