Jump to content
  • 0

Cell PVP


stiflerxx

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  01/17/14
  • Last Seen:  

 
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?
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  109
  • Reputation:   5
  • Joined:  03/17/16
  • Last Seen:  

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?
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  01/17/14
  • Last Seen:  

8 hours ago, noobzter003 said:

i have the same problem, bump bump bump..


have you fixed it?

No, i dont have fixed this ;-;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  06/28/20
  • Last Seen:  

On 6/29/2020 at 4:30 AM, stiflerxx said:

No, i dont have fixed this ;-;

Hi were you able to fix this? I'm having the same issue. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

for /ns or shift and pvp area. you need to check clif.cpp. it can fix your problem

Edited by BeWan
Link to comment
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.

×
×
  • Create New...