Petey Pablo Posted March 7, 2012 Posted March 7, 2012 how to remove this pvp on timer? Thanks!! Quote
Mechomorph XD Posted March 7, 2012 Posted March 7, 2012 I Think You Must Remove Some Code From PC.C, Sorry If I Wrong int pc_calc_pvprank_timer(int tid, unsigned int tick, int id, intptr_t data) { struct map_session_data *sd=NULL; sd=map_id2sd(id); if(sd==NULL) return 0; sd->pvp_timer = INVALID_TIMER; if( pc_calc_pvprank(sd) > 0 ) sd->pvp_timer = add_timer(gettick()+PVP_CALCRANK_INTERVAL,pc_calc_pvprank_timer,id,data); return 0; } Quote
Petey Pablo Posted March 7, 2012 Author Posted March 7, 2012 (edited) Problem solved! src/map/atcommand.c /*========================================== * *------------------------------------------*/ static int atcommand_pvpon_sub(struct block_list *bl,va_list ap) { TBL_PC* sd = (TBL_PC*)bl; if (sd->pvp_timer == INVALID_TIMER) { [color=#ff0000]just add comment here //[/color]sd->pvp_timer = add_timer(gettick() + 200, pc_calc_pvprank_timer, sd->bl.id, 0); sd->pvp_rank = 0; sd->pvp_lastusers = 0; sd->pvp_point = 5; sd->pvp_won = 0; sd->pvp_lost = 0; } return 0; } Topic closed! Edited March 7, 2012 by Emistry Wrap Content Quote
Question
Petey Pablo
how to remove this pvp on timer?
Thanks!!
2 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.