Jump to content
×
×
  • Create New...
  • 0

Help by exp_table


MORTE

Question

7 answers to this question

Recommended Posts

  • 0
  • Premium

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
Share on other sites

  • 0

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
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 6
    2. 9

      Help in implementing a switch bot

    3. 0

      Special Inventory System Can't Sell To Npc's

    4. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    5. 75

      Services - System Ard [C ++ / Python / Lua]

    6. 76

      Chatting Window Renewal (Mini Version)

    7. 2

      ItemShop GM ZONE TAB

    8. 9

      Help in implementing a switch bot

  • Recently Browsing

    • No registered users viewing this page.

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.