Cornwallis
Member
- Joined
- Jan 3, 2010
- Messages
- 480
- Reaction score
- 16
hello, I'm trying to use a storage value to add extra crit chance but it's not updating until relog. can i get around this?
is there a function i can send in LUA after i set a new storage value?
protocolgame.cpp
is there a function i can send in LUA after i set a new storage value?
protocolgame.cpp
Code:
int32_t storage = player->getStorageValue(15504, value);
msg.add<uint16_t>(std::round(player->varSpecialSkills[SPECIALSKILL_CRITICALHITCHANCE] + (storage / 100)));
msg.add<uint16_t>(0);