Need some help on a npc

Mu online season 21 - grand opening

Zip

LOMCN Veteran
Veteran
Jan 24, 2004
456
0
43
Belgium
Code:
[@main]
Welcome <$USERNAME>!\
I can teleport you to several\
places to level and also if you\
want a challenge i will teleport\
you to a KingsRoom\.
<Yes Please/@next>\
<Bye/@exit>\

[@next]
please select where you would like to go.\\

<Level 33-45 Leveling Areas/@1-25>\
<Level 45+ Leveling Areas/@26-32>\
<Level 70+ Leveling Areas/@33-38>\
<Level 100+  Leveling Areas/@40ova>\
<Exit/@exit>

[@1-25]
#SAY
I can take you to these places...\\
<BlackDragonDungeon/@Gbo>\
<WT KR/@Gpu>\
<ZT KR/@Gza>\
<MT KR/@Gpo>\
<RME KR/@Gre>\
<LDC/@Gwe>\
<Back/@next>

[@26-32]
#SAY
I can take you to these places...\\
<EvilLair/@evil>\
<Back/@next>

[@33-38]
#SAY
I can take you to these places...\\
<SlaveCaves/@Slavecaves>
<60+ 1/@601> <60+ 2/@602>\
<60+ 3/@603> <60+ 4/@604>\
<60+ 5/@605> <60+ 6/@606>\
<Back/@next>

[@40ova]
#SAY
I can take you to these places...\\
<Wooma`s Hell/@woho>\
<100+ Areas/@more>\
<Back/@next>

[@woho]
#ACT
mapmove M001
give townteleport 1
break

[@Slavecaves]
#IF
checkgold 30000
#ACT
Take gold 30000
mapmove F004 50 50
give dungeonescape 1
break
#ELSEACT
goto @cheat

[@evil]
#IF
checkgold 30000
#ACT
Take gold 30000
mapmove D619 80 69
give dungeonescape 1
break
#ELSEACT
goto @cheat

[@more]
<100+ 1/@101> <100+ 2/@102>\
<Cancel/@exit>\

[@101]
#ACT
mapmove 100-1 44 51
break

[@102]
#ACT
mapmove 100-2 37 65
break

[@601]
#ACT
mapmove 60-1 18 23
break

[@602]
#ACT
mapmove 60-2 40 42
break

[@603]
#ACT
mapmove 60-3 40 42
break

[@604]
#ACT
mapmove 60-4 77 34
break

[@605]
#ACT
mapmove 60-5 29 36
break

[@606]
#ACT
mapmove 60-6 29 36
break

[@Gbo]
#IF
#ACT
map D2001

[@Gpu]
#IF
#ACT
map D024

[@Gza]
#IF
#ACT
mapmove D515 333 268

[@Gpo]
#IF
#ACT
map D2079

[@Gre]
#IF
#ACT
map D10062

[@Gwe]
#IF
#ACT
map D606

[@cheat]
hey, do you think i'm blind!\
Come back when you got enough cash!\

u will see there are links to diff pages for diff lvls, how i make for example lvl 1-25 only for lvls 1-25
 

RichyBe

Dedicated Member
Dedicated Member
Apr 29, 2003
84
0
83
You have to make the NPC check the players levels...

Code:
[@main]
<1-26 Leveling areas/@Level1>\
<27-35 Leveling areas/@Level2>\

[@Level1]
#IF
Checklevel 27
#Say 
Sorry you are to high level to use these leveling areas.\
#Elsesay
Leveling areas for 1-26...

[@Level2]
#IF
checklevel 27
#Act
goto @Level3
#Elsesay
Sorry you are not high enough level for these areas...\

[@level3]
#IF
checklevel 35
#Say
Sorry you are to high level to use these leveling areas...\
#Elsesay
Leveling for 27-35

This is an example of what you'll have to do for the NPC to check the levels of the players. This will only allow the players within the levels of the leveling areas, so people over 35 will not be able to enter leveling areas for 27-35
 

Damian

LOMCN Developer
Developer
Ravagers
Game Master
Jun 13, 2003
1,184
154
290
I'm no NPC guru but here is how I think it's done,
this example would need more code to be fool proof,
but it shows the basics...

[@main]
#IF
checklevel 25
#ACT
map 0
#ELSEACT
got @lvlbelow25

[@lvlbelow25]
#ACT
map 3
 

brimble2010

Dedicated Member
Dedicated Member
Jul 27, 2003
194
0
92
well i think you should do it like this:
(for a lvlin area for say lvl 20-30)

#IF
checklevel 30
#ACT
goto @toohigh
break

#IF
checklevel 20
#SAY
(insert teleport links here)
#ELSESAY
You are too low to level in these areas...