Jump to content

Earned Exp


Recommended Posts

can make a config? in the index? pls

z.b. text_exp: 1

Open the char_battle.cpp:
under:
 

iExp = AdjustExpByLevel(to, iExp);

add this:
 

	if (show_exp)
	{
		to->ChatPacket(CHAT_TYPE_INFO, "|cff00ff00|H|hEarned Exp : %d", iExp);
	}

 

 

now open config.h and add this:
 

extern bool show_exp;

 

now open config.cpp and annd under this:
 

bool		bXTrapEnabled = false;

this:
 

bool show_exp = false;

 

 

now under this funktion:
 

		TOKEN("block_char_creation")
		{
			int tmp = 0;

			str_to_number(tmp, value_string);

			if (0 == tmp)
				g_BlockCharCreation = false;
			else
				g_BlockCharCreation = true;

			continue;
		}

add this:
 

		TOKEN("show_exp")
		{
			int exp = 0;

			str_to_number(exp, value_string);

			if (1 == exp)
			{
				show_exp = true;
				fprintf(stderr, "Show EXP: %in", exp);
			}
		}

 

 

done but not testet....

 

 

.Kori

Edited by Kori
  • Love 1
Link to comment
Share on other sites

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.