Jump to content
  • 0
Sign in to follow this  
stiflerxx

Cell PVP

Question

 
Hi guys, how are you?
I added this diff to my rAthena:
I fixed the bugs because it is a little old and yet instead of it being a CELL PVP it looked like a CELL PK, I need to press shift
or /noshift to be able to attack and the PVP timer does not appear I tried the following commands trying to follow @pvpon but he apply pvp to the entire map.
Apply all PvP on the map:
map_setmapflag(sd->bl.m, MF_PVP, true);
Quote

map.c

int map_pvp_area(struct map_session_data* sd, bool flag){
    switch(flag)
    {
        case 1:
            if (sd->pvp_timer == INVALID_TIMER) {
                map[sd->bl.m].cell_pvpuser++;
                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;
                sd->state.pvp  = 1;
                sd->pvpcan_walkout_tick = gettick();
            }
            clif_map_property(&sd->bl, MAPPROPERTY_FREEPVPZONE, SELF);
            break;
        default:
            clif_pvpset(sd, 0, 0, 2);
            map[sd->bl.m].cell_pvpuser--;

            if( sd->pvp_timer != INVALID_TIMER )
                delete_timer(sd->pvp_timer, pc_calc_pvprank_timer);

            sd->pvp_timer = INVALID_TIMER;
            sd->state.pvp = 0;
            break;
    }

    return 0;
}

 

Does anyone know how to apply pvp to an area or just a player?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
15 hours ago, stiflerxx said:
 
Hi guys, how are you?
I added this diff to my rAthena:
I fixed the bugs because it is a little old and yet instead of it being a CELL PVP it looked like a CELL PK, I need to press shift
or /noshift to be able to attack and the PVP timer does not appear I tried the following commands trying to follow @pvpon but he apply pvp to the entire map.
Apply all PvP on the map:
map_setmapflag(sd->bl.m, MF_PVP, true);

 

Does anyone know how to apply pvp to an area or just a player?

i have the same problem, bump bump bump..

have you fixed it?

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, noobzter003 said:

i have the same problem, bump bump bump..

have you fixed it?

No, i dont have fixed this ;-;

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.   Paste as plain text instead

  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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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