Jump to content

idLaZ

Members
  • Posts

    93
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by idLaZ

  1. On 8/31/2018 at 9:06 PM, xilence01 said:

    Hi, Im not using the latest rAthena, but here are the lines I have commented:

    @ skill.c

    
    case AM_POTIONPITCHER: 
    		{
    			int j,hp = 0,sp = 0;
    			//if( dstmd && dstmd->mob_id == MOBID_EMPERIUM ) {
    			//	map_freeblock_unlock();
    			//	return 1;
    			//}

     

    Anyway, it heals the emperium but not following the formula of Potion Pitcher.
    It only heals it for 0 or 1 Value.

    Hi @Mabuhay maybe you know why commenting this code didn't heals the emp? ?

  2. On 11/13/2019 at 7:17 AM, Mabuhay said:

    Lacking break on strip armor code.

    
    int d = 0;
    
    // By pass FCP when using single strip skills by 15%(requires Glistening Coat).
    if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 75
    &&
    ( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] ||
    skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] ||
    skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] ||
    skill_id == RG_STRIPHELM && tsc->data[SC_CP_HELM] ) ) {
    int item_id = 7139; // Glistening Coat
    int ii;
    ARR_FIND( 0, MAX_INVENTORY, ii, sd->inventory.u.items_inventory[ii].nameid == item_id );
    if ( ii < MAX_INVENTORY ) {
    pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);
    switch ( skill_id ) { 
    case RG_STRIPWEAPON:
    status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPWEAPON,100,skill_lv,skill_get_time(skill_id,skill_lv));
    break;
    case RG_STRIPSHIELD:
    status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPSHIELD,100,skill_lv,skill_get_time(skill_id,skill_lv));
    break;
    case RG_STRIPARMOR:
    status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPARMOR,100,skill_lv,skill_get_time(skill_id,skill_lv));
    break; // <-- this part was missing
    case RG_STRIPHELM:
    status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPHELM,100,skill_lv,skill_get_time(skill_id,skill_lv));
    break;
    }
    clif_skill_nodamage( src, bl, skill_id, skill_lv, i );
    break;
    }
    }

     

    Didn't notice this! Thank you so much!

  3. Hi,

    Here's the scenario:

    Stalker with Soul Link + GCoat + Wickebine Tres equipped is attacking a player with FCP. Instead that only Armor will be stripped, the helm is included. It must not. That's what I want to happen. It must only the armor and not the helm too. 

  4. On 11/12/2019 at 12:25 AM, BeWan said:

    apply this in skill.c

     

    
    ( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] ||
    skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] ||
    skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] ) {

    @idLaZ @Ryo Osaki

     

    and remove this part

     

    
    case RG_STRIPHELM:
                            status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
                            sc_start( NULL, bl, SC_STRIPHELM, 100, skill_lv, skill_get_time(skill_id, skill_lv) );
                            break;


     

    Hi, you only disabled permanently the strip helm by doing that. I want it to exclude the Strip Helm when you equip the Wickebine Tres

  5. On 2/1/2019 at 11:58 AM, utofaery said:

    1 .  In  your rathena installation

    src/map/pc.cpp  << the file

    make the line of this:

    unit_skillcastcancel(&sd->bl, 0); // Cancel Shield Spell if player swaps shields.

    into this ::

    //unit_skillcastcancel(&sd->bl, 0); // Cancel Shield Spell if player swaps shields.

     

    2. 

    RECOMPILE!!!

    Hi @utofaery this modification works. The buffs are still there when you switch shield. But there is also a bug in it. 

    - Paladin is equipped with shield and casts the buffs

    - Paladin unequipped the shield but the paladin can still use buffs

    Can you help us to disable the use of buffs when the Paladin doesn't have shield?

    Thank you!

  6. Hi All, anyone can help me if there is a problem in this code as I can't understand what the code is saying.

    int d = 0;
    
    // By pass FCP when using single strip skills by 15%(requires Glistening Coat).
    if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 75
    &&
    ( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] ||
    skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] ||
    skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] ||
    skill_id == RG_STRIPHELM && tsc->data[SC_CP_HELM] ) ) {
    int item_id = 7139; // Glistening Coat
    int ii;
    ARR_FIND( 0, MAX_INVENTORY, ii, sd->inventory.u.items_inventory[ii].nameid == item_id );
    if ( ii < MAX_INVENTORY ) {
    pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);
    switch ( skill_id ) { 
    case RG_STRIPWEAPON:
    status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPWEAPON,100,skill_lv,skill_get_time(skill_id,skill_lv));
    break;
    case RG_STRIPSHIELD:
    status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPSHIELD,100,skill_lv,skill_get_time(skill_id,skill_lv));
    break;
    case RG_STRIPARMOR:
    status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPARMOR,100,skill_lv,skill_get_time(skill_id,skill_lv));
    case RG_STRIPHELM:
    status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
    sc_start(src,bl,SC_STRIPHELM,100,skill_lv,skill_get_time(skill_id,skill_lv));
    break;
    }
    clif_skill_nodamage( src, bl, skill_id, skill_lv, i );
    break;
    }
    }

     

    If you applied this source mod in the latest rA version, does the Stalker (with Soul Link and Glistening Coat) will be able to cast a Strip Helm if he uses a Bow and attack an enemy?

    Thank you.

     

    • Upvote 1
  7. Magandang araw mga tropa, may script kasi akong pinapagana and kailangan ng mobevent function. May nakita ako galing sa eAmod na mobevent function, eto:

    /*==========================================
     * Cdigo Zephyrus para mob con IDdeParty para Map Dominacion
     *------------------------------------------*/
    BUILDIN_FUNC(mobevent)
    {
        int class_,size,amount,x,y,partyid,mostrarhp,hpmas,allied,noslaves,noexpnodrop,k,iswar,exp_boost,drop_boost;
        int item_drop, item_amount;
        const char *str,*map,*event="";
    
        map            = script_getstr(st,2);
        x            = script_getnum(st,3);
        y            = script_getnum(st,4);
        str            = script_getstr(st,5);
        class_      = script_getnum(st,6);
        size        = script_getnum(st,7);
        amount      = script_getnum(st,8);
        partyid     = script_getnum(st,9);
        mostrarhp   = script_getnum(st,10);
        hpmas       = script_getnum(st,11);
        allied      = script_getnum(st,12);
        noslaves    = script_getnum(st,13);
        noexpnodrop = script_getnum(st,14);
        item_drop   = script_getnum(st,15);
        item_amount = script_getnum(st,16);
        iswar       = script_getnum(st,17);
        exp_boost   = script_getnum(st,18);
        drop_boost  = script_getnum(st,19);
    
        if( script_hasdata(st,20) )
        {
            event = script_getstr(st,20);
            check_event(st, event);
        }
    
        if( class_ >= 0 && !mobdb_checkid(class_) )
        {
            ShowWarning("buildin_monster: Attempted to spawn non-existing monster class %d\n", class_);
            return 1;
        }
    
        k = mob_once_spawn_especial(map_id2sd(st->rid),map,x,y,str,class_,amount,event,hpmas,size,allied,noslaves,0,mostrarhp,0,0,noexpnodrop,partyid,item_drop,item_amount,iswar,exp_boost,drop_boost);
        script_pushint(st,1); // Confirmando creacion
    
        return 0;
    }

    Wala kayang mangyaring mapcrash in the future kung sakaling ipasok ko sa latest version ng rathena and mag work?

    Thank you.

  8. @Haikenz thanks for this Mod, it is working fine. However, when you char select or reconnect, the Negotiations becomes Release status again. Is it also possible to enhance it?

    - Prevent the character from using commands (like @storage / @gstorage)

    - Prevent use of Vending Skill? 

    - Prevent of talking to NPC because the hackers might sell the items to NPC

    Thank you!

×
×
  • Create New...