Looking for NPC help please.

Mu online season 21 - grand opening

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
I'm trying to make a NPC Move 2 players to a room but if the room allrdy has 2 players in it then the NPC will move them to a 2nd room.


Its for pet tameing
 

CBA2POT

Dedicated Member
Dedicated Member
Jan 31, 2010
77
0
33
I think to check the amount of people on the map it would be something like this..

#IF
CHECKMAPHUMANCOUNT mapname = 2

So think it would be.. for e.g

#IF
CHECKMAPHUMANCOUNT mapname = 2
#ACT
mapmove tamingroom2 20 20
 
Last edited:
Upvote 0

CBA2POT

Dedicated Member
Dedicated Member
Jan 31, 2010
77
0
33
np, and btw there may be a slight error as i'm not too sure whether its a = or > 1
;)
 
Last edited:
Upvote 0

-Luke-

LOMCN Veteran
Veteran
May 9, 2010
1,508
55
135
< Less than
> Greater than
= Equals

Would be = if you want it to check if there are 2 people on the map? I think wouldnt it ?
 
Upvote 0

CBA2POT

Dedicated Member
Dedicated Member
Jan 31, 2010
77
0
33
Yeah so i guess you could have

#IF
CHECKMAPHUMANCOUNT tamingroom1 > 1
#ACT
mapmove tamingroom2 20 20
#ELSEACT
mapmove tamingroom1 20 20

?
 
Last edited:
Upvote 0

-Luke-

LOMCN Veteran
Veteran
May 9, 2010
1,508
55
135
Wouldnt you have to check tamingroom2 aswell ? like this maybe ?

#IF
CHECKMAPHUMANCOUNT tamingroom1 > 1
#ACT
mapmove tamingroom1 20 20
give TownTeleport 1
#SAY
Welcome to TamingRoom.
#ELSEACT
#IF
CHECKMAPHUMANCOUNT tamingroom2 > 1
#ACT
mapmove tamingroom2 20 20
give TownTeleport 1
#SAY
Welcome to TamingRoom.
#ELSESAY
Both rooms are full try again later.
 
Upvote 0

-Luke-

LOMCN Veteran
Veteran
May 9, 2010
1,508
55
135
Then just copy the way that works with 2 except add 2 more, changing map names ofc.
 
Upvote 0

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
Hi SkunK im using your script but it keep's coming up saying "Both rooms are full try again later"

I tryed adding this but still the same...

#IF
CHECKMAPHUMANCOUNT ShockRoom1 > 0
#ACT
mapmove ShockRoom1 20 20

Iv added the maps to server & cam @GMMOVE to them fine.
 
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
45
Try something like:

#IF
CHECKMAPHUMANCOUNT tamingroom1 > 0
#ACT
goto @taming2
#ELSEACT
mapmove tamingroom1 20 20
give TownTeleport 1
#ELSESAY
Welcome to TamingRoom.

[@taming2]
#IF
CHECKMAPHUMANCOUNT tamingroom2 > 0
#ACT
goto @taming3
#ELSEACT
mapmove tamingroom2 20 20
give TownTeleport 1
#ELSESAY
Welcome to TamingRoom.

[@taming3]
#IF
CHECKMAPHUMANCOUNT tamingroom3 > 0
#ACT
goto @taming4
#ELSEACT
mapmove tamingroom3 20 20
give TownTeleport 1
#ELSESAY
Welcome to TamingRoom.

[@taming4]
#IF
CHECKMAPHUMANCOUNT tamingroom4 > 0
#ACT
goto @full
#ELSEACT
mapmove tamingroom4 20 20
give TownTeleport 1
#ELSESAY
Welcome to TamingRoom.

[@full]
#SAY
All rooms are full try again later.
 
Upvote 0

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
125
Nice script boothy but i profer it shoutin out then sending it in a box :P but thats my opinion xD
 
Upvote 0