Jump to content

apuadofrancisco

Members
  • Content Count

    67
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by apuadofrancisco


  1. Hi Herc Community,

    Does anyone know whats the problem of my aura? here's the following scenario for you to try and replicate..
    Prerequisite: Must show aura on level 255. custom or default aura will do.
    Client used: 20181121 + latest herc(clean and new download, no custom modifications) + clean Chris' data folder

    Step 1: Change job to Champion (assuming learned all skills)
    Step 2: use @evilclone to yourself (your evilclone should have aura also)
    Step 3: attack your clone.
    Step 4: check if aura is stacking if not, i think its my client/server files got corrupted.
    or
    Step 1: use @hide and attack dummy monster
    Step 2: check if aura is stacking or not.
    or
    Step 1: change job to assassin cross
    Step 2: use hide + grimtooth.
    Step 3: check if aura is stacking or not.

    Attached image is the sample of my bug/error. 
    https://streamable.com/77ube3

    Thanks!

    Annotation 2020-06-24 205057.png


  2. 8 hours ago, rennison said:

    Good night, could you help me with Gstorage? Your guild's storage has already been opened by another member

    what happen? just do everything on my first commend but use atcommand.c to my 2nd comment. be sure to change this lines...
     

    Quote

     if( gstorage->open(sd) ) {
            clif->message(fd, msg_fd(fd,1201)); // Your guild's storage has already been opened by another member, try again later.
            return false;
        }

        if (sd->state.storage_flag == STORAGE_FLAG_NOPERMISSION) {
            clif->message(fd, msg_fd(fd, 1202)); // You do not have permission to use the guild storage.
            return false;
        }

    to this one...

    Quote

       if( gstorage->open(sd)) {
            if(sd->state.storage_flag != STORAGE_FLAG_NOPERMISSION)
                clif->message(fd, msg_fd(fd, 1202)); // You do not have permission to use the guild storage.
            else
                clif->message(fd, msg_fd(fd,1201)); // Your guild's storage has already been opened by another member, try again later.
            return false;
        }

     


  3. Oh nvm, i already figured it out..

    I updated this in my atcommand.c
     

    Spoiler

    ACMD(guildstorage)
    {
        if (!sd->status.guild_id) {
            clif->message(fd, msg_fd(fd,252)); // You are not in a guild.
            return false;
        }

        if (sd->npc_id || sd->state.vending || sd->state.prevend || sd->state.buyingstore || sd->state.trading)
            return false;

        if (sd->state.storage_flag == STORAGE_FLAG_NORMAL) {
            clif->message(fd, msg_fd(fd,250)); // You have already opened your storage. Close it first.
            return false;
        }

        if (sd->state.storage_flag == STORAGE_FLAG_GUILD) {
            clif->message(fd, msg_fd(fd,251)); // You have already opened your guild storage. Close it first.
            return false;
        }

        if (!pc_has_permission(sd, PC_PERM_BYPASS_NOSTORAGE) && (map->list[sd->bl.m].flag.nogstorage & 1)) { // mapflag nogstorage already defined? can't open :c
            clif->message(fd, msg_fd(fd, 1161)); // You currently cannot open your storage. (there is no other messages...)
            return false;
        }

        if( gstorage->open(sd)) {
            if(sd->state.storage_flag != STORAGE_FLAG_NOPERMISSION)
                clif->message(fd, msg_fd(fd, 1202)); // You do not have permission to use the guild storage.
            else
                clif->message(fd, msg_fd(fd,1201)); // Your guild's storage has already been opened by another member, try again later.
            return false;
        }

        clif->message(fd, msg_fd(fd,920)); // Guild storage opened.
        return true;
    }

     


  4. Hi Guys,

     

    I added the code in red text. everything is working well.

     

    Updated. currently working on mine. please give a try and tell me if somethings wrong.

     

    Database:

    you need to change your datatype of mode to smallint in in your guild_position table
    image.png.842f1d39442880350687e5e92ff5a107.png

     

    message.conf

    Spoiler

    //1202 FREE - You do not have permission to use the guild storage.
    1202: You do not have permission to use the guild storage.


    mmo.h

    Spoiler

    enum guild_permission { // Guild permissions
        GPERM_INVITE = 0x01,
        GPERM_EXPEL = 0x10,
        GPERM_STORAGE = 0x100,
        GPERM_ALL = GPERM_INVITE | GPERM_EXPEL | GPERM_STORAGE,
        GPERM_MASK = GPERM_ALL,
    };

     

    storage.h

    Spoiler

     * Acceptable values for map_session_data.state.storage_flag
     */
    enum storage_flag {
        STORAGE_FLAG_CLOSED = 0, // Closed
        STORAGE_FLAG_NORMAL = 1, // Normal Storage open
        STORAGE_FLAG_GUILD  = 2, // Guild Storage open
        STORAGE_FLAG_NOPERMISSION = 3, //Gstorage no permission


    atcommand.c

    Spoiler

    ACMD(guildstorage)
    {

        int i;

        struct guild* g;
        g = sd->guild;

     

        if (!sd->status.guild_id) {
            clif->message(fd, msg_fd(fd,252)); // You are not in a guild.
            return false;
        }

        if (sd->npc_id || sd->state.vending || sd->state.prevend || sd->state.buyingstore || sd->state.trading)
            return false;

        if (sd->state.storage_flag == STORAGE_FLAG_NORMAL) {
            clif->message(fd, msg_fd(fd,250)); // You have already opened your storage. Close it first.
            return false;
        }

        if (sd->state.storage_flag == STORAGE_FLAG_GUILD) {
            clif->message(fd, msg_fd(fd,251)); // You have already opened your guild storage. Close it first.
            return false;
        }

        if (!pc_has_permission(sd, PC_PERM_BYPASS_NOSTORAGE) && (map->list[sd->bl.m].flag.nogstorage & 1)) { // mapflag nogstorage already defined? can't open :c
            clif->message(fd, msg_fd(fd, 1161)); // You currently cannot open your storage. (there is no other messages...)
            return false;
        }

     

      if ((i = guild->getposition(g, sd)) < 0 || !(g->position.mode & GPERM_STORAGE)) {
            clif->message(fd, msg_fd(fd, 1202)); // You do not have permission to use the guild storage.
            return false;
        }

        if( gstorage->open(sd) ) {
            clif->message(fd, msg_fd(fd,1201)); // Your guild's storage has already been opened by another member, try again later.
            return false;
        }

      
        clif->message(fd, msg_fd(fd,920)); // Guild storage opened.
        return true;
    }

     

     

     


  5. Hi guys,

    Im currently using latest herc and 2019-05-30aRagexeRE for my testing client.

    Scenario:
    When i click delete, it will be successfully deleted but it didnt refresh the list. 

    and when i click delete again there will be an error in my map-server.

    How can i prevent the error? or how can i refresh the list every time i click delete button?

    Please see images below for reference:
    RodEx UI:

    Spoiler

    image.png.b3a7f681042dd6b589a36d24c1042564.png

     

    Error msg:

    Spoiler

    image.png.43995855af7cc35c45c3b7a83e2bf509.png



    Rodex code incase you need it:

    Spoiler

    image.png.634cf80eec9acd868ce68544232be1c7.png

     

    Thanks,
    Francisco Apuado
     

×
×
  • Create New...

Important Information

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