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)) ) {
Edited by Gerz

Share this post


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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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