Jump to content

KRMizu

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by KRMizu

  1. Hello guys, I'm trying to use a BG from the game itself, but when I try to enter kvm I have the following problem :

     

    Screenshot_4.jpg.d7dd8b7ff418b51c99fc71b61ccb7ff9.jpg

     

    Screenshot_5.thumb.jpg.5da6ce9bf6d79fd0b437411975919d34.jpg

     

    Entering battleground.cpp, I noticed that it always enters this validation

     

    Screenshot_6.thumb.jpg.d7df7e1f3d1804aa5ffba634360998c4.jpg

    Can anyone tell me what the problem is?

     

  2. 4 hours ago, Kreustoo said:

    Parece que a primeira pesquisa de script em mvp_ranking e a outra em hourly_points?

    
       
       

    Então você pode ser classificado em 6 em um e 9 em outro?

    Already managed to solve by adding an option ORDER BY `xpmineracao` DESC , `account_hourly` ASC ,  thank you very much I'm using the code you created.

  3. Thank you very much, what you did is perfect, I only have one problem, I have an NPC that also shows the Top 20, and the positions do not match the one shown for my character, for example this showing that I am the top 6, more in this than you made it for me shows that i am the top 9

    This is just to show my position in the rank :

    image.png.eceda547ea5dbf2e194a5118217278de.png       

     

    This shows the overall rank for all players:

     

        image.png.a52b32011281825785ade19fccec626b.png   

     

     

     

    Quote

                                    set .rank,20;
                                     next;
                                    mes "             ^0412cc[TOP "+.rank+" Mineradores]^000000";
                                    mes " ";
                                    for(.@i = 0;.@i<.rank;.@i++){
                                               query_sql( "select `First_Name`, `xpmineracao`, `nvmineracao` from `hourly_points` where `xpmineracao` > '0' order by `xpmineracao` DESC", .@nomizin$[.@i], .@xpzera[.@i], .@nvzera[.@i] );                                  
                                               set .@z,.@i + 1;
                                               mes "^2c16d0[»]^000000Rank :  ^f80505"+.@z+"° Colocado^000000";                              
                                               mes "^2c16d0[»]^000000Jogador : ^0e1ecc"+.@nomizin$[.@i]+"^000000   ";
                                               switch(.@nvzera[.@i]){
                                                  case 1:
                                                  set .nvrank$[.@i],"^0e1ecc[Novato]^000000";
                                                  break;
                                                  case 2:
                                                  set .nvrank$[.@i],"^0e1ecc[Aprendiz]^000000";
                                                  break;
                                                  case 3:
                                                  set .nvrank$[.@i],"^0e1ecc[Artesão]^000000";
                                                  break;
                                                  case 4:
                                                  set .nvrank$[.@i],"^0e1ecc[Especialista]^000000";
                                                  break;
                                                  case 5:
                                                  set .nvrank$[.@i],"^0e1ecc[Mestre]^000000";
                                                  break;
                                                  case 6:
                                                  set .nvrank$[.@i],"^0e1ecc[Grão-Mestre]^000000";
                                                  break;
                                                  case 7:
                                                  set .nvrank$[.@i],"^0e1ecc[Ancião]^000000";
                                                  break;              
                                          
                                                }                                  
                                                  mes "^2c16d0[»]^000000Nv de Profissão: "+.nvrank$[.@i]+""; 
                                                  mes "^2c16d0[»]^000000Experiência Total : ^0e1ecc" + .@xpzera[.@i] + "^000000";                                      
                                                  mes "^f80505===========================^000000";
                                                .@z++;

     

     

     

     

  4. 4 hours ago, Kreustoo said:

    Olá,

    Isso deve funcionar (não testado):

    
           
     
          
      
             

    Esteja ciente de que a classificação quando eles têm o mesmo número de pontos dependeria da entrada no banco de dados, não do tempo em que eles tiveram seus pontos. Se não estiver claro, por exemplo:

    Suponha que o Jogador 2 matou um mvp antes do jogador 3 => ele foi adicionado na mesa antes que o jogador 3

    --Jogador 3 tenha 400 pontos primeiro, o Jogador 3 tenha uma classificação melhor
    Jogador 3: 400 Exp

    Jogador 2: 399 Exp

    --Jogador 2 para 400 pontos, o Jogador 2 agora tem uma classificação melhor
    Jogador 2: 400 Exp

    Jogador 3: 400 Exp

    I understand what you mean, unfortunately I have no other criteria for the tiebreaker or... I have an online time field, would it be possible to use it for the tiebreaker?

  5. Hello, I'm trying to show the player's classification, I found an example but he doesn't count the position if the amount is equal, for example:

    Player 1: 600Exp
    Player 2: 400 Exp
    Player 3: 400 Exp
    Player 4: 300 Exp

    The way I found the position of player 2 and 3 is the same as:
    Player 1: Top 1
    Player 2: Top 2
    Player 3: Top 2
    Player 4: Top 3

    I would like it to look like this:

    Player 1: Top 1
    Player 2: Top 2
    Player 3: Top 3
    Player 4: Top 4

    Here is an example I found below:

     

    dispbottom "============== My Rank ==============", 0xffe066;
    query_sql( "SELECT `points`, 1 + (SELECT COUNT(1) FROM `mvp_ranking` t1 WHERE t1.`points` > t2.`points`) FROM `mvp_ranking` t2 WHERE `char_id` = "+ getcharid(0), .@points, .@rank);
    dispbottom "My Rank is: " + .@rank+ ".", 0x6666ff;
    dispbottom "My Points is: " + .@points+ ".", 0x6666ff;
    dispbottom "==========================================", 0xffe066;

     

  6. 6 hours ago, Naruto said:

    Well there might be an easier way but if your using this script command to access the dress room "opendressroom"

    then you can try looking at this

    script.c

    
     */
    BUILDIN_FUNC(opendressroom)
    {
    #if PACKETVER >= 20150513
    	int flag = 1;
        TBL_PC* sd;
    
    	if( script_hasdata(st,2) )
    		flag = script_getnum(st,2);
    
        if (!script_charid2sd(3, sd))
            return SCRIPT_CMD_FAILURE;
    
        clif_dressing_room(sd, flag);
    
        return SCRIPT_CMD_SUCCESS;
    #else
        return SCRIPT_CMD_FAILURE;
    #endif
    }

    and now you see the function through clif_

    clif.c

    
    void clif_dressing_room(struct map_session_data *sd, int flag) {
    #if PACKETVER >= 20150513
    	int fd = sd->fd;
    
    	nullpo_retv(sd);
    
    	WFIFOHEAD(fd, packet_len(0xa02));
    	WFIFOW(fd,0) = 0xa02;
    	WFIFOW(fd,2) = flag;
    	WFIFOSET(fd, packet_len(0xa02));
    #endif
    }

     

     

    I would just make a second one if i had no choice . . . 

    I'll take a look, thank you very much

  7. Is it possible to open two different dressrooms? For example if it is a class x opens dressroom x, if it is class y opens dressroom y.

    I wonder where I need to go to add a second dressroom

  8. On 4/10/2020 at 2:41 PM, Emistry said:

    https://github.com/rathena/rathena/blob/652d77eb0287a13fca25d47eb5317de1b538fe87/src/map/mob.cpp#L2665-L2673

    modify it into something like this.

    
    	int rate = pc_level_penalty_mod(md->level - tmpsd[i]->status.base_level, md->status.class_, md->status.mode, 1);
    	if (tmpsd[i]->status.base_level >= (MAX_LEVEL - 5))
    		rate = 50; // reduce EXP rate by half for last 5 base level.
    	if (rate != 100) {
    		if (base_exp)
    			base_exp = (unsigned int)cap_value(apply_rate(base_exp, rate), 1, UINT_MAX);
    		if (job_exp)
    			job_exp = (unsigned int)cap_value(apply_rate(job_exp, rate), 1, UINT_MAX);
    	}

     

    Thanks

  9. Boa noite, Estou quebrando a cabeça tentando descobrir como posso selecionar a % de chances do equipamento refinar, estou fazendo um npc que por exemplo se eu der dois itens a ele, vai ficar 100 % de chance de refinar, se eu der apenas 1 fica com 50%, consigo apenas usar a % das próprias regras estabelecidas pelo jogo mas dessa forma não consigo estabelecer um bônus de % por item, se alguém puder me dar uma luz, não quero script pronto, só quero ter um norte pra saber oque precisa ser feito, deis de já obrigado.

     

  10. Consegui resolver, o problema estava na data, estava usando a data ROenglishRE-master e por algum motivo não estava funcionando com hexed 2018 talvez por algum erro meu ou própria compatibilidade 

  11. 16 minutes ago, Tyrfing said:

    Topic titles such as "Help me" do not describe your issue at all, so please avoid them.

    You need to know what client version you are using. RE clients typically load information from the System\itemInfo.lub file, whereas non-RE clients load item information from data\idnum2itemresnumtable.txt. By diffing your RE client, you can also change that to System\itemInfo.lua.

    The basic difference is that the .lub file format is encrypted, while the .lua isn't, making it easier to add or remove custom items.

    Since the user is Brazilian, I'll provide a portuguese translation of the post.

     

    Estou usando uma das ultimas versões 2018-02-13aRagexeRE e configurei tudo usando o iteminfo.lub

  12. 4 minutes ago, Tyrfing said:

    Como você sabe que a ROenglishRE-master é uma pasta data de 2017?

    A ROenglishRE é um projeto de tradução para o inglês da pasta data do kRO realizado pelo zackdreaver. O arquivo itemInfo.lua, por exemplo, foi atualizado há 2 meses.

    Se você procura uma pasta data em inglês mais atualizada do que essa, eu acho que não existe. Você pode tentar extrair os arquivos da GRF do iRO, mas eu acho que estão menos atualizados do que a ROenglishRE, ou tentar traduzir você mesmo os arquivos do kRO.

    @Tyrfing

    Mano aproveitando, to com um problema que n aparece nenhum hat do jogo nem os originais do bro, vc sabe oque pode ser ? consigo equipar jogar no chao e tudo mais n mostra no personagem

  13. 5 hours ago, Haziel said:

    Have you marked down for item_db, mob_db and derivatives to be used in SQL instead of text?
     It's an option to be marked on inter_athena.conf.

    No, I'll check thanks 

     

    @Haziel  This line ?

    // Use SQL item_db, mob_db and mob_skill_db for the map server? (yes/no)
    use_sql_db: yes

     

     

    not show any items in the character

    image.thumb.png.c311d5f73abf6c642ee3370f8738902b.png

  14.      @srhmike  Thanks guys, this is same process of  brathena,  i 'm using "MARIADB database"  and after make all process  says  "invalid item id"  why ? i'm using client 2018

     

     

    acessoryid , accname, sprite, texture same name "visual01" 

    484503503_Semttulo.thumb.png.048c76202f06845ce13eb7b2856ba2a2.png item_db 

     

    ddd.png.5635072d9e12f10c284b19447a7b82fb.png  iteminfo.lub

     

×
×
  • Create New...