[2.3] is this right??

smoochy boys on tour

warblade

Dedicated Member
Dedicated Member
Sep 10, 2011
96
1
35
[@main]
#IF
CHECKLEVEL 26
#ACT
goto @playerhere
break
#ELSESAY
#(*You Want To Level High but most caves are too hard But u will level fast here*)\


[@playerhere]
#IF
checkplayernearby
#ACT
goto @checklevel
break
#ELSESAY
(*U are too high to enter Sorry*)\


[@checklevel]
#IF
checklevel 26
#SAY
(*you may pass u are the correctlevel*)\
<Pass/@pass <Do Not Pass\@Exit
#ELSESAY
(*You must be below level 26 to pass here*)\




[@pass]
#IF
Checklevel 26
#ACT
MapMove StarterCave



??? plz
 
Last edited:

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,868
63
155
Norwich
Slighlty over complicated it.
Heres one you can use

[@Main]
#IF
CHECKLEVEL 26
#ACT
GOTO @LVL26
#ELSESAY
Sorry <$USERNAME>, You need to be level 26 to use\
my services!

[@LVL26]
#IF
CHECKPLAYERNEARBY
#SAY
Hello there <$USERNAME>, I see that you are above level 26 now.\
How would you like to enter the Starter Cave?\ \

Oh <Yes Please!/@yes>\
<No thank you!/@exit>\

[@yes]
#ACT
MAPMOVE X(mapname) Y(coords 1) Z(coords 2)
GIVE TownTeleport 1
SENDLINEMSG "You have entered the Starter Cave. You have received a free Town Teleport."
break

Kind Regards
Aaron
 
Last edited:
Upvote 0

warblade

Dedicated Member
Dedicated Member
Sep 10, 2011
96
1
35
ta

---------- Post Merged at 02:03 AM ---------- Previous Post was at 02:02 AM ----------

will this tele any 1 below level 26 or just 26 ? i want it so its lower then 26
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,868
63
155
Norwich
Oh under 26 you want it

Just change a few of the words
and change the command to

#IF
CHECKLEVEL < 26
 
Upvote 0

SabreMir

Dedicated Member
Dedicated Member
Jul 21, 2012
114
2
45
cheers for the help tom but now getting errors in thee m2server :/


[24/07/2012 02:28:06] Quest problem: CHECKPLAYERNEARBY Row:25 Filename: .\Envir\Npc_def\Helper-0.txt
[24/07/2012 02:28:06] Quest problem: SENDLINEMSG "You have entered the Starter Cave. You have received a free Town Teleport." Row:37 FileName: .\Envir\Npc_def\Helper-0.txt

any ideas ?

am rathernew @ npc scripting

but the help is most appreciated :)

---------- Post Merged at 02:47 AM ---------- Previous Post was at 02:30 AM ----------

have fixed part of it now just getting a error for CheckPlayerNearby part is this command wrong? if so whats correct command?

---------- Post Merged at 03:02 AM ---------- Previous Post was at 02:30 AM ----------

have edited Script to try fix Errors, not getting no errors now but it teles any lvl in and also dont get a msg about recieving a free TT :/

heres script :

[@Main]
#IF
CHECKLEVEL < 27
#ACT
GOTO @LVL26


#ELSESAY
Sorry <$USERNAME>, You need to be level 26 or below\
to use my services!




[@LVL26]
#SAY
Hello there <$USERNAME>, I see that you are below level 27.\
How would you like to enter the Starter Cave?\ \


Oh <Yes Please!/@yes>\
<No thank you!/@exit>\


[@yes]
#ACT
MAP StarterCave
GIVE TownTeleport 1
LINEMSG "You have entered the Starter Cave. You have received a free Town Teleport."
break
 
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
65
[@Main]
#IF
CHECKLEVELEX < 27
#ACT
GOTO @LVL26
#ELSESAY
Sorry <$USERNAME>, you need to be level 26 or below\
to use my services!\ \
<Leave/@exit>

[@LVL26]
#SAY
Hello there <$USERNAME>, I see that you are below level 27.\
How would you like to enter the Starter Cave?\ \

Oh <Yes Please!/@yes>\
<No thank you!/@exit>\

[@yes]
#ACT
MAP StarterCave
GIVE TownTeleport 1
SENDMSG 6 "You have entered the Starter Cave. You have received a free Town Teleport."
break
 
Upvote 0