Jump to content

Help by exp_table


Go to solution Solved by Sanchez,

Recommended Posts

  • Premium
  • Solution

Open main.cpp and add this to the top:

#include "fstream"

Search for this still in main.cpp:

PanamaLoad();

Add this under that:

	// START_OF_EXP_TABLE_LOADING
	std::string temp_exp_line;
	std::ifstream exp_table_open("exptable.txt");

	if (!exp_table_open.is_open())
		return 0;

	int exp_table_counter = 0;
	while (!exp_table_open.eof())
	{
		exp_table_open >> temp_exp_line;
		str_to_number(exp_table_common[exp_table_counter], temp_exp_line.c_str());
		exp_table_counter++;
	}
	// END_OF_EXP_TABLE_LOADING

Open constants.cpp and replace this:

const DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1] =
{
   ...
};

With this:

DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1];

Open constants.h and replace this:

extern const DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1];

With this:

extern DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1];

exptable.txt example: http://pastebin.com/KPMGPY38

  • Love 1
Link to comment
https://metin2.dev/topic/2510-help-by-exp_table/#findComment-17022
Share on other sites

thank you

 

exptable.txt

0,
300,
800,
1500,
2500,
4300,
7200,
11000,
17000,
24000,
33000,
43000,
58000,
76000,
100000,
130000,
169000,
219000,
283000,
365000,
472000,
610000,
705000,
813000,
937000,
1077000,
1237000,
1418000,
1624000,
1857000,
2122000,
2421000,
2761000,
3145000,
3580000,
4073000,
4632000,
5194000,
5717000,
6264000,
6837000,
7600000,
8274000,
8990000,
9753000,
10560000,
11410000,
12320000,
13270000,
14280000,
15340000,
16870000,
18960000,
19980000,
21420000,
22930000,
24530000,
26200000,
27960000,
29800000,
32780000,
36060000,
39670000,
43640000,
48000000,
52800000,
58080000,
63890000,
70280000,
77310000,
85040000,
93540000,
102900000,
113200000,
124500000,
137000000,
150700000,
165700000,
236990000,
260650000,
286780000,
315380000,
346970000,
381680000,
419770000,
461760000,
508040000,
558740000,
614640000,
676130000,
743730000,
1041222000,
1145344200,
1259878620,
1385866482,
1524453130,
1676898443,
1844588288,
2029047116,
2050000000,
2150000000,
2210000000,
2250000000,
2280000000,
2310000000,
2330000000,
2350000000,
2370000000,
2390000000,
2400000000,
2410000000,
2420000000,
2430000000,
2440000000,
2450000000,
2460000000,
2470000000,
2480000000,
2490000000,
2490000000,
2500000000,

 

and so?

 

 

Link to comment
https://metin2.dev/topic/2510-help-by-exp_table/#findComment-17023
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.