Newbie Spellweaver
- Joined
- Feb 4, 2017
- Messages
- 25
- Reaction score
- 5
Hello there today i show you how to add exp reward per kill.
1. Step;
Add Contents.h (You can set the minimum and maximum exp amount here)
2.Step;
Add FieldIOCPSocket2.cpp line 26289
3.Step;
Add FieldIOCPSocket2.cpp line 37324
Enjoy!
1. Step;
Add Contents.h (You can set the minimum and maximum exp amount here)
Code:
#define _EXP_REWARD_PER_KILL //Emirr exp per kill
#define EXP_REWARD_KILL_MIN_COUNT 7282066
#define EXP_REWARD_KILL_MAX_COUNT 7682066
Add FieldIOCPSocket2.cpp line 26289
Code:
#ifdef _EXP_REWARD_PER_KILL
UINT rewardedEXP = this->AddCharacterEXPRewardByKill();
#endif //Kill başına EXP //Emirr
3.Step;
Add FieldIOCPSocket2.cpp line 37324
Code:
UINT CFieldIOCPSocket::AddCharacterEXPRewardByKill()
{
//Min max exp rastgele
UINT ExpsToAdd = ms_pFieldIOCP->GetRandInt32(EXP_REWARD_KILL_MIN_COUNT, EXP_REWARD_KILL_MAX_COUNT);
//EXP ekleme
this->ChangeExperience(ExpsToAdd, FALSE, TRUE, WPUT_KILL);
return ExpsToAdd;
}
Enjoy!
Attachments
You must be registered for see attachments list