Jump to content
  • 0

High Jump not working in pvp_y_1-2


WhatFT

Question


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

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...

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   6
  • Joined:  10/12/15
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

did you use @reloadskilldb?

maybe you forgot haha..:-)

Edited by Mr BrycE
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   1
  • Joined:  05/19/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

How to enable it? I already removed them in the skill_nocast_db.txt and still nothing happen

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  382
  • Reputation:   38
  • Joined:  01/17/12
  • Last Seen:  

I think it's hardcoded.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Aw ! I don't know how to configure src files... =/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Since you really don't know source codes, you're better off removing the mapflag.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

What will I change or edit in the skill.c? I try to check..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

This is disabled in GvG right? and WoE SE?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

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

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

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;
           }

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...