Jump to content

Graf

Community
  • Content Count

    593
  • Joined

  • Last visited

  • Days Won

    54

Everything posted by Graf

  1. Редактор для новичков Ссылки: Яндекс диск (update 28.12.2023) Mega (update 28.12.2023) Google Drive (update 28.12.2023) Видео: https://youtu.be/Q-YmM-lLHUY Внешний вид (v0.0.6):
  2. Лови - https://discord.com/invite/qdg7z8r3
  3. Graf

    VS 2013

    Hi! Archive.org - link
  4. Graf

    Character Power

    Character Power Open file UIHeadSay.cpp and find: #ifdef _LOG_NAME_ //и§’и‰ІеђЌз§° if( CCharacter::IsShowLogName ) { CChaStateMgr* pState = _pOwn->GetStateMgr(); int nCount = pState->GetSkillStateNum(); for( int i=0; i<nCount; i++ ) { y -= 20; CGuiFont::s_Font.Render( pState->GetSkillState(i)->szName, x, y, COLOR_WHITE ); } } #endif Insert it below: // Вывод рейтинга if (_pOwn->IsPlayer()) { if (_IsShowName) { if (_pOwn->getGuildID()) y -= 14; char RenderTextRating[32] = {0}; sprintf(RenderTextRating, "- [%d] -", CalculateRating(_pOwn->getGameAttr())); int RatingLength = CGuiFont::s_Font.GetWidth(RenderTextRating); CGuiFont::s_Font.Render(RenderTextRating, x - (RatingLength / 2), y - 28, 0xFF000000 ); CGuiFont::s_Font.Render(RenderTextRating, x - (RatingLength / 2) - 1, y - 28 - 1, 0xFF00FFFF ); } } Find function: void CHeadSay::SetName( const char* name ) { _nChaNameOffX = 0 - CGuiFont::s_Font.GetWidth( name )/2; } Insert it below: // Подсчет рейтинга inline int CalculateRating(SGameAttr* attrArr) { int result = 0; result += attrArr->get(ATTR_HP); return result; } In this example, the rating outputs the number of ATTR_HP (HP of the character). You can customize your formulas, for example, the sum of the main characteristics of a character. P.S. Google translate)
  5. Рейтинг над головой персонажа Чтобы добавить рейтинг, нужно в исходном коде клиента открыть файл UIHeadSay.cpp, найти: #ifdef _LOG_NAME_ //и§’и‰ІеђЌз§° if( CCharacter::IsShowLogName ) { CChaStateMgr* pState = _pOwn->GetStateMgr(); int nCount = pState->GetSkillStateNum(); for( int i=0; i<nCount; i++ ) { y -= 20; CGuiFont::s_Font.Render( pState->GetSkillState(i)->szName, x, y, COLOR_WHITE ); } } #endif и ниже вписать: // Вывод рейтинга if (_pOwn->IsPlayer()) { if (_IsShowName) { if (_pOwn->getGuildID()) y -= 14; char RenderTextRating[32] = {0}; sprintf(RenderTextRating, "- [%d] -", CalculateRating(_pOwn->getGameAttr())); int RatingLength = CGuiFont::s_Font.GetWidth(RenderTextRating); CGuiFont::s_Font.Render(RenderTextRating, x - (RatingLength / 2), y - 28, 0xFF000000 ); CGuiFont::s_Font.Render(RenderTextRating, x - (RatingLength / 2) - 1, y - 28 - 1, 0xFF00FFFF ); } } Найти функцию: void CHeadSay::SetName( const char* name ) { _nChaNameOffX = 0 - CGuiFont::s_Font.GetWidth( name )/2; } И ниже вставить: // Подсчет рейтинга inline int CalculateRating(SGameAttr* attrArr) { int result = 0; result += attrArr->get(ATTR_HP); return result; } В данном примере рейтинг выводит количество ATTR_HP (ХП персонажа). Вы можете настроить свои формулы, к примеру сумму основных характеристик персонажа.
  6. Для теста активности, могу создать репозиторий и добавить туда русский язык. Выложу на форуме. Но у меня большие сомнения, что кто-то поучаствует.
  7. New fairy texture or new fairy for some new attributes?
  8. Тоже так думал, но никто не хочет этим заниматься.. Только продают. Хотя.. Банальные вещи, как титул, русский язык, исправление простых багов могли бы и выложить..
  9. MobDrop and MobInfo crash client. For test: Open MobInfo, close, attack some mobs.
  10. Привет. 1. Берешь клиент из темы - 2. Ищешь файл MpFont.cpp. Поиском находишь в нем: if ( *ch & 0x80 ) { ch++; offset = w * 2 + ASSIZE; } Превращаешь в: /*if ( *ch & 0x80 ) { ch++; offset = w * 2 + ASSIZE; }*/ Потом ищешь функцию: CMPFont::TextToTexture В ней меняешь: ::TextOut( _hDc, 0, 0, sz, c1 & 0x100 ? 2 : 1 ); на: ::TextOut( _hDc, 0, -2, sz, c1 & 0x100 ? 2 : 1 ); Это исправит отображение русского языка, но немного коряво. Он будет выше, чем текст слева (например ник). Это я не помню, где менять. Вспомнил. Ниже в функции CMPFont::FillTextToTex аналогичные действия нужно сделать. И все. Дальше поиграй со шрифтами в /scripts/lua/font.clu и мб где-то поправить ширину/еще что-то (на вкус и цвет).
  11. Проблема с кодировкой При использовании файлов .txt (/scripts/table) или .clu (/scripts/forms/) в кодировке UTF-8, отображение русского текста выглядит так: Помогите найти решение, пожалуйста)
  12. @V3ct0r Добрый день. Появятся ли новые моды? Или же раздел для работы с исходным кодом (в связи с тем, что 80% проектов, вроде бы, перешли на исходники)? Если появится раздел, было бы неплохо эти моды переделать для использования в исходном коде.
  13. Если будут стримы, как написано в первом посте, я бы посмотрел)
  14. Всем привет. Заметил последнюю тему со сбором средств.. Она периодически всплывала, то за хостинг, то за что-то еще. Я все это понимаю, поэтому предлагаю следующее. Форум развивается, количество наработок растет.. Может сделать что-нибудь в виде магазина? Как на площадках фриланса. Грубо.. Люди выкладывают программу(редактор того же iteminfo), ставят цену. После покупки форум забирает % с неё. Людям будет проще вести торги, форум будет получать %. Думаю многие поддержат эту идею. P.S. Не знал, в какой раздел это написать.. Мб стоит перенести.
  15. Graf

    TOP Editor

    I will update the link to the latest video during the day.
  16. Graf

    TOP Editor

    ChangeLog 0.3 When editing the character_lvup file, I added: 1. The ability to add a line not to the end of the file. If the index does not exist in the file, then it will stand between the necessary lines. Added file editing AreaSet.txt . I added it to the edit: 1. Reading the file and output to the table; 2. Selecting a string and reading it into textboxes; 3. Deleting the selected line; 4. Adding a new line to the end of the file; 5. Saving changes to a file (with the button and when closing the form). Video: youtube
  17. Graf

    TOP Editor

    ChangeLog 0.2 In editing the character_lvup file , I added: 1. The possibility of selecting a row in the table; 2. The button to change the line (after selecting it).
  18. Graf

    TOP Editor

    ChangeLog 0.1. Added edit file character_lvup. Video: link youtube Functional: 1. Reading the file and outputting the table; 2. Adding new lines; 3. Deleting old lines; 4. Generating strings for function.lua based on a txt file; 5. Saving the file after changes (by clicking or closing the form).
  19. Graf

    TOP Editor

    TOP Editor Hello everyone. I'm creating a topic for running a small ChangeLog (maybe it's illegal =)). The essence of the program is as follows: Reading any txt file, table format (CharacterInfo, ItemInfo, etc.) and editing it. Type of program at the time of writing the post: P.S. Criticism and suggestions are welcome. P.S. Translate with google translate))
  20. Graf

    CSVed

    Привет, Graf#4664
  21. Ссылка на Discord недействительна. Ссылка на клиент(на сайте) недействительна.
  22. @dragontechi Hi. Add method for button StartGame. Example: private void StartGameBtn_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { MessageBox.Show("Start Game!"); }
×
×
  • Create New...