summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-01-05 21:20:19 +0100
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-01-05 21:20:19 +0100
commit18a90784d025b811a25dbdae18db1238f6961a9d (patch)
treed1021c4c1fd7a7f31d44447ecbd466a262a5bf69 /src/map
parentbf99547843038bc15dc1948748d969950e866465 (diff)
downloadhercules-18a90784d025b811a25dbdae18db1238f6961a9d.tar.gz
hercules-18a90784d025b811a25dbdae18db1238f6961a9d.tar.bz2
hercules-18a90784d025b811a25dbdae18db1238f6961a9d.tar.xz
hercules-18a90784d025b811a25dbdae18db1238f6961a9d.zip
Removed nowarp and noreturn mapflag restrictions from warpparty() and warpguild() script commands.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 396d084a3..af6258625 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -6828,21 +6828,17 @@ static BUILDIN(warpparty)
switch( type ) {
case 0: // Random
- if (!map->list[pl_sd->bl.m].flag.nowarp)
- pc->randomwarp(pl_sd, CLR_TELEPORT);
+ pc->randomwarp(pl_sd, CLR_TELEPORT);
break;
case 1: // SavePointAll
- if (!map->list[pl_sd->bl.m].flag.noreturn)
- pc->setpos(pl_sd, pl_sd->status.save_point.map, pl_sd->status.save_point.x, pl_sd->status.save_point.y, CLR_TELEPORT);
+ pc->setpos(pl_sd, pl_sd->status.save_point.map, pl_sd->status.save_point.x, pl_sd->status.save_point.y, CLR_TELEPORT);
break;
case 2: // SavePoint
- if (!map->list[pl_sd->bl.m].flag.noreturn)
- pc->setpos(pl_sd, sd->status.save_point.map, sd->status.save_point.x, sd->status.save_point.y, CLR_TELEPORT);
+ pc->setpos(pl_sd, sd->status.save_point.map, sd->status.save_point.x, sd->status.save_point.y, CLR_TELEPORT);
break;
case 3: // Leader
case 4: // m,x,y
- if (!map->list[pl_sd->bl.m].flag.noreturn && !map->list[pl_sd->bl.m].flag.nowarp)
- pc->setpos(pl_sd, map_index, x, y, CLR_TELEPORT);
+ pc->setpos(pl_sd, map_index, x, y, CLR_TELEPORT);
break;
}
}
@@ -6894,20 +6890,16 @@ static BUILDIN(warpguild)
switch (type)
{
case 0: // Random
- if (!map->list[pl_sd->bl.m].flag.nowarp)
- pc->randomwarp(pl_sd, CLR_TELEPORT);
+ pc->randomwarp(pl_sd, CLR_TELEPORT);
break;
case 1: // SavePointAll
- if (!map->list[pl_sd->bl.m].flag.noreturn)
- pc->setpos(pl_sd, pl_sd->status.save_point.map, pl_sd->status.save_point.x, pl_sd->status.save_point.y, CLR_TELEPORT);
+ pc->setpos(pl_sd, pl_sd->status.save_point.map, pl_sd->status.save_point.x, pl_sd->status.save_point.y, CLR_TELEPORT);
break;
case 2: // SavePoint
- if (!map->list[pl_sd->bl.m].flag.noreturn)
- pc->setpos(pl_sd, sd->status.save_point.map, sd->status.save_point.x, sd->status.save_point.y, CLR_TELEPORT);
+ pc->setpos(pl_sd, sd->status.save_point.map, sd->status.save_point.x, sd->status.save_point.y, CLR_TELEPORT);
break;
case 3: // m,x,y
- if (!map->list[pl_sd->bl.m].flag.noreturn && !map->list[pl_sd->bl.m].flag.nowarp)
- pc->setpos(pl_sd, script->mapindexname2id(st, str), x, y, CLR_TELEPORT);
+ pc->setpos(pl_sd, script->mapindexname2id(st, str), x, y, CLR_TELEPORT);
break;
}
}