Enabling HighJump on noteleport mapflag

Lord Ganja

New member
Messages
161
Points
0
Age
34
Location
Ganja World
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!

 
Last edited by a moderator:
Code:
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)) ) {
 
Last edited by a moderator:
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! 
default_no1.gif


 
Last edited by a moderator:
Back
Top