Premium .Avenue™ 782 Posted March 31, 2014 Premium Share Posted March 31, 2014 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 2 Link to comment Share on other sites More sharing options...
Think 117 Posted April 1, 2014 Share Posted April 1, 2014 Why don't you set 20000 as default so you don't create two variables for it? 2 Link to comment Share on other sites More sharing options...
Premium .Avenue™ 782 Posted April 2, 2014 Author Premium Share Posted April 2, 2014 Now I can set in CONFIG: exp_for_fb : 1337 Then I need 1337 exp for every skillbook Link to comment Share on other sites More sharing options...
Think 117 Posted April 5, 2014 Share Posted April 5, 2014 You did not understand my point. I know you can, I was talking about your implementation 1 Link to comment Share on other sites More sharing options...
loyein 18 Posted January 3, 2016 Share Posted January 3, 2016 Thanks for the guide. Link to comment Share on other sites More sharing options...
Recommended Posts