Jump to content
  • 0

High Jump not working in pvp_y_1-2


Question

Posted

How to enable High Jump in that pvp room? (pvp_y_1-2)

I already removed the High Jump in the "skill_nocast_db.txt" But still, High Jump won't work...

14 answers to this question

Recommended Posts

  • 1
Posted

Change this:


            //Fails on noteleport maps, except for GvG and BG maps [Skotlex]
            if( mapdata->flag[MF_NOTELEPORT] &&
                !(mapdata->flag[MF_BATTLEGROUND] || mapdata_flag_gvg2(mapdata) )

 

Into this:

 

            //Fails on noteleport maps, except for GvG and BG maps [Skotlex]
            if( mapdata->flag[MF_BATTLEGROUND] &&
                !(mapdata_flag_gvg2(mapdata))
            ) {

  • Upvote 1
Posted

High Jump is a teleporting skill.

Everymap where you can't use, the wings(Can't remember the name, but is the iten that teleport you on a randon place), tje High Jump won't will work.

  • Upvote 1
Posted

As Nicko said, TK_HIGHJUMP fails on maps with mapflag#noteleport, except for GvG and BG maps.

trunk/src/map/skill.c (around line 6247)

	case TK_HIGHJUMP:
	{
		int x,y, dir = unit_getdir(src);

	  	//Fails on noteleport maps, except for GvG and BG maps [skotlex]
		if( map[src->m].flag.noteleport &&
			!(map[src->m].flag.battleground || map_flag_gvg2(src->m) )
		) {
			x = src->x;
			y = src->y;
		} else {
			x = src->x + dirx[dir]*skilllv*2;
			y = src->y + diry[dir]*skilllv*2;
		}

So options you have are:

  • remove the 'noteleport' mapflag from pvp_y_1-2
  • make pvp_y_1-2 a GvG or BG map
  • edit the source code in skill.c and allow High Jump on maps with noteleport mapflag

Posted

trunk/src/map/skill.c (around line 6250) Find this block:

			//Fails on noteleport maps, except for GvG and BG maps [skotlex]
		if( map[src->m].flag.noteleport &&
			!(map[src->m].flag.battleground || map_flag_gvg2(src->m) )
		) {
			x = src->x;
			y = src->y;
		} else {
			x = src->x + dirx[dir]*skilllv*2;
			y = src->y + diry[dir]*skilllv*2;
		}

and change to:

			//Fails on noteleport maps, except for GvG and BG maps [skotlex]
		x = src->x + dirx[dir]*skilllv*2;
		y = src->y + diry[dir]*skilllv*2;

Save, and recompile.

Now TK_HIGHJUMP will work on all maps, even ones with the 'noteleport' mapflag.

Posted

This is disabled in GvG right? and WoE SE?

High Jump is supposed to work in GvG and BG.

How about just remove map[src->m].flag.noteleport and recompile ?

Then what about the rest?

&& !(map[src->m].flag.battleground || map_flag_gvg2(src->m)

Posted

Then what about the rest?

&& !(map[src->m].flag.battleground || map_flag_gvg2(src->m)

I just have one question the mmajor reason was mapflag noteleport.

So, maybe ty to romove that mapflag should work in pvp map

   case TK_HIGHJUMP:
       {
           int x,y, dir = unit_getdir(src);

             //Fails on noteleport maps, except for GvG and BG maps [skotlex]
           if(!(map[src->m].flag.battleground || map_flag_gvg2(src->m) )
           ) {
               x = src->x;
               y = src->y;
           } else {
               x = src->x + dirx[dir]*skilllv*2;
               y = src->y + diry[dir]*skilllv*2;
           }

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...