alin2894 14 Posted June 27, 2015 Share Posted June 27, 2015 Hi m2dev, I have a stressful problem..So a level 50 character, if it comes from a stone metin of level 5-10-15 etc they object fall from that stone.Normal character over level 25 to 30 should not have metin stones drop to level 5.Do you know where this problem would be? Sorry for my english. Link to comment Share on other sites More sharing options...
Alina 234 Posted June 28, 2015 Share Posted June 28, 2015 There are delta values defined in your gamefile. I guess you're using that vanilla thing. Some people complained about it letting people drop loot even if their level is way too high. Have a look at constants.h at line 108#define PERCENT_LVDELTA(me, victim) aiPercentByDeltaLev[MINMAX(0, (victim + 50) - me, MAX_EXP_DELTA_OF_LEV - 1)]#define PERCENT_LVDELTA_BOSS(me, victim) aiPercentByDeltaLevForBoss[MINMAX(0, (victim + 50) - me, MAX_EXP_DELTA_OF_LEV - 1)] See those values? You can change the +50 to +30 or any other value you want. I don't know why she raised them. Anyway, here you can fix it 1 Link to comment Share on other sites More sharing options...
alin2894 14 Posted June 29, 2015 Author Share Posted June 29, 2015 yes using vanilla, but there is something:#define PERCENT_LVDELTA(me, victim) aiPercentByDeltaLev[MINMAX(0, (victim + 50) - me, MAX_EXP_DELTA_OF_LEV - 1)]#define PERCENT_LVDELTA_BOSS(me, victim) aiPercentByDeltaLevForBoss[MINMAX(0, (victim + 50) - me, MAX_EXP_DELTA_OF_LEV - 1)] there is not even #define what I have is: const int * aiPercentByDeltaLev = NULL; const int * aiPercentByDeltaLevForBoss = NULL; const int aiPercentByDeltaLevForBoss_euckr[MAX_EXP_DELTA_OF_LEV] = { 1, 3, 5, 7, 15, 30, 60, 90, 91, 92, 93, 94, 95, 97, 99, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 180 }; Link to comment Share on other sites More sharing options...
alin2894 14 Posted July 1, 2015 Author Share Posted July 1, 2015 up. Link to comment Share on other sites More sharing options...
Alina 234 Posted July 2, 2015 Share Posted July 2, 2015 Did you open constants.h or constants.cpp? The defines I mentioned are in constants.h and I've got that from the vanilla source that's public here 1 Link to comment Share on other sites More sharing options...
alin2894 14 Posted July 2, 2015 Author Share Posted July 2, 2015 Did you open constants.h or constants.cpp? The defines I mentioned are in constants.h and I've got that from the vanilla source that's public here thank you! I opened constans.cpp, it was my mistake Thank you again! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now