1. int __stdcall Y_HeroLvlUp_3x_Proc(HiHook* hook, _Struct_* dlg, _EventMsg_* msg) { if (msg->type == MT_MOUSEBUTTON) { if (msg->subtype == MST_LBUTTONCLICK) { if (msg->item_id == 7012) { dlg->GetItem(2012)->SendCommand(6, 4); dlg->GetItem(2012)->Draw(); dlg->GetItem(2013)->SendCommand(6, 4); dlg->GetItem(2013)->Draw(); dlg->GetItem(7013)->SendCommand(5, 4); dlg->GetItem(7013)->Draw(); dlg->GetItem(30722)->SetEnabled(1); dlg->Redraw(TRUE); } return CALL_2(int, __thiscall, hook->GetDefaultFunc(), dlg, msg); } 2, 3. sprintf(o_TextBuffer, "%s либо %s %s.", ((_DlgStaticText_*)dlg->GetItem(2005))->text, *(int*)((*(int*)((*(int*)0x6A7F68) +32)) + 4*hero->second_skill[SSkill]), *(int*)(*(int*)0x67DCF0 + SSkill*16) ); ((_DlgStaticText_*)dlg->GetItem(2005))->SetText(o_TextBuffer); 4. dlg->AddItem(CALL_8 (_DlgItem_*, __thiscall, 0x44FE00, o_New(56), 257, 325, 46, 46, 7013, *(int*)(*(int*)0x6AAD18 + 118), 1024)); dlg->GetItem(7013)->SendCommand(5, 4); 5. ((_DlgStaticDef_*)dlg->GetItem(7012))->def_frame_index = your_number;