Jump to content

mhielo12

Members
  • Posts

    114
  • Joined

  • Last visited

Posts posted by mhielo12

  1. Quote

    byako,83,154,4    script    Who's Online Event    99,{

    if (getgroupid() == 99) goto Event_Menu;
    mes "[Who's Online Event]";
    mes "Only GM's are allowed to use this NPC.";
    close;

    Event_Menu:
        set .@invokeid,getcharid(3);
        mes "[Who's Online Event]";
        mes "Enable event?";
        menu "Yes",-,"No",Event_End;
        
        while(1){
        query_sql "select account_id from `char` where online = 1 order by rand() limit 1", .@aid;
        attachrid .@aid;
        if( CheckVending() || getgroupid() >= 2 ){
            DetachRID();
            continue;
        }
        announce strcharinfo(0) +" won 1 Lucky Pick Box in Exiled Lucky Pick", 0,0x00FF00;
        getitem 50043,1;
        break;
        }
        attachrid(.@invokeID);
        close;

    Event_End:
    close;
    }

    How to make this every 3 hours and for specific map only

     

  2. Is it possible to create an npc that counts players who have a specific items and can only be access by GM.
    Like

    Memory of Thanatos Card = There are ( 20 ) player that has this Item
    Kield D-01 Card = There are ( 2 ) player that has this Item
    Weapon Custom = There are ( 2 ) player that has this Item

    Counts items inside Inventory/Storage/Vending/Gstorage

    Dont need the player name just to count the item..

  3. bug still persist now after I create my guild and tried to logout and login
    guild UI is removed.. how to know the problem..
    I already removed the battleground free mod.. no error during compilation..

    image.thumb.png.2b9a9ded1db0cd44e5c0b7ed59236106.png

    i have guild but create guild UI is showing
    Already remove BG mod.
    but I have extended vending patch

     

    remove extended vending and still bug..

    im using 20200401 client

  4. On 12/18/2020 at 10:02 AM, Rook1es said:

    Hello sir i think need to add this

    skill.cpp

     

    Find :

        case SL_ALCHEMIST:
        case SL_ASSASIN:
        case SL_BARDDANCER:
        case SL_BLACKSMITH:
        case SL_CRUSADER:
        case SL_HUNTER:
        case SL_KNIGHT:
        case SL_MONK:
        case SL_PRIEST:
        case SL_ROGUE:
        case SL_SAGE:
        case SL_SOULLINKER:
        case SL_STAR:
        case SL_SUPERNOVICE:
        case SL_WIZARD:
            if (sd && tsc && (tsc->data[SC_SOULGOLEM] || tsc->data[SC_SOULSHADOW] || tsc->data[SC_SOULFALCON] || tsc->data[SC_SOULFAIRY])) { // Soul links from Soul Linker and Soul Reaper skills don't stack.
                clif_skill_fail(sd, skill_id, USESKILL_FAIL,0);
                break;
            }
            //NOTE: here, 'type' has the value of the associated MAPID, not of the SC_SPIRIT constant.
            if (sd && dstsd && !((dstsd->class_&MAPID_UPPERMASK) == type)) {
                clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
                break;
            }
     

    Add :

        case SL_ALCHEMIST:
        case SL_ASSASIN:
        case SL_BARDDANCER:
        case SL_BLACKSMITH:
        case SL_CRUSADER:
        case SL_HUNTER:
        case SL_KNIGHT:
        case SL_MONK:
        case SL_PRIEST:
        case SL_ROGUE:
        case SL_SAGE:
        case SL_SOULLINKER:
        case SL_STAR:
        case SL_SUPERNOVICE:
        case SL_WIZARD:
    +   case SL_GUNNER:
    +   case SL_NINJA:
            if (sd && tsc && (tsc->data[SC_SOULGOLEM] || tsc->data[SC_SOULSHADOW] || tsc->data[SC_SOULFALCON] || tsc->data[SC_SOULFAIRY])) { // Soul links from Soul Linker and Soul Reaper skills don't stack.
                clif_skill_fail(sd, skill_id, USESKILL_FAIL,0);
                break;
            }
            //NOTE: here, 'type' has the value of the associated MAPID, not of the SC_SPIRIT constant.
            if (sd && dstsd && !((dstsd->class_&MAPID_UPPERMASK) == type)) {
                clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
                break;
            }

     

    status.cpp

    Find :

        /* Storing the target job rather than simply SC_SPIRIT simplifies code later on */
        SkillStatusChangeTable[skill_get_index(SL_ALCHEMIST)]    = (sc_type)MAPID_ALCHEMIST,
        SkillStatusChangeTable[skill_get_index(SL_MONK)]        = (sc_type)MAPID_MONK,
        SkillStatusChangeTable[skill_get_index(SL_STAR)]        = (sc_type)MAPID_STAR_GLADIATOR,
        SkillStatusChangeTable[skill_get_index(SL_SAGE)]        = (sc_type)MAPID_SAGE,
        SkillStatusChangeTable[skill_get_index(SL_CRUSADER)]    = (sc_type)MAPID_CRUSADER,
        SkillStatusChangeTable[skill_get_index(SL_SUPERNOVICE)]    = (sc_type)MAPID_SUPER_NOVICE,
        SkillStatusChangeTable[skill_get_index(SL_KNIGHT)]    = (sc_type)MAPID_KNIGHT,
        SkillStatusChangeTable[skill_get_index(SL_WIZARD)]    = (sc_type)MAPID_WIZARD,
        SkillStatusChangeTable[skill_get_index(SL_PRIEST)]    = (sc_type)MAPID_PRIEST,
        SkillStatusChangeTable[skill_get_index(SL_BARDDANCER)]    = (sc_type)MAPID_BARDDANCER,
        SkillStatusChangeTable[skill_get_index(SL_ROGUE)]    = (sc_type)MAPID_ROGUE,
        SkillStatusChangeTable[skill_get_index(SL_ASSASIN)]    = (sc_type)MAPID_ASSASSIN,
        SkillStatusChangeTable[skill_get_index(SL_BLACKSMITH)]    = (sc_type)MAPID_BLACKSMITH,
        SkillStatusChangeTable[skill_get_index(SL_HUNTER)]    = (sc_type)MAPID_HUNTER,
        SkillStatusChangeTable[skill_get_index(SL_SOULLINKER)]    = (sc_type)MAPID_SOUL_LINKER,

    add :

        /* Storing the target job rather than simply SC_SPIRIT simplifies code later on */
        SkillStatusChangeTable[skill_get_index(SL_ALCHEMIST)]    = (sc_type)MAPID_ALCHEMIST,
        SkillStatusChangeTable[skill_get_index(SL_MONK)]        = (sc_type)MAPID_MONK,
        SkillStatusChangeTable[skill_get_index(SL_STAR)]        = (sc_type)MAPID_STAR_GLADIATOR,
        SkillStatusChangeTable[skill_get_index(SL_SAGE)]        = (sc_type)MAPID_SAGE,
        SkillStatusChangeTable[skill_get_index(SL_CRUSADER)]    = (sc_type)MAPID_CRUSADER,
        SkillStatusChangeTable[skill_get_index(SL_SUPERNOVICE)]    = (sc_type)MAPID_SUPER_NOVICE,
        SkillStatusChangeTable[skill_get_index(SL_KNIGHT)]    = (sc_type)MAPID_KNIGHT,
        SkillStatusChangeTable[skill_get_index(SL_WIZARD)]    = (sc_type)MAPID_WIZARD,
        SkillStatusChangeTable[skill_get_index(SL_PRIEST)]    = (sc_type)MAPID_PRIEST,
        SkillStatusChangeTable[skill_get_index(SL_BARDDANCER)]    = (sc_type)MAPID_BARDDANCER,
        SkillStatusChangeTable[skill_get_index(SL_ROGUE)]    = (sc_type)MAPID_ROGUE,
        SkillStatusChangeTable[skill_get_index(SL_ASSASIN)]    = (sc_type)MAPID_ASSASSIN,
        SkillStatusChangeTable[skill_get_index(SL_BLACKSMITH)]    = (sc_type)MAPID_BLACKSMITH,
        SkillStatusChangeTable[skill_get_index(SL_HUNTER)]    = (sc_type)MAPID_HUNTER,
        SkillStatusChangeTable[skill_get_index(SL_SOULLINKER)]    = (sc_type)MAPID_SOUL_LINKER,
    +    SkillStatusChangeTable[skill_get_index(SL_GUNNER)]    = (sc_type)MAPID_GUNSLINGER,
    +    SkillStatusChangeTable[skill_get_index(SL_NINJA)]    = (sc_type)MAPID_NINJA,

    restart your server then recompile

    i hope it helps ?
     

     

    try this

    • Upvote 1
  5. Hi i got problem using this.. I have applied the diff successfully but Guild invite is messed up.. using latest git 
    also using @leader <name of own character> make server crash

    On 3/22/2021 at 2:34 AM, Brynner said:

    for those who having issue applying the old BattlegroundExtended.diff to the latest rAthena version. just try this.i haven't tested it on the live server and i got no compile error on windows. not sure on linux.

    BattlegroundExtended-032221.diff 123.87 kB · 23 downloads

    is guild invite fix on this patch?

  6. Hi I dont know if im @ the correct section but.. can some one help me regarding guild invite?
    I think guild invite was bug on the latest git version
    - How to replicate
    - Create Renewal server from latest git
    - use client 20200401 ( I know emblem not working with this unless has the external web config )
    - invite someone for first time after server being up
    - logout or char select
    - try to invite again guild invite missing

×
×
  • Create New...