Level Dependant Teleport Npc?

chikwidik

Dedicated Member
Dedicated Member
Jun 20, 2003
23
0
77
Hello Guys Been a while since i posted, Im looking for an npc script for a cave teleport that will only teleport people of a certain level! let me explain i want to have 3 Leveling Cave s and wish to allow only people between certain levels in each cave...

i.e. First cave to allow people from say lvl 16-25
Second Cave to allow people from 25-35
And third cave to allow people 35- Whatever level

how do i restrict people from getting into the cave that do not fall into this criteria?

If anyone has a script for this i would appreciate it if you would share as ive been trying to get it sorted for over a week now and its starting to do my head in a little......

Thanx in advance!!!!
 

Forbes

Dedicated Member
Dedicated Member
May 4, 2003
114
0
92
Bonnie Scotland
[@Main]
#IF
checklevel 16
#ACT
goto @check2
#ELSEACT
break
#ELSESAY
Sorry you are too low too enter this area.\
Please come back when you reach level 16.\
<Exit/@exit>

[@Check2]
#IF
checklevel 27
#ACT
break
#SAY
Sorry you are too high to enter this area.\
This area is for people of levels 16-25.\
<Exit/@exit>
#ELSEACT
goto @legible

[@legible]
#SAY
Hey welcome, i am now teleporting you to (cavename)
#ACT
give townteleport 1
mapmove (mapnumber)
break

----------------------------------End of script --------------------------

Typed that up just now not sure if it will work bit rusty since ive been away but i cant see any errors just enter your mapnumber and mapname and change the levels for the other cave scripts
 
Last edited:

kazzer

Dedicated Member
Dedicated Member
Apr 8, 2004
26
0
27
Doorstep
Forbes said:
[@Main]
#IF
checklevel 16
#ACT
goto @check2
#ELSEACT
break
#ELSESAY
Sorry you are too low too enter this area.\
Please come back when you reach level 16.\
<Exit/@exit>

[@Check2]
#IF
checklevel 27
#ACT
break
#SAY
Sorry you are too high to enter this area.\
This area is for people of levels 16-25.\
<Exit/@exit>
#ELSEACT
goto @legible

[@legible]
#SAY
Hey welcome, i am now teleporting you to (cavename)
#ACT
give townteleport 1
mapmove (mapnumber)
break

----------------------------------End of script --------------------------

yea tht shud work
 

chikwidik

Dedicated Member
Dedicated Member
Jun 20, 2003
23
0
77
Hey guys this is the part of my npc script that aint working can someone take a look and see if you can tell me whats wrong with it plz....

The First teleport works (for cave1) but the others dont seem to work???

[@ocmove]
#IF
checklevel 16
#ACT
goto @check1
#ELSEACT
break
#ELSESAY
Sorry you are too low to enter this area.\
Please come back when you reach level 16.\\
<Exit/@exit>

[@Check1]
#IF
checklevel 25
#ACT
break
#ELSESAY
Sorry you are too high to enter this area.\
This area is for people of levels 16-24.\\
<Exit/@exit>
#ELSEACT
goto @legible1

[@legible1]
#SAY
Hey welcome, i am now teleporting you to\
Leveling Cave 1\
#IF
CheckGold 1000
#ACT
Take Gold 1000
give townteleport 1
mapmove D001
break
#ELSESAY
You don't have enough gold to use my service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>

[@bmmove]
#IF
checklevel 25
#ACT
goto @check2
#ELSEACT
break
#ELSESAY
Sorry you are too low to enter this area.\
Please come back when you reach level 25.\\
<Exit/@exit>

[@Check2]
#IF
checklevel 35
#ACT
break
#ELSESAY
Sorry you are too high to enter this area.\
This area is for people of levels 25-34.\\
<Exit/@exit>
#ELSEACT
goto @legible2

[@legible2]
#SAY
Hey welcome, i am now teleporting you to\
Leveling Cave 2\
#IF
CheckGold 1000
#ACT
Take Gold 1000
give townteleport 1
mapmove D401
break
#ELSESAY
You don't have enough gold to use my service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>

[@svmove]
#IF
checklevel 35
#ACT
goto @check3
#ELSEACT
break
#ELSESAY
Sorry you are too low to enter this area.\
Please come back when you reach level 35.\\
<Exit/@exit>

[@Check3]
#IF
checklevel 100
#ACT
break
#ELSESAY
Sorry you are too high to enter this area.\
This area is for people of levels 25-35.\\
<Exit/@exit>
#ELSEACT
goto @legible3

[@legible3]
#SAY
Hey welcome, i am now teleporting you to\
Leveling Cave 3\
#IF
CheckGold 1000
#ACT
Take Gold 1000
give townteleport 1
mapmove D401
break
#ELSESAY
You don't have enough gold to use my service!\
Be gone, don't waste my time again!\ \
<Exit/@exit>
 

Blaminator

VIP
Golden Oldie
Loyal Member
Jul 11, 2003
2,731
0
173
London
ok, i know people have posted stuff, ill dumb it down (no offence)

to make it level dependant do this ;

#IF
checklevel 20
#ACT
mapmove blah blah blah
break
#ELSESAY
Sorry, you need to be level 20+ for this.\ \

<Exit/@exit>
 

Pete107

🐑[E]dens-[E]lite🐑
Developer
Dec 10, 2003
2,905
395
355
Todmorden, West Yorkshire
Blaminator said:
ok, i know people have posted stuff, ill dumb it down (no offence)

to make it level dependant do this ;

#IF
checklevel 20
#ACT
mapmove blah blah blah
break
#ELSESAY
Sorry, you need to be level 20+ for this.\ \

<Exit/@exit>

been along time since i done npcs but isnt there a way to put like
checklevel 20
checklevel 21
somat liek that to stop people going in to much of an easyer place for them
 

chikwidik

Dedicated Member
Dedicated Member
Jun 20, 2003
23
0
77
Ideally id like to only let people in that are between the specified level i.e. if someone wants to go to a cave that is say level 16-25 but they are level 30 say then it wont let them in and also if they are level 14 it wont let them in either. I know how to stop people that are under a certain level its the other side that i aint sure about.

Thanx ppl.....Xaviana
 
Last edited:

Pete107

🐑[E]dens-[E]lite🐑
Developer
Dec 10, 2003
2,905
395
355
Todmorden, West Yorkshire
chikwidik said:
Ideally id like to only let people in that are between the specified level i.e. if someone wants to go to a cave that is say level 16-25 but they are level 30 say then it wont let them in and also if they are level 14 it wont let them in either. I know how to stop people that are under a certain level its the other side that i aint sure about.

Thanx ppl.....Xaviana

same here if you read my post lol