[help] with map

Desolation Mir2 (Med Rate Server)

Lucafer

LOMCN Veteran
Veteran
May 15, 2008
419
1
45
Newbury,Berks
how wud i make a map so wen the person teles in the mobs spawn and wen they get recalled out of the map all the rest of the mobs die
 

evildan

LOMCN Veteran
Veteran
Aug 8, 2004
310
3
45
Dartford/Kent
#IF
CHECKMONG (MAP Name) (Mob Amount) i aint sure on this command
#ACT
CLEARMON (MAP name)
mapmove (Map)
MONGEN (MAP name) Mob name (Amount of mobs)
#ELSEACT
mapmove (MapName)
MONGEN (MAP name Mob name (Amount of mobs)

So if you wana tele there and theres mobs allready in there, that would kill all mobs and re-spawn them before you got in.

And as for making them die when you tele out.. Erm
must be a check map command, take a look in IF ACT statement that come with td's files.
 
Upvote 0

TravisW

LOMCN Veteran
Veteran
Sep 4, 2007
737
17
105
For only one person on map at a time.

[@main]
Hello there, wanna go to my cave?\
<Yes/@next>\
<Nevermind/@exit>

[@next]
#IF
CHECKMAPHUMANCOUNT mapname = 0
#ACT
CLEARMAPMON mapname <--clears old mobs
MONGENEX mapname co-ordX co-ordY mobname range count
Mapmove mapname co-ordX co-ordY
Give Townteleport 1
break
#ELSEACT
goto @no

[@no]
There is already someone fighting there, check\
back later please.\
<Close/@exit>
 
Last edited:
Upvote 0

evildan

LOMCN Veteran
Veteran
Aug 8, 2004
310
3
45
Dartford/Kent
For only one person on map at a time.

[@main]
Hello there, wanna go to my cave?\
<Yes/@next>\
<Nevermind/@exit>

[@next]
#IF
CHECKMAPHUMANCOUNT mapname = 0
#ACT
CLEARMAPMON mapname <--clears old mobs
MONGENEX mapname co-ordX co-ordY mobname range count
Mapmove mapname co-ordX co-ordY
Give Townteleport 1
break
#ELSEACT
goto @no

[@no]
There is already someone fighting there, check\
back later please.\
<Close/@exit>


Knew it was summit like this :P
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,357
56
335
England
Code:
[@next]
#IF
CHECKMAPHUMANCOUNT mapname = 0
#ACT
CLEARMAPMON mapname <--clears old mobs
MONGENEX mapname co-ordX co-ordY mobname range count
Mapmove mapname co-ordX co-ordY
Give Townteleport 1
break
#ELSEACT
goto @no

[@no]
There is already someone fighting there, check\
back later please.\
<Close/@exit>

Sorry to be a pain but why not use ELSESAY here? :P

Code:
[@next]
 #IF
 CHECKMAPHUMANCOUNT mapname = 0
 #ACT
 CLEARMAPMON mapname <--clears old mobs
 MONGENEX mapname co-ordX co-ordY mobname range count
 Mapmove mapname co-ordX co-ordY
 Give Townteleport 1
 break
 #ELSESAY
There is already someone fighting there, check\
 back later please.\
 <Close/@exit>
 
Upvote 0

Lucafer

LOMCN Veteran
Veteran
May 15, 2008
419
1
45
Newbury,Berks
Code:
[@next]
 #IF
 CHECKMAPHUMANCOUNT mapname = 0
 #ACT
 CLEARMAPMON mapname <--clears old mobs
 MONGENEX mapname co-ordX co-ordY mobname range count
 Mapmove mapname co-ordX co-ordY
 Give Townteleport 1
 break
 #ELSESAY
There is already someone fighting there, check\
 back later please.\
 <Close/@exit>

lol good point :P
 
Upvote 0

TravisW

LOMCN Veteran
Veteran
Sep 4, 2007
737
17
105
Code:
[@next]
#IF
CHECKMAPHUMANCOUNT mapname = 0
#ACT
CLEARMAPMON mapname <--clears old mobs
MONGENEX mapname co-ordX co-ordY mobname range count
Mapmove mapname co-ordX co-ordY
Give Townteleport 1
break
#ELSEACT
goto @no
 
[@no]
There is already someone fighting there, check\
back later please.\
<Close/@exit>

Sorry to be a pain but why not use ELSESAY here? :P

Code:
[@next]
 #IF
 CHECKMAPHUMANCOUNT mapname = 0
 #ACT
 CLEARMAPMON mapname <--clears old mobs
 MONGENEX mapname co-ordX co-ordY mobname range count
 Mapmove mapname co-ordX co-ordY
 Give Townteleport 1
 break
 #ELSESAY
There is already someone fighting there, check\
 back later please.\
 <Close/@exit>

Cuz most of the time when I use an #ACT command followed by #ELSESAY it doesn't work properly. So now I always do it that way.
If I use #SAY then #ELSESAY it works fine.
If I use #ACT then #ELSEACT, works fine.
 
Last edited:
Upvote 0