Jump to content

How To Set Exp Amount for Reading Skill Books


Recommended Posts

  • Premium

First, open your config.cpp and search for:

int			test_server = 0;

and paste:

int			exp_for_fb = 0;

under it.

 

After you search for:

		TOKEN("test_server")
		{
			printf("-----------------------------------------------n");
			printf("TEST_SERVERn");
			printf("-----------------------------------------------n");
			str_to_number(test_server, value_string);
			continue;
		}

and paste:

		TOKEN("exp_for_fb")
		{
			printf("-----------------------------------------------n");
			printf("SKILLBOOKS NEED %s EXP PER BOOKn", value_string);
			printf("-----------------------------------------------n");
			str_to_number(exp_for_fb, value_string);
			continue;
		}

under it.

 

 

Now open your config.h and search for:

extern int test_server;

and paste:

extern int exp_for_fb;

under it.

 

 

Open the char_skill.cpp and search for:

need_exp = 20000;

and replace it with:

        if (exp_for_fb > 0) {
            need_exp = exp_for_fb;
        } else {
            need_exp = 20000;
        }

Search for:

        if (GetExp() < need_exp) {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Du hast nicht genügend Erfahrungspunkte."));
            return false;
        }

and repleace it with:

        if (exp_for_fb > 0) {
            if (GetExp() < need_exp) {
                ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Du hast nicht genügend Erfahrungspunkte."));
                return false;
            }
        }

At last, search for:

            PointChange(POINT_EXP, -need_exp);

and replace it with:

            if (exp_for_fb > 0) {
                PointChange(POINT_EXP, -need_exp);
            }

Have fun with it :)

 

TO CHANGE THE EXP PER SKILLBOOK YOU HAVE TO WRITE:

exp_for_fb: 1234

(as example) in EVERY CONFIG OF YOUR CORES ( CHANNEL-CONFIGS!)

Sincerely,

Avenue

  • Love 2
Link to comment
Share on other sites

  • 1 year later...

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.