silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 212
Hello folks, I'm trying change the Xp Gain Rate in the skills window when the player buy the experience boost in the store ...
so, the offer in the store will give a storage to the player and it will be handled in creatureEvents in onGainExperience
then I want to update the values and handle with that as the Tibia Global
1- the boost will decay only if you are hunting
2- update the value exp gain rate when the time is over
3- update the value when the player buy the exp boost
I find in protocolgame.cpp
How I can handle with that?
so, the offer in the store will give a storage to the player and it will be handled in creatureEvents in onGainExperience
then I want to update the values and handle with that as the Tibia Global
1- the boost will decay only if you are hunting
2- update the value exp gain rate when the time is over
3- update the value when the player buy the exp boost
I find in protocolgame.cpp
Code:
msg.add<uint16_t>(100); // base xp gain rate
msg.add<uint16_t>(0); // xp voucher
msg.add<uint16_t>(0); // low level bonus
msg.add<uint16_t>(0); // xp boost
msg.add<uint16_t>(100); // stamina multiplier (100 = x1.0)