Jump to content
  • 0
Sign in to follow this  
Lord Ganja

Enabling HighJump on noteleport mapflag

Question

Since highjump fails on noteleport map, is it possible to enable use of highjump on a specific map with noteleport mapflag?

 

Example.

The pvp room in my server has noteleport mapflag since I don't want my players to use teleport inside the pvp room. But I wanted highjump to be enabled inside the pvp room..

 

 

From skill.c under case TK_HIGHJUMP:

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

 

How do I add an exemption map with noteleport mapflag without removing the line 'map->list[src->m].flag.noteleport'?

 

 

I was thinking about adding something like this

 map->list[src->m].name == "pvp_room" || map->list[src->m].name == "pvp_room1"

 

So "pvp_room" & "pvp_room1" map has noteleport mapflag, highjump can still be used inside.

 

Thanks in advance!

Edited by Lord Ganja

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

 

if( strcmp(map->list[src->m].name,"pvp_room") != 0 && map->list[src->m].flag.noteleport && !(map->list[src->m].flag.battleground || map_flag_gvg2(src->m)) ) {

Thanks man!  :no1:

Edited by Lord Ganja

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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