nelsontyh Posted February 2, 2012 Posted February 2, 2012 I was told that disabling the auto warp in PvP maps after being killed twice is a source modification. I've been going through the source files and I can't seem to find anything for it. Any help on modifying this? Quote
Aleos Posted February 3, 2012 Posted February 3, 2012 src/map/pc.c // pvp // disable certain pvp functions on pk_mode [Valaris] if( map[sd->bl.m].flag.pvp && !battle_config.pk_mode && !map[sd->bl.m].flag.pvp_nocalcrank ) { sd->pvp_point -= 5; sd->pvp_lost++; if( src && src->type == BL_PC ) { struct map_session_data *ssd = (struct map_session_data *)src; ssd->pvp_point++; ssd->pvp_won++; } // if( sd->pvp_point < 0 ) // { // add_timer(tick+1000, pc_respawn_timer,sd->bl.id,0); // return 1|8; // } } You're going to want to comment that out and it will stop people from warping out when they die. 1 Quote
nelsontyh Posted February 3, 2012 Author Posted February 3, 2012 Ah cheers, thanks very much! It's working now. Quote
Emistry Posted February 3, 2012 Posted February 3, 2012 beside.....you can also edit like this remove this line sd->pvp_point -= 5; Quote
Question
nelsontyh
I was told that disabling the auto warp in PvP maps after being killed twice is a source modification.
I've been going through the source files and I can't seem to find anything for it.
Any help on modifying this?
3 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.