Jump to content

Lullaby

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Lullaby

  1. Hi guys!
    I'm using the latest rAthena version, and I need help with Random Option System.

    There is a guide in the current .yml files, but there is no example of how to complete the columns. I'm not managing to create a random option. ?
    Anyone can help me?
     

    Spoiler

    ###########################################################################
    # Item Random Option Group Database
    ###########################################################################
    #
    # Item Random Option Group Settings
    #
    ###########################################################################
    # - Id                  Item Random Option Group ID.
    #   Group               Item Random Option Group constant.
    #   Slots:              Slot in which an Item Random Option is guaranteed to be applied. Max of MAX_ITEM_RDM_OPT.
    #     - Slot            Slot number.
    #       Options:        List of possible Item Random Options for slot.
    #         - Option      Item Random Option constant.
    #           MinValue    Minimum value. (Default: 0)
    #           MaxValue    Maximum value. (Default: 0)
    #           Param       Parameter value. (Default: 0)
    #           Chance      Chance applied specifically to this Item Random Option (1 = 0.01%, 10000 = 100%). (Default: 0)
    #   MaxRandom           Maximum amount of random options applied. These options are not guaranteed to be applied. Max of (MAX_ITEM_RDM_OPT - Total 'Slots'). (Default: 0)
    #   Random:             List of possible Item Random Options for remaining slots. (Optional)
    #     - Option          Item Random Option constant.
    #       MinValue        Minimum value. (Default: 0)
    #       MaxValue        Maximum value. (Default: 0)
    #       Param           Parameter value. (Default: 0)
    #       Chance          Chance applied specifically to this Item Random Option (1 = 0.01%, 10000 = 100%). (Default: 0)
    ###########################################################################

     

    How should I fill in this yml files: item_randomopt_group.yml and item_randomopt_db.yml? I need to edit enumvar too?
    How can I create a Random STR Option, for example?
    I really need a walkthrough

    Thanks!

  2. EN:
    Hi, guys!
    I've been trying to fix this sql function at my personal server, but wasn't successfully.

    The problem is: the VIP SYSTEM change account group id to 1 when I use the VIP Item, and date this account normally.
    But after a few minutes after using this VIP Item the account group id return to 0, and the system still reading this account like a VIP account...
    So... I use this item, change group id temporarily to 1, still dated account with "VIP", and return to group id 0 a few minutes later...

    Can anyone help me with this trouble?

    PTBR:
    Oi, pessoal!
    Eu estive há um bom tempo tentando entender e consertar esse sistema SQL, que apresenta defeitos em meu servidor. Entretanto, eu não entendo muito bem ainda de SQL...
    O problema é que, quando eu uso o Cartão VIP para adicionar VIP na minha conta, ele funciona normalmente...
    Só que após alguns minutos, o group_id da conta volta a ser 0, e eu não entendo o porquê.
    A data da conta VIP continua setada normalmente; quando eu entro na conta, mostra o dia do vencimento do vip e tudo mais, só que o group_id volta a ser 0 do nada...
    Quando eu uso o Cartão, ele muda a conta para VIP, mas depois de alguns minutos, torna a ser group_id 0...

    Alguém poderia me ajudar com esse problema?

    This is my function addvip:
    Essa é minha function addvip:

    Spoiler

    /*ALTER TABLE `login` ADD `dt_vip` INT(4) NOT NULL DEFAULT '0';*/

    function    script    addvip7    {

    set $nivelVip, 1;
    set $diasVip, 7;
    set $verificaVip, 1;

        if (getgroupid() == 1) goto vipplayer;
        
        query_sql "UPDATE `login` SET `group_id` = "+$nivelVip+", `dt_vip` = DATE_ADD(CURDATE(),INTERVAL "+$diasVip+" DAY) WHERE `group_id` = 0 AND `account_id` = "+getcharid(3);

        dispbottom "[SISTEMA VIP]: Você inseriu +7d de VIP.",0xF58F40;
        sleep2 5000;
        dispbottom "[SISTEMA VIP]: Reconecte-se para atualizar sua conta.",0xF58F40;
        end;

    vipplayer:

        getitem 29256,1;
        dispbottom "[SISTEMA VIP]: Você já é um jogador VIP.",0xF58F40;
        sleep2 5000;
        dispbottom "[SISTEMA VIP]: Por favor, tente novamente quando seus dias VIP expirarem.",0xF58F40;
        end;

    }

    function    script    addvip15    {

    set $nivelVip, 1;
    set $diasVip, 15;
    set $verificaVip, 1;

        if (getgroupid() == 1) goto vipplayer;

        query_sql "UPDATE `login` SET `group_id` = "+$nivelVip+", `dt_vip` = DATE_ADD(CURDATE(),INTERVAL "+$diasVip+" DAY) WHERE `group_id` = 0 AND `account_id` = "+getcharid(3);

        dispbottom "[SISTEMA VIP]: Você inseriu +15d de VIP.",0xF58F40;
        sleep2 5000;
        dispbottom "[SISTEMA VIP]: Reconecte-se para atualizar sua conta.",0xF58F40;
        end;

    vipplayer:

        getitem 29257,1;
        dispbottom "[SISTEMA VIP]: Você já é um jogador VIP.",0xF58F40;
        sleep2 5000;
        dispbottom "[SISTEMA VIP]: Por favor, tente novamente quando seus dias VIP expirarem.",0xF58F40;
        end;

    }

    function    script    addvip30    {

    set $nivelVip, 1;
    set $diasVip, 30;
    set $verificaVip, 1;

        if (getgroupid() == 1) goto vipplayer;

        query_sql "UPDATE `login` SET `group_id` = "+$nivelVip+", `dt_vip` = DATE_ADD(CURDATE(),INTERVAL "+$diasVip+" DAY) WHERE `group_id` = 0 AND `account_id` = "+getcharid(3);

        dispbottom "[SISTEMA VIP]: Você inseriu +30d de VIP.",0xF58F40;
        sleep2 5000;
        dispbottom "[SISTEMA VIP]: Reconecte-se para atualizar sua conta.",0xF58F40;
        end;

    vipplayer:

        getitem 29258,1;
        dispbottom "[SISTEMA VIP]: Você já é um jogador VIP.",0xF58F40;
        sleep2 5000;
        dispbottom "[SISTEMA VIP]: Por favor, tente novamente quando seus dias VIP expirarem.",0xF58F40;
        end;

    }

    -    script    GerenciadorVip    -1,{

            OnPCLoginEvent:    

            query_sql "UPDATE `login` SET `group_id`= 0 WHERE `group_id` = "+$nivelVip+" AND (`dt_vip` IS NULL OR `dt_vip` < CURDATE())";
            query_sql "SELECT (`dt_vip` IS NULL OR `dt_vip` < CURDATE()) FROM `login` WHERE `account_id` = "+getcharid(3), @verificaVip;

            if (@verificaVip) {

            dispbottom "Torne-se VIP e desfrute de nossos serviços especiais.",0xF58F40;
            dispbottom "Para consultar nossos preços, abra a Loja de Cash.",0xF58F40;
            end;

    }

        query_sql "SELECT DATE_FORMAT(`dt_vip`, '%d/%m/%Y') FROM `login` WHERE `account_id` = "+getcharid(3), @dataVencimento$;

        dispbottom "[SISTEMA VIP]: Sua conta expira em: "+@dataVencimento$+"",0xF58F40;
        end;

    }

    Sorry for bad english!

     

    Example:

    image.png.9a87026d0fe79cae84c0c5b9eb342269.png
    This is the System saying that my account expires at 19/06/2020.
    So when I use any vip command, the system says I'm not VIP.
    (But I'm really VIP temporarily when I use this VIP Item)

    -- EDIT --
    How can I change date vip to hours?

  3. Simple and Clean Patcher with Niflheim Theme.

    EN:

    Hi, guys! This is the first time that I customize a personal Thor Patcher, and I'm learning how to use this tool yet.

    This Patcher is from my custom server, and I'm just training!

    Please rate my Patcher, guys ❤️

    All crits are welcome!

    INICIAR JOGO = PLAY GAME

    CRIAR CONTA = REGISTER

    VOTAR NO SERVIDOR = VOTE

    DOAÇÕES = DONATIONS

     

    PTBR:

    Oi, pessoal! Essa é a primeira vez que eu trabalho com o Thor Patcher, e ainda estou aprendendo a utilizar esta ferramenta.

    Esse Patcher é do meu servidor pessoal, e eu apenas estou treinando!

    Por favor, avaliem meu Patcher, pessoal ❤️

    Todas as críticas serão bem-vindas!

     

    image.png.915d50cf68696d5d7376ced2c36baa8c.png

    • Like 2
  4. Hi, dearlings!

    I've been looking for a way to change "titles" from Cash Shop, but I cannot found about which files I need to edit.

    I want to work with Cash Shop (button system), but I won't use the same official sections, I want to change icons and "titles" from that sections.

     

    This is my Cash Shop, and I want to change title "Buff" to "Wings" for example.

    image.png.9cfd32f5fccd956caf188e004a734a86.png

    But I can't find which file I should edit to do this.

    Can anyone help me, please?

    Thanks!!!!

  5. Hi, guys!

    I've been confronting an error on my custom server.

    I've costumized my groups.conf to add group IDs. When I put any account to 0 (normal player) or 99 (admin), it's ok... but when I put every ID that's not 0 nor 99, the player is petrified when log-in (like VIP player ID 01, or GM ID 60).

    This problem was happening even when I was using official groups.config.

    When any player that's not 0 or 99 ID log:

    image.png.128cc4462c8dbdc09a45942e5283e7c9.png

    Player status when log-in:

    image.png.b58365f8c107a8eaa211b1cf2e9ff2b8.png

     

    Can anyone help me to solve this problem?

    Thanks!!!

     

    -- EDIT --

    Ok, the problem was on my vip system... The system was putting an unknown sc_start on PCLoginEvent.

  6. On 4/27/2020 at 4:47 PM, Mabuhay said:

    This can easily be done thru scripting.
    Use this as reference

     

    Thanks for suggestion!

    There is a way to include jRO costume to 2nd classes on this NPC?

    2nd classes are able to change to first, second or third look classes, but they cannot change to jRO costume.

    I've been tried to edit this script, but was unsuccessfully...

    This NPC only change look to jRO costume if you are a 3rd class.

    Thanks for reply and support! ❤️

     

    -- EDIT --

    I was trying to change jRO costume classes that were not active on NPC script (Rune Knight, Sura, Sorcerer and Shadow Chaser)...
    This NPC is ok to use!

    Thanks for help, me! You solved my problem! Amazing! ❤️

     

    -- EDIT 2 --

    There is a way to add Expanded Classes costume? Rebelion, Oboro, Star Emperor and Soul Reaper...?

  7. 9 minutes ago, iraciz said:

    You need to bind an atcommand to call the function:

    setlook LOOK_BODY,1;

    Or 

    setlook LOOK_BODY,2;

     

     

    Spoiler

    ACMD_FUNC(bodystyle)
    {
        int body_style = 0;
        nullpo_retr(-1, sd);

        memset(atcmd_output, '\0', sizeof(atcmd_output));

        if (!(sd->class_&JOBL_THIRD)) {
            clif_displaymessage(fd, msg_txt(sd,740));    // This job has no alternate body styles.
            return -1;
        }

        if (!message || !*message || sscanf(message, "%d", &body_style) < 1) {
            sprintf(atcmd_output, msg_txt(sd,739), MIN_BODY_STYLE, MAX_BODY_STYLE);        // Please enter a body style (usage: @bodystyle <body ID: %d-%d>).
            clif_displaymessage(fd, atcmd_output);
            return -1;
        }

        if (body_style >= MIN_BODY_STYLE && body_style <= MAX_BODY_STYLE) {
            pc_changelook(sd, LOOK_BODY2, body_style);
            clif_displaymessage(fd, msg_txt(sd,36)); // Appearence changed.
        } else {
            clif_displaymessage(fd, msg_txt(sd,37)); // An invalid number was specified.
            return -1;
        }

        return 0;
    }

    I need to set lookbody in this source? map/atcommand.cpp
    I don't know how to do this, I'm newbie with source editting, sorry.

    Can you help me?

    Thanks for reply!

  8. 12 hours ago, Start_ said:

    I see, there should be config on src folders (Try to find bodystyle cap). and made it had 2 bodystyle.

    I did it, but the source read bodystyle atcommand only to 3rd, in other words, 2nd classes is not able to use @bodystyle.

    I don't know how edit atcommand source to open up the possibility to use 2nd classes bodystyle... ?

    Thanks for reply!

  9. 10 minutes ago, Start_ said:

    I made my costume folders based in this tutorial. When I use bodystyle with 3rd classes, I can change to 3rd alternative, but I want to put this system on 2nd classes
    I want to choose Lord Knight sprite to Rune Knight (original) sprite or Rune Knight (alternative) sprite, for example.
    My server is only 2nd classes, but I want to put 3rd sprites as costume.
    Thanks for comment! ❤️

  10. Hi, guys!
    I've been looking for source edit to able transclass costumes...
    I want to open up the possibility for the player can choose his bodystyle to 3rd (original) and new 3rd (alternative) 

    image.thumb.png.a540013637e54c75b137aefdb2aabd9b.png

    image.png.c39ee1b584835c2f3a1b34941acdca03.png

    I've added the sprites at costume_1 and costume_2, rename to 2nd class, and made a grf... DATA.INI is reading grf costume before data.grf.
    When I use @bodystyle at my server, the command reports that have no costume to 2nd class.

    I think the problem is atcommand source, but I don't know how to edit and able 2nd class costume.

    Can anyone help me with this edit? Sorry for bad English.
    Thank you!

×
×
  • Create New...