anacondaq Posted September 18, 2014 Group: Members Topic Count: 42 Topics Per Day: 0.01 Content Count: 1096 Reputation: 348 Joined: 02/26/12 Last Seen: May 30, 2023 Share Posted September 18, 2014 Hi, i'm playing with TK_SPTIME & TK_HPTIME, because both wont working. I found it here: static int skill_sit_in (struct block_list *bl, va_list ap) { struct map_session_data *sd; int type = va_arg(ap,int); sd = (struct map_session_data*)bl; if(!pc_issit(sd)) return 0; if(type&1 && pc_checkskill(sd,RG_GANGSTER) > 0) sd->state.gangsterparadise = 1; if(type&2 && (pc_checkskill(sd,TK_HPTIME) > 0 || pc_checkskill(sd,TK_SPTIME) > 0 )) { sd->state.rest = 1; status_calc_regen(bl, &sd->battle_status, &sd->regen); status_calc_regen_rate(bl, &sd->regen, &sd->sc); } return 0; } static int skill_sit_out (struct block_list *bl, va_list ap) { struct map_session_data *sd; int type = va_arg(ap,int); sd = (struct map_session_data*)bl; if(sd->state.gangsterparadise && type&1) sd->state.gangsterparadise = 0; if(sd->state.rest && type&2) { sd->state.rest = 0; status_calc_regen(bl, &sd->battle_status, &sd->regen); status_calc_regen_rate(bl, &sd->regen, &sd->sc); } return 0; } Each taekwon sit next at mine character. Anyone, can guide me, when will be trigger sd->state.rest And what is it "type&2"? Quote Link to comment Share on other sites More sharing options...
Question
anacondaq
Hi, i'm playing with TK_SPTIME & TK_HPTIME, because both wont working.
I found it here:
Each taekwon sit next at mine character.
Anyone, can guide me, when will be trigger sd->state.rest
And what is it "type&2"?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.