Jump to content
  • 0
Tio Akima

reloging the char (function)

Question

Hi guys, I realized that when reloging the char, the client reloads the skills, including the status_change_end function ...
Does anyone know which function is responsible for this?
(for reloading the skills tree when reloading the char)

 


note:
( I created a passive skill ( SC_ANGEL from INFINITE_DURATION )... And i turn this SC_ANGEL off when it is in Condown and I turn on SC_ANGEL_CD .... When the cooldown time is over (cowndown) I enable SC_ANGEL again in status_change_end ....

But if I unplug the char during SC_ANGEL_CD (cowndown), when i relog, automatically enable SC_ANGEL because some function reloads the skill tree including the status_change_end function.

I tried to check if the SC_ANGEL_CD is on (using if )... but there is a lack of sync, and SC_ is not recognized on or found .. it's like it's off. )

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I still dont understand your issue, but i use a "parking" script for vehicles that gives you a debuff when you relog...

 

//OnPCLoginEvent:
//sc_start(SC_CAR, 1800000, 0, 10000);
//end;
		case MR_CAR:
			clif->skill_nodamage(src,bl,skill_id,skill_lv,
			                   sc_start(src,bl,type,100,skill_lv,INVALID_TIMER));
		if(tsc && tsc->data[SC_CAR]){
			clif->changelook(src, LOOK_BASE, sd->vd.class);
			clif->changelook(&sd->bl, LOOK_HEAD_BOTTOM, sd->status.look.head_bottom);
			clif->changelook(&sd->bl, LOOK_HEAD_TOP, sd->status.look.head_top);
			clif->changelook(&sd->bl, LOOK_HEAD_MID, sd->status.look.head_mid);
			clif->changelook(&sd->bl, LOOK_ROBE, sd->status.look.robe);
		}	
			break;
	
		case UNT_FLASHER:
				status_change_end(bl, SC_CAR, INVALID_TIMER);
				clif->changelook(bl, LOOK_BASE, 3);
				clif->changelook(bl, LOOK_HEAD_BOTTOM, 0);
				clif->changelook(bl, LOOK_HEAD_TOP, 0);
				clif->changelook(bl, LOOK_HEAD_MID, 1900);
				clif->changelook(bl, LOOK_ROBE, 0);
				sg->unit_id = UNT_USED_TRAPS;
				clif->changetraplook(&src->bl, UNT_USED_TRAPS);
				sg->limit = DIFF_TICK32(tick, sg->tick) + 5000;
			break;

 

Maybe your just doing it wrong idk otherwise id offer more help

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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