Jump to content

mcjc

Advanced members
  • Content Count

    67
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by mcjc

  1. mcjc

    EVIL 1 2 3 4 5

    In fact, I managed to do it alone with a completely different code, but I said that at first no one wanted to help me! In fact, there were only two people who really tried to help me and I tagged them in other posts, the rest pretend that you don't even exist.
  2. mcjc

    EVIL 1 2 3 4 5

    What? Can someone who doesn't understand C++ write functional code? XD
  3. mcjc

    EVIL 1 2 3 4 5

    I AM AWESOME! I DID IT DAMN IT!!!! MAN, I made several changes during this period and I came up with the definitive solution! It's not the same as the original, but it's very functional! SUCK IT UP TO THOSE WHO DIDN'T WANT TO HELP AND IGNORED MY POSTS! I DID THIS WITHOUT ANYONE'S HELP! THANK YOU ALSO TO EVERYONE WHO ENCOURAGED ME IN SOME WAY! AND THEY SENT ME SOME CODES UNTIL I COULD GET SOMETHING FUNCTIONAL! Give me your discord, brother!
  4. mcjc

    EVIL 1 2 3 4 5

    I just changed the entire code, the icon doesn't change, it stays the same! The equipment updates normally but the icon stays the same check all the code, it's the same one I already have here.
  5. Thanks friend, I'll test it! I have another problem with the mount version in ocean, it shows the position but not the mount, I followed all the instructions that the guys explain here but unfortunately I can't compile the files. A friend told me that I just need to add the mob in mobinfo.txt but I don't understand where to do that, if you can explain it to me because I've even tried to get files from the other server and put them here and it didn't work, it doesn't compile. So far, from what I understand, it's the mount animation that doesn't appear, or I could be wrong but I couldn't do it. what am i doing wrong?
  6. Does anyone still have these files?
  7. Hello friends, I'm setting up a server for some friends to play with, today I stopped to play with the colors of some equipment. my progress. I think that due to the level of detail, it looks like it will be good, I will post more things soon. If anyone has the code for all white, send it to me, I tried to find out but it didn't work out very well! Thanks to the forum for some people leaving some tasks identifying some colors, and also to Danny for leaving great colors to play with. I will develop the best with gameplay, I'm not very good with codes but I will do my best! cloak concert too, works perfectly without bugs I still need to resolve some issues about the icons in the name that in the nightmare hat does not change the item, and make the mount appear, I'm still researching a better way to make it appear. I accept some tips or suggestions for fixing it. Another special thanks to Ximboliex and Mothanna for answering some questions, thank you for your precious time
  8. Hello everyone, My friends, I am running a CO client and server, as you all know, I have achieved some great feats, I would like to know where in the client source code to adjust the 1400x900 and the FPS to 60, I was told that I have to edit animation/lab I didn't understand which configuration in the source code has to be made or adjusted to fix the bug, the tree is shaking like crazy. I don't know if it should be simple or not, but if someone can give me some light on how to start and fix these things, I would be grateful! I have another bug, when Phillys runs it looks like a saci perere, why?
  9. Hi, can you help me? I have the same problem, where can I fix the 60 fps and adjust the resolution, my system also continues with a blue screen in range and I don't know how to fix it.
  10. Sometimes it may be some code that may cause a conflict, it may not be visible but it causes a conflict, I don't know much about compilations, I'm learning a lot of things but I still haven't managed to fix the error of the tree looking crazy, I've been told that it's in the animation lab but I have no idea how to do it. I think it may be something in the codes because if the client doesn't start it may have a conflict, every time it starts it doesn't happen, open the task manager and see if something related to the open game appears. or do the following, compile the server side in 2003 and compile the client side in 2022 and then vice versa and see if it will start. server side 2003 client side 2022 server side 2022 client side 2003 it's possibly the client.
  11. mcjc

    Game Crasche ?

    About the code icon code in the name of the nightmare, I've tried everything, even artificial intelligence code, I've created other items in the info item, I've improved the code and the icon remains the same in the name. I'm adjusting what I know and what I've learned so far, but it's hard to see a tree shaking and shaking. I'm already angry.
  12. mcjc

    Game Crasche ?

    I've asked several people for help, but no one answers, no one teaches me either. I've been trying and trying for days and nothing. I'm having trouble creating clickable icons to appear on the name. I've asked for help from all over the world, but it's complicated. I had someone helping me, but he's very busy, so I'm alone, but I don't know how to do it either. It's difficult. I've compiled more than half of the deguix files on the public topsrc server, but I haven't been able to fix it. People here look at the comments a lot and ignore them. I'm not doing it to sell. I thought the forum was for help, but there are a lot of people who ignore the posts. I've tried several things, I really have, every day I copy files to test and see if it stops, I've changed the map, I've changed files from deguix to topsrc and nothing. I'm really having trouble.
  13. mcjc

    Game Crasche ?

    I've asked several people for help, but no one answers, no one teaches me either. I've been trying and trying for days and nothing. I'm having trouble creating clickable icons to appear on the name. I've asked for help from all over the world, but it's complicated. I had someone helping me, but he's very busy, so I'm alone, but I don't know how to do it either. It's difficult. I've compiled more than half of the deguix files on the public topsrc server, but I haven't been able to fix it. People here look at the comments a lot and ignore them. I'm not doing it to sell. I thought the forum was for help, but there are a lot of people who ignore the posts.
  14. mcjc

    Icon Name

    like this ?
  15. mcjc

    Icon Name

    like this ?
  16. Why is the tree getting out of control? Is the game crashing? Where can I modify it? Does anyone know the game server or client files? I couldn't record a video to post, but the tree keeps shaking like crazy. I thought it was some basic configuration of the gate or group server, but I couldn't find anything. This happens in the Topscs files. Not in the deguix files. Where can I fix it?
  17. mcjc

    Icon Name

    yes. I'm actually having trouble with both things. For example, when updating Nightmare lvl 1 to lvl 2, the icon changes by itself! However, I couldn't do it at all. The code in UiHeadsay and Character doesn't help, even changing the function so that it shows different icons when updating it doesn't change, and even if I separate equipment for example 9160nightmare lvl 1 9160nightmare lvl 2 or 9160 nightmare lvl 1 9161 nightmare lvl 2 it doesn't change the name icon. In neither case
  18. mcjc

    Dan

    pode me ajudar com uma questão que estou quebrando a cabeça ? 

    bom estou aprendendo sobre adidicionar icones ao nome do usuarios tipo o do helm nightmare, e consegui fazer um codigo de leitura para eles para o character.cpp  porem ao adicionar o parametro i=1 ele fica fixado ao icone evil_lvl 1 e não atualiza quando o equipamento atualiza, o que estou fazendo de errado ? 
    estou editando em UIHeadSay.ccp


    character.cpp

     

        if (_pHeadSay) {

            // Verifica se o ID do equipamento é 9160

            if (stPart.SLink[enumEQUIP_HEAD].sID == 9160) {

                _pHeadSay->SetIsShowEvil(1);  // Ativa a exibição do "Evil"

       

                // Obtém o valor da energia

                int energyValue = stPart.SLink[enumEQUIP_HEAD].sEnergy[1];

               

                // Verifica se o valor da energia é negativo, se for, define como 0

                if (energyValue < 0) energyValue = 0;

       

                // Define o nível de "Evil" com base no valor de energia progressivamente de 2 a 5

                int evilLevel = 0;

               

                if (energyValue >= 1 && energyValue < 2) {

                    evilLevel = 2;

                    stPart.SLink[enumEQUIP_HEAD].sEnergy[2] = 2;  // Ajusta a energia para 2

                } else if (energyValue >= 2 && energyValue < 3) {

                    evilLevel = 3;

                    stPart.SLink[enumEQUIP_HEAD].sEnergy[3] = 3;  // Ajusta a energia para 3

                } else if (energyValue >= 3 && energyValue < 4) {

                    evilLevel = 4;

                    stPart.SLink[enumEQUIP_HEAD].sEnergy[4] = 4;  // Ajusta a energia para 4

                } else if (energyValue >= 4) {

                    evilLevel = 5;

                    stPart.SLink[enumEQUIP_HEAD].sEnergy[5] = 5;  // Ajusta a energia para 5

                }

       

                // Define o nível de Evil

                _pHeadSay->SetEvilLevel(evilLevel);

            } else {

                _pHeadSay->SetIsShowEvil(0);

            }

        }

        RefreshItem( true );

    }


    UIHeadSay.ccp
     

    for (int i = 0; i < EVIL_MAX; i++) {
        char buffer[64] = {0};

        // Dependendo do índice (i), definimos o nível de 'evil' e a imagem
        if (i == 0) {
            sprintf(buffer, "texture/icon/evil_lv%d.tga", 1);  // Nível 1
        } else if (i == 1) {
            sprintf(buffer, "texture/icon/evil_lv%d.tga", 2);  // Nível 2
        } else if (i == 2) {
            sprintf(buffer, "texture/icon/evil_lv%d.tga", 3);  // Nível 3
        } else if (i == 3) {
            sprintf(buffer, "texture/icon/evil_lv%d.tga", 4);  // Nível 4
        } else if (i == 4) {
            sprintf(buffer, "texture/icon/evil_lv%d.tga", 5);  // Nível 5
        }
            
            if (!_pImgEvil)
                break;

            _pImgEvil.LoadImage(buffer, 16, 16, 0, 0, 0, 0.0, 0.0);
        }
        return true;
    }
     

  19. I give up, it doesn't work! functions work correctly, but the &¨%$# of the icon does not work I've been trying for days to make the icon change according to the item update, I've deleted the database, I've created a new account and I've made several changes to UIHeadSay.cpp Caracter.cpp I've tried two other codes generated by AI, I've reset UIHeadSay and nothing works, nothing changes the player icon, it stays fixed, I give up on this. Ximboliex sent me a simple but very functional code and it doesn't change the DOG at all! I'm a beginner in programming, I'm learning on my own and he helps me but nothing works! //Ximboliex Code if (_pHeadSay) { if (stPart.SLink[enumEQUIP_HEAD].sID == 9160) { _pHeadSay->SetIsShowEvil(1); if (stPart.SLink[enumEQUIP_HEAD].sEnergy[1] >= 5) { _pHeadSay->SetEvilLevel(5); } else { _pHeadSay->SetEvilLevel(stPart.SLink[enumEQUIP_HEAD].sEnergy[1]); } } else { _pHeadSay->SetIsShowEvil(0); } } RefreshItem( true ); } //ME CODE 2 if (_pHeadSay) { // Verifica se o ID do equipamento é 9160 if (stPart.SLink[enumEQUIP_HEAD].sID == 9160) { _pHeadSay->SetIsShowEvil(1); // Ativa a exibição do "Evil" // Obtém o valor da energia int energyValue = stPart.SLink[enumEQUIP_HEAD].sEnergy[1]; // Verifica se o valor da energia é negativo, se for, define como 0 if (energyValue < 0) energyValue = 0; // Define o nível de "Evil" com base no valor de energia progressivamente de 2 a 5 int evilLevel = 0; if (energyValue >= 1 && energyValue < 2) { evilLevel = 2; stPart.SLink[enumEQUIP_HEAD].sEnergy[2] = 2; // Ajusta a energia para 2 } else if (energyValue >= 2 && energyValue < 3) { evilLevel = 3; stPart.SLink[enumEQUIP_HEAD].sEnergy[3] = 3; // Ajusta a energia para 3 } else if (energyValue >= 3 && energyValue < 4) { evilLevel = 4; stPart.SLink[enumEQUIP_HEAD].sEnergy[4] = 4; // Ajusta a energia para 4 } else if (energyValue >= 4) { evilLevel = 5; stPart.SLink[enumEQUIP_HEAD].sEnergy[5] = 5; // Ajusta a energia para 5 } // Define o nível de Evil _pHeadSay->SetEvilLevel(evilLevel); } else { _pHeadSay->SetIsShowEvil(0); } } RefreshItem( true ); } //ME CODE 2 if (_pHeadSay) { // Verifica se o ID do equipamento é 9160 if (stPart.SLink[enumEQUIP_HEAD].sID == 9160) { _pHeadSay->SetIsShowEvil(true); // Ativa a exibição do "Evil" // Obtém o valor da energia int energyValue = stPart.SLink[enumEQUIP_HEAD].sEnergy[1]; // Verifica se o valor da energia é negativo, se for, define como 0 if (energyValue < 0) energyValue = 0; // Define o nível de "Evil" com base no valor de energia int evilLevel = 0; if (energyValue >= 1 && energyValue < 2) { evilLevel = 2; stPart.SLink[enumEQUIP_HEAD].sEnergy[2] = 2; // Ajusta a energia para 2 } else if (energyValue >= 2 && energyValue < 3) { evilLevel = 3; stPart.SLink[enumEQUIP_HEAD].sEnergy[3] = 3; // Ajusta a energia para 3 } else if (energyValue >= 3 && energyValue < 4) { evilLevel = 4; stPart.SLink[enumEQUIP_HEAD].sEnergy[4] = 4; // Ajusta a energia para 4 } else if (energyValue >= 4) { evilLevel = 5; stPart.SLink[enumEQUIP_HEAD].sEnergy[5] = 5; // Ajusta a energia para 5 } // Define o nível de Evil _pHeadSay->SetEvilLevel(evilLevel); // Atualiza o nível de maldade após o upgrade } else { _pHeadSay->SetIsShowEvil(false); } } RefreshItem( true ); }
  20. Hello friends, how are you? After I managed to solve the problem with the mounts in the src, I actually fixed some things and they are working perfectly. My biggest problem now is with the icon on the nightmare helm. When updating the item, the icon remains evil_lvl 1. I went to UIheadSay and changed the parameter and noticed that it is fixed. How do I change it from fixed? Will I have to add a parameter for each one? if (i == 0) { sprintf(buffer, "texture/icon/evil_lv%d.tga", 1); // Level 1 } else if (i == 1) { sprintf(buffer, "texture/icon/evil_lv%d.tga", 2); // Level 2 } else if (i == 2) { sprintf(buffer, "texture/icon/evil_lv%d.tga", 3); // Level 3 } else if (i == 3) { sprintf(buffer, "texture/icon/evil_lv%d.tga", 4); // Level 4 } else if (i == 4) { sprintf(buffer, "texture/icon/evil_lv%d.tga", 5); // Level 5 } example i==1 j==2 like this
  21. I'm working on this, but I'm having difficulty changing the icon as the item's lvl changes. I've even managed to find the lines, but I can't code the parameter (i) so that it reads according to the level. directly in the exe
  22. mcjc

    Icon Name

    Hello friends, how are you? It's me again haha I need to understand a few things, I'm trying to find a way to fix this, for example, as in the picture, my nightmare cap equipment already automatically displays the lvl 1 icon, if I use lvl 2 it will automatically display the lvl 1 icon, how do I change this? Where do I have to modify the icon if the item already displays automatically? Another question, I want to create a clickable item that when clicked the icon appears in the name, but I'm having trouble understanding the code, as easy as it may seem, and where should I add it, -- Set character icon SetPlayerIcon(role, icon_id) -- Get current character icon local icon_id = GetPlayerIcon(role) I should create a function with the following information, but how do I add the clickable item to this function? example of this info item 7811 Lv 1 Symbol of Hero evil_lv1_icon 10130023 0 0 0 0 0 0 41 0 0 0 0 0 1 1 1 1 99 0 180 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 0 0 0 0 0 ItemUse_SymbolHero1 0 0 0 0 0.0 0 0 Symbol received after did some heroic facts. Double click to receive Lv 1 Symbol of Hero 0 Lastly, the guild already comes in the database with the predefined icon for the leader, how can I extend it to everyone? Should I change it in the database and another question is? How can I modify it to be random for other guilds? I'm racking my brains but I can't do it, as simple as it may seem.
  23. mcjc

    topsrcss

    You know, I've been racking my brains over the SCS files for a few days and I'm learning a lot. Many people say that these files are cracked, they're broken and no one will want to mess with them. They really are. I asked for help on discord and here on the forum, and many, many people turned their backs on me, but you know, that was good. I'm definitely learning on my own, struggling, racking my brains, but it's working out, no matter how simple it is. I'm happy with the result. I haven't solved the crack yet, but I know I'll get it! Here's a little of what I've achieved with the mounts and effects so far. I'm annoying Monthana on discord and she insults me but responds even though she insults me, but I appreciate it because she helps me and shows me how capable I am! Another special thanks goes to the first PKO forum I remember in Brazil, TOP LOKOS, I went there to remember some things that helped me a lot to edit some things. I don't know how to put icons in the names, but I'll learn! They told me that I wanted to learn to sell and make a profit! What I learn I will teach for free so that everyone has the opportunity... Detail, when adding the mount when new you need to know the characteristics of which Lamb example, if you add its ID it can be in front or sunk, so you need to edit the mount code so that it is in the middle, neither in front nor sunk. If you have difficulty, use this as a basis. Name Iteminfo ID CaracterInfor Cod config Mount. Cuddly Lamb 16083 125 2,30,0,0,-5,1 2,30,0,0,0,1.1 2,16,10,0,20,1 2,16,10,0,33,0.8 Exemple.
×
×
  • Create New...