Is it possible for an npc to check if your on a certain map?

Play Now

MentaL

Jev For Admín!
VIP
Mar 3, 2004
3,843
552
385
Cardiff
Is it possible for an npc to check if your on a certain map like?


[@main]
#IF
map 0
#ACT
goto @bichon
#ELSEACT
goto @wrongmap
 

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
been years since ive done npcs in mir2. but is it not just

#IF
checkmap 0
#SAY
you are on map 0



ignore me probably. im usually wrong.
 
Upvote 0

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
173
checkhummap checks how much people are on a map... im not actualy sure if there is a command mental :/
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
thers a way around everything. you just have to think.

ive found how to lock doors when someone uses a key. not letting you in OR out. something which noone thought was possible.
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
im prity sure only mystikal had doors which locked from the outside.
 
Upvote 0

MrSam

Dedicated Member
Dedicated Member
May 31, 2005
171
0
42
Farril said:
thers a way around everything. you just have to think.

ive found how to lock doors when someone uses a key. not letting you in OR out. something which noone thought was possible.

I can guess how it's done. :)

(At least, I know how I would do it.)
 
Upvote 0

DeathWish

LOMCN VIP
VIP
Oct 29, 2003
1,269
2
265
death server had it as well its easy tbh


oh and btw mental why u keep postin about how u need help in the chat section ? :crazy2: and mods why aint u moving it :eek:
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,288
520
im giving it to turbo for his mir3 server, and id rather every server not have the use of it. kinda takes the point of out an original idea.
 
Upvote 0

DeathWish

LOMCN VIP
VIP
Oct 29, 2003
1,269
2
265
lol i was talking about houses with keys tbh :P

usually u dont check the map number of a player by npc... cuz then it wud obv be the same map the npc is on :|
 
Upvote 0

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
DeathWish said:
usually u dont check the map number of a player by npc... cuz then it wud obv be the same map the npc is on :|

Exactly what I was thinking... The only way you can be on a different map from the active NPC is if you open the script (as in talking to the NPC) then use a teleport (through an item or recall)

Only thing I can guess at that you're thinknig is an NPC script that loads up via the qfunction or some other tool (as in like the @login thing that people set up).
 
Last edited:
Upvote 0

DeathWish

LOMCN VIP
VIP
Oct 29, 2003
1,269
2
265
or to do npc stuff without a npc.... mapquest and if u use mapquest then it only works for the map u set it on, so its obvious what map they are on
 
Upvote 0