Jump to content

Tdi123

Members
  • Posts

    192
  • Joined

  • Last visited

Posts posted by Tdi123

  1. Basicamente minha roleta não está consumindo as moedas de ouro / prata, somente as de bronze.

    Configuração do clif.cpp

    if( !sd->roulette.stage && sd->roulette_point.bronze <= 0 && sd->roulette_point.silver < 10 && sd->roulette_point.gold < 10 ){
            result = GENERATE_ROULETTE_NO_ENOUGH_POINT;
        }else{
            if (!sd->roulette.stage) {
                if (sd->roulette_point.bronze > 0) {
                    sd->roulette_point.bronze -= 1;
                    pc_setreg2(sd, ROULETTE_BRONZE_VAR, sd->roulette_point.bronze);
                } else if (sd->roulette_point.silver > 4) {
                    sd->roulette_point.silver -= 5;
                    sd->roulette.stage = 2;
                    pc_setreg2(sd, ROULETTE_SILVER_VAR, sd->roulette_point.silver);
                } else if (sd->roulette_point.gold > 9) {
                    sd->roulette_point.gold -= 10;
                    sd->roulette.stage = 4;
                    pc_setreg2(sd, ROULETTE_GOLD_VAR, sd->roulette_point.gold);
                }
            }

     

    [RESOLVIDO]

  2. Example:

    prontera,150,150,3 script pack 99,{

      mes "[Pack]";

      mes "Do you want to receive your pack right now?";

      next;
        switch(select("Yes, please:No, Thanks!")) {
            case 1:

                   close2;

                  getitem 607,3;

                   end;

            case 2:

                   close;

    }

    }

  3. 21 hours ago, Caspian said:

    I think these errors are not related with the Batteground.

    They are related with your client side, not the source code from the extended battleground.

    could you tell me a data or hexed compatible with this system?

     

    20 hours ago, Akkarin said:

    ty, sorry!

  4. Step by Step guide: 
    1.  Build the csv2yaml.bat file located in the "tools" folder. 

    2.  Once the build is complete, the build will have generated a csv2yaml.exe file located in your ROOT folder. 

    3.  Double click the csv2yaml.exe file and it will generate your txt files -> YML (If applicable). 

    Be sure to put your files to be converted in the import folder, the exe will ask if you want to overwrite the existing file. ?  

     

    23 hours ago, Start_ said:

    You need to compile first (It should done when you compile server)

    Then run csv2yaml.bat

    Why does this error happen, starting from this line?

    1.png

  5. I'm using the old version of rathena, where the item_db is still in .txt, if there is already an answer to this question, please post the link here, thanks in advance for the help.

    My question would be if there is any faster way, using a tool for example. Edit one by one, I know how to do it, the problem is that there are more than a thousand items lol

    Sorry for my english, I'm using google translator

  6. My idea would be using the already existing formula in the emulator:

    rathena-master\db\pre-re\item_group_db.yml

    - Group: GEMSTONE
        SubGroups:
          - SubGroup: 1
            List:
              - Item: Yellow_Gemstone
                Rate: 1
              - Item: Red_Gemstone
                Rate: 1
              - Item: Blue_Gemstone
                Rate: 1

    Sorry for my english, I'm using google translator!

     

×
×
  • Create New...