Jump to content

Recommended Posts

Posted

mga sir baka may alam kayo kung pano ayusin ung delay after body reloc. hindi kase nag rerepeat ung cooldown while using body reloc. 

sana may mka tulong .salamat

Posted
1 hour ago, HappyMan said:

try mo iadjust ung skill delay dun sa db mo.

nagawa ko na un sir e. tinaasan ko ung delay. pero hindi umuulit ung cool down ng asura pag ka body reloc ko. so nkaka br ako ng madami sa isang cool down ng asura lang

Posted

pag ayaw parin, source edit na.

src/map/skill.c

if (sd)
	skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);

change to:
if (sd)
{
	skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);
	skill_blockpc_start (sd, MO_BODYRELOCATION, 3000); // Add cooldown after body reloc, 3000 means 3seconds
}

 

Posted
21 hours ago, Athan17 said:

pag ayaw parin, source edit na.

src/map/skill.c


if (sd)
	skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);

change to:
if (sd)
{
	skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);
	skill_blockpc_start (sd, MO_BODYRELOCATION, 3000); // Add cooldown after body reloc, 3000 means 3seconds
}

 

sir salamat po dito .susubukan ko na to ngayon .sana makatulong .salamat po ng marami 

Posted
On 12/16/2016 at 0:15 AM, Athan17 said:

pag ayaw parin, source edit na.

src/map/skill.c


if (sd)
	skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);

change to:
if (sd)
{
	skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);
	skill_blockpc_start (sd, MO_BODYRELOCATION, 3000); // Add cooldown after body reloc, 3000 means 3seconds
}

 

ganun parin pala sir. nag ka cool down lang ung body reloc. hindi umuulit ung cooldown ng asura pag nag body reloc ako :(

Posted

ahh, sorry, didnt understand the question earlier.

bale, ang gusto mo is, reset cooldown ng asura kada body reloc right?

src/map/skill.c

find:
int skill_blockpc_clear(struct map_session_data *sd);
add below:
int skill_blockpc_skill_clear(struct map_session_data *sd, int skillid); //For skill specific reset


src/map/skill.c

/**
 * Function similar to skill_blockpc_clear [Athan]
 * @param   sd        the player
 * @param   skill_id   the skill which should be cleared
 * @return  1 if successful, -1 otherwise, 0 if skill_id is not found in scd
 */
int skill_blockpc_skill_clear(struct map_session_data *sd, int skill_id) {
    int i;

    nullpo_ret(sd);

    if (!skill_id || !sd)
        return -1;

    ARR_FIND(0, MAX_SKILLCOOLDOWN, i, sd->scd[i] && sd->scd[i]->skill_id == skill_id);
    if (sd->scd[i] && skill_id)
    {    
        delete_timer(sd->scd[i]->timer, skill_blockpc_end);
        aFree(sd->scd[i]);
        sd->scd[i] = NULL;
        clif_skill_cooldown(sd, skill_id, 0);
    }
    else
        return 0;
    
    return 1;
}

then add:

if (sd)
			{
				skill_blockpc_skill_clear(sd,MO_EXTREMITYFIST);
				skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);
			}

 

hindi lang ako marunong ng reset cooldown sa client, pero gumagana na yan, tested in my offline client, gonna implement this also XD

Posted
5 hours ago, Athan17 said:

ahh, sorry, didnt understand the question earlier.

bale, ang gusto mo is, reset cooldown ng asura kada body reloc right?

src/map/skill.c


find:
int skill_blockpc_clear(struct map_session_data *sd);
add below:
int skill_blockpc_skill_clear(struct map_session_data *sd, int skillid); //For skill specific reset


src/map/skill.c


/**
 * Function similar to skill_blockpc_clear [Athan]
 * @param   sd        the player
 * @param   skill_id   the skill which should be cleared
 * @return  1 if successful, -1 otherwise, 0 if skill_id is not found in scd
 */
int skill_blockpc_skill_clear(struct map_session_data *sd, int skill_id) {
    int i;

    nullpo_ret(sd);

    if (!skill_id || !sd)
        return -1;

    ARR_FIND(0, MAX_SKILLCOOLDOWN, i, sd->scd[i] && sd->scd[i]->skill_id == skill_id);
    if (sd->scd[i] && skill_id)
    {    
        delete_timer(sd->scd[i]->timer, skill_blockpc_end);
        aFree(sd->scd[i]);
        sd->scd[i] = NULL;
        clif_skill_cooldown(sd, skill_id, 0);
    }
    else
        return 0;
    
    return 1;
}

then add:


if (sd)
			{
				skill_blockpc_skill_clear(sd,MO_EXTREMITYFIST);
				skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);
			}

 

hindi lang ako marunong ng reset cooldown sa client, pero gumagana na yan, tested in my offline client, gonna implement this also XD

aun oo sir un ung hindi ko mahanap at di ko alam pano gagawin. dpat mag rereset ung coold down ng asura kada br. sige sir try ko ngayon to ulit. sorry late reply. salamat sir sa tulong thank you ng marami 

Posted
On 12/17/2016 at 1:27 PM, Athan17 said:

ahh, sorry, didnt understand the question earlier.

bale, ang gusto mo is, reset cooldown ng asura kada body reloc right?

src/map/skill.c


find:
int skill_blockpc_clear(struct map_session_data *sd);
add below:
int skill_blockpc_skill_clear(struct map_session_data *sd, int skillid); //For skill specific reset


src/map/skill.c


/**
 * Function similar to skill_blockpc_clear [Athan]
 * @param   sd        the player
 * @param   skill_id   the skill which should be cleared
 * @return  1 if successful, -1 otherwise, 0 if skill_id is not found in scd
 */
int skill_blockpc_skill_clear(struct map_session_data *sd, int skill_id) {
    int i;

    nullpo_ret(sd);

    if (!skill_id || !sd)
        return -1;

    ARR_FIND(0, MAX_SKILLCOOLDOWN, i, sd->scd[i] && sd->scd[i]->skill_id == skill_id);
    if (sd->scd[i] && skill_id)
    {    
        delete_timer(sd->scd[i]->timer, skill_blockpc_end);
        aFree(sd->scd[i]);
        sd->scd[i] = NULL;
        clif_skill_cooldown(sd, skill_id, 0);
    }
    else
        return 0;
    
    return 1;
}

then add:


if (sd)
			{
				skill_blockpc_skill_clear(sd,MO_EXTREMITYFIST);
				skill_blockpc_start (sd, MO_EXTREMITYFIST, 3000);
			}

 

hindi lang ako marunong ng reset cooldown sa client, pero gumagana na yan, tested in my offline client, gonna implement this also XD

slamat dito sir. gumana saakin. publema ko naman ngayon ung cooldown sa client haha. kaya pala sa ibang client parang nka patong ung cooldown .pero salamat ulit 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...