Jump to content

Caspian

Members
  • Content Count

    109
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by Caspian


  1. On 8/9/2022 at 8:48 PM, Fizik said:

    Any fixes? Or maybe you have older hercules version?) or anything... I need this plugin)) i can pay for stable working extended bg)

    You can use an old version of hercules compatible with this plugin. Try to use hercules release of january 2021 which is compatible with the last release of the plugin. Try it.

     

    https://github.com/HerculesWS/Hercules/tree/v2021.01.11


  2. On 5/19/2021 at 10:44 PM, rockdaliposa said:

    sir i tried it with nemo and when i open ragnarok i cant connect so what should i do?

    You have to chance the packets in your mmo.h

     

    #ifndef PACKETVER
        #define PACKETVER 20100730

     

    then compile your emulator. You also need to change your clientinfo in your grft to version 27.


  3. You have to open the file "scripts_custom.conf" and delete the two "//" before the scripts you want to use in your server.

    Change "//npc/custom/jobmaster.txt" to  "npc/custom/jobmaster.txt"

     

    Then you reloadscript or restart your server.


  4. 12 hours ago, fabioleda said:

    bro still giving the same error line 1 the worst i dont have another vip room so i have this one wouldnt like you to do a test and try to see what is the problem? I thank you for your attention

    Change "fim;" to "end;"

    I see a lot of errors in this script, I think it won't work.

    I think you should try to find another one.

     


  5. On 2/28/2021 at 11:16 PM, Ihurybro said:

    Could you give me an example? please?

     

    The npc that I modified, it is working, With vote for cash, only the words that I translated into Portuguese, are with wrong letters.
    See How and the Npc script.

     

    I modified the Fluxcp of hercules and added pagseguro in the fluxcp hercules and added voteforpoints for cash and modified this npc to work with hercules and it works, I just need to fix the words for Portuguese.

     

    prontera,142,173,5    script    VFP Manager    4_F_KAFRA5,{
        function getPoints;

        set .@n$,             "[VFP Manager]";
        set .@settings,     1;        // 0 = item, 1 = shop
        set .@itemReward,     501;    // if settings is set to item
        set .@convertRate,     2;        // 2 Vote Points for 1 Red Potion
        set .vp,             getPoints(getcharid(3));
        
        switch (.@settings) {
            case 0:
                mes .@n$;
                mes "Você gostaria de converter seu "+ .vp +" Pontos de votação?";
                mes "^ff0000A taxa de conversão atual é "+ .@convertRate +" Pontos de votação para 1 "+ getitemname(.@itemReward) +".";
                next;
                menu "Yes", L_Convert, "No", -;
                mes .@n$;
                mes "Então, tchau.";
                break;
            case 1:
                mes .@n$;
                mes "Você tem ^ff0000"+ .vp +"^000000 Pontos de votos.";
                mes "Gostaria de ir as compras?";
                next;
                menu "Yes", -, "No", L_Goodbye;
                mes .@n$;
                mes "Divirta-se comprando!";
                callshop "votepoints_shop",1;
                npcshopattach "votepoints_shop";
                end;
        }
        
        L_Goodbye:
            mes .@n$;
            mes "Adeus Volte sempre!. Não esquece de votar no servidor ^_^.";
            close;
        
        L_Convert:
            if (.vp < .@convertRate)
                goto L_VotePointsTooLow;
            mes .@n$;
            mes "Quantos pontos de voto você gostaria de converter?";
            next;
            menu "All", L_ConvertAll, "Input Amount", L_ConvertAmount;
        
        L_ConvertAmount:
            input .@convert;
            
            if (.@convert > .vp)
                goto L_VotePointsTooLow;
            
            set .vp, ((.vp - .@convert) + (.@convert % .@convertRate));
            set .@convert, (.@convert / .@convertRate);
            getitem .@itemReward, .@convert;
            query_sql("UPDATE cp_createlog SET votepoints = "+ .vp +" WHERE account_id = "+ getcharid(3));
            
            mes .@n$;
            mes "Você recebeu "+ .@convert +"x "+ getitemname(.@itemReward) +".";
            mes "Seus pontos de voto atuais são "+ .vp;
            close;
            
        L_ConvertAll:
            set .@convert, (.vp / .@convertRate);
            set .vp, (.vp % .@convertRate);
            getitem .@itemReward, .@convert;
            query_sql("UPDATE cp_createlog SET votepoints = "+ .vp +" WHERE account_id = "+ getcharid(3));
            
            mes .@n$;
            mes "Você recebeu "+ .@convert +"x "+ getitemname(.@itemReward) +".";
            mes "Seus pontos de voto atuais são "+ .vp;
            close;
        
        L_VotePointsTooLow:
            mes .@n$;
            mes "Seus pontos de voto estão muito baixos. Volte quando você tiver a quantidade minima de pontos de voto.";
            close;
        
        function getPoints {
            set .@account_id, getarg(0);
            
            set .@count, query_sql("SELECT value FROM acc_reg_num_db WHERE account_id = "+ .@account_id, .@value);
            
            return .@count ? .@value : 0;
        }
        
        OnBuyItem:
            set .@cost,0;
            for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1)
                for(set .@j,0; .@j<getarraysize(.itemShop); set .@j,.@j+2)
                    if (@bought_nameid[.@i] == .itemShop[.@j]) {
                        set .@cost, .@cost+(.itemShop[.@j+1]*@bought_quantity[.@i]);
                        break;
                    }
            mes .@n$;
            if (.@cost > .vp) mes "Voce nao tem pontos de voto suficientes.";
            else {
                for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1) {
                    getitem @bought_nameid[.@i], @bought_quantity[.@i];
                    dispbottom "Purchased "+@bought_quantity[.@i]+"x "+getitemname(@bought_nameid[.@i])+".";
                }
                set .vp, .vp - .@cost;
                query_sql("UPDATE acc_reg_num_db SET value = value - "+ .@cost +" WHERE account_id = "+ getcharid(3));
                mes .@n$;
                mes "Negócio concluído.";
                mes "Você agora tem ^ff0000"+ .vp +"^000000 Pontos de votos.";
                emotion e_cash;
            }
            set .@cost,0;
            deletearray @bought_nameid[0], getarraysize(@bought_nameid);
            deletearray @bought_quantity[0], getarraysize(@bought_quantity);
            close;
        
        OnInit:
            setarray .itemShop[0],    501,2,607,5,608,10; // <ITEM_ID>,<PRICE>,...
            
            npcshopdelitem "votepoints_shop",512;
            for(set .@i, 0; .@i < getarraysize(.itemShop); set .@i, .@i+2)
                npcshopadditem "votepoints_shop", .itemShop[.@i], .itemShop[.@i+1];
        end;
    }

    -    shop    votepoints_shop    -1,512:-1

     

     

    Abre com o Bloco de Notas e salva como ASCII.


  6. 1 hour ago, brunosc said:

    yes the last version anda client 2019.

    I think that's why it isn't working. The dev's team keep changing the code all the time and then the plugins become outdated.

    I use an old revison of hercules, so that's why I am able to use all the plugins I want.


  7. 9 hours ago, Lergen said:

    Hi there,

    I've recently gotten into playing around with Hercules, and while I've had no issue setting things up for the most part, I'm having a very persistent issue with the translations. Even though everything else is fine, a select few buttons just refuse to show their proper translations. For example:

    3aqbAwM.png

    RfAJFYO.png

     

    Any ideas how to fix this? Stuff like items, dialogue, all translated fine. It's just mostly menu buttons like the above that don't work. I've tried varying settings both in packing them into grf's and just putting them in the data folder, changing the data folder read order, etc to no avail. Not sure what I'm missing. If anybody has any ideas I'd greatly appreciate the help.

    These are BMP images, you can find it in your GRF  and translate by editing the picture or you can find a data folder with these files already translated...


  8. 1 - You have to open the script using the basic Notepad and save the script as ANSI. So you will be able to use other characters.

    2 - After changing the lines on the scripts you have to type @reloadscript to reload the changes.

    3 - You have to change all "Warper"  in the duplicated NPCs to Teletransportador at the end of your script.

    4 - If you mean the sprite you can find it in your data.grf. The items are already added in item_db, if you want to add differents items, you can find a bunch of grf downloading privates servers  and copying their grf if they are not enncrypted.

     


  9. Só pegar as versões mais antigas, o pessoal já se deu ao trabalho de traduzir naquela época.

    É claro que tem que fazer as alterações pro  emulador, só ir olhando com calma e alterando minusiosamente.

    Eu já traduzi vários NPCs sozinhos também, mas é muita coisa pra traduzir, e sozinho é desgastante.


  10. Nunca utilizei a ferramenta, acredito que pelo fato do formato do item.db dos dois emuladores serem bem contrastantes  talvez nao seja possível a leitura e alteração pelo aplicativo. Eu tenho traduzido a item.db a mão mesmo. Se tu conseguir solucionar este problema com esse aplicativo, poderia postar aqui.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.