Daxter 1 Report post Posted January 15 Hi, How can level-up rewards be added? And could they be account-bound without requiring outside tracking (such as GameDB or .txt) Quote Share this post Link to post Share on other sites
Graf 211 Report post Posted January 15 (edited) @Daxter Hi. If you have source code - you can reward level-up. Example function: And no need GameDB/.txt For add function - open FightAble.cpp and find function: void CFightAble::CountLevel() After string: g_CParser.DoString("Shengji_Shuxingchengzhang", enumSCRIPT_RETURN_NONE, 0, enumSCRIPT_PARAM_LIGHTUSERDATA, 1, this->IsCharacter(), DOSTRING_PARAM_END); Paste this code: g_CParser.DoString("Handler_LvUp", enumSCRIPT_RETURN_NONE, 0, enumSCRIPT_PARAM_LIGHTUSERDATA, 1, this->IsCharacter(), enumSCRIPT_PARAM_NUMBER, 1, lCurLevel, DOSTRING_PARAM_END); Edited January 15 by Graf 1 Quote Share this post Link to post Share on other sites
Daxter 1 Report post Posted January 15 Hi, and thanks for the help. However, I am not running source code - is it not possible via Lua? Quote Share this post Link to post Share on other sites
Graf 211 Report post Posted January 15 1 час назад, Daxter сказал: Hi, and thanks for the help. However, I am not running source code - is it not possible via Lua? Whithout .txt ... I think no. Quote Share this post Link to post Share on other sites
Graf 211 Report post Posted January 15 @Daxter Try edit function BsAttrUpgrade( role ) AttrCalculate.lua 1 Quote Share this post Link to post Share on other sites
mkhzaleh 134 Report post Posted January 15 you already have everything in lua no need .txt function Shengji_Shuxingchengzhang( role ) end this function on level up which also call BsAttrUpgrade( role ) and rest functions to add attrs and recheckattr on level up inside same function u will see how it add credit on level up if player has master as AddMasterCredit(role, 500) so inside this function create your own custom lua to give what ever u want 1 Quote Share this post Link to post Share on other sites