From 050f7d33c4e4c849e8c4bc2f37a982d8a93811b8 Mon Sep 17 00:00:00 2001 From: valaris Date: Sat, 20 Nov 2004 17:04:06 +0000 Subject: * Added "nogo" mapflag to prevent the use of @go on a specified map. [Valaris] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@273 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 2739a5cf8..265180932 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2740,6 +2740,11 @@ int atcommand_go( char output[200]; int m; + if(map[sd->bl.m].flag.nogo) { + clif_displaymessage(sd->fd,"You can not use @go on this map."); + return 0; + } + struct { char map[16]; int x, y; } data[] = { { "prontera.gat", 156, 191 }, // 0=Prontera { "morocc.gat", 156, 93 }, // 1=Morroc -- cgit v1.2.3-70-g09d2