Jump to content

mga sir patulong po


redclub00

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  03/22/16
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  191
  • Reputation:   24
  • Joined:  07/19/14
  • Last Seen:  

try mo iadjust ung skill delay dun sa db mo.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  03/22/16
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  57
  • Reputation:   16
  • Joined:  09/26/16
  • Last Seen:  

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
}

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  03/22/16
  • Last Seen:  

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 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  03/22/16
  • Last Seen:  

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 :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  57
  • Reputation:   16
  • Joined:  09/26/16
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  03/22/16
  • Last Seen:  

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 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  03/22/16
  • Last Seen:  

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 

Link to comment
Share on other sites

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.

×
×
  • Create New...