Petey Pablo Posted March 7, 2012 Group: Members Topic Count: 152 Topics Per Day: 0.03 Content Count: 569 Reputation: 11 Joined: 11/24/11 Last Seen: March 7, 2022 Share Posted March 7, 2012 how to remove this pvp on timer? Thanks!! Quote Link to comment Share on other sites More sharing options...
Mechomorph XD Posted March 7, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 71 Reputation: 1 Joined: 03/06/12 Last Seen: January 22, 2021 Share 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 Link to comment Share on other sites More sharing options...
Petey Pablo Posted March 7, 2012 Group: Members Topic Count: 152 Topics Per Day: 0.03 Content Count: 569 Reputation: 11 Joined: 11/24/11 Last Seen: March 7, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
Question
Petey Pablo
how to remove this pvp on timer?
Thanks!!
Link to comment
Share on other sites
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.