[2.3] Scripting check

crstal

Dedicated Member
Dedicated Member
Sep 4, 2011
19
0
27
could someone check to see if i have done this right please as i have no way of checking, ta..

NPC 1

[@main]
#if
checklevel < 35
#elsesay
You are not the correct level \
\
<Ok/@exit>
#say
Welcome to the world of mir, I can help you out \
by giving you a quest to do for a new weapon if \
you wouldn't mind meeting a few people for me and \
collecting some stuff? At the end my friend will \
reward you with an item \ \
\
<Accept Quest/@quest> \
\
<No Thanks/@exit> \ \


[@quest]
#act
set [001] 1
#say
Please visit the man in pranja island potionshop\
for your next piece of information. \ \
\
<Okay, I'll get back to you as soon as possible/@exit>




NPC 2

[@main]
#if
check [001] 1
#elsesay
I don't know you very well, be gone !! \ \


<Fine../@exit>
#say
You must be <$USERNAME>, Aha, first of all \
I will need you to collect me 10 pieces of \
meat.. \ \


<I have the meat !!/@meat>
\
<Okay, i'll go and search for it/@exit>


[@meat]
#if
check meat 10
#elsesay
You do not have the items i asked for \ \
\
<Okay, ill get them/@exit>
#say
Well done, want to find out your next \
person to go to??
<Yeah go on/@person>


[@person]
#say
You will need to go to the weapon shop in \
Monchong Province \ \
<Okay i'll get on it!/@flagz>


[@flagz]
#act
set [002] 1
CLOSE


NPC 3

[@main]
#if
check [002] 1
#elsesay
I don't know you very well, be gone !! \ \


<Fine../@exit> \ \
#say
Hello, my friend has told me about your \
quest <$USERNAME>, I guess you are here \
to collect you reward? \ \


<Yes please/@reward>
\
<Nope, just fancied a chat/@exit>


[@reward]
give questsword 1
CLOSE


greatly appreciated thanks
 

Dany97

LOMCN Veteran
Veteran
Aug 28, 2009
650
4
105
Timisoara
[@main]
#IF
checklevelex < 35
#SAY
Welcome to the world of mir, I can help you out \
by giving you a quest to do for a new weapon if \
you wouldn't mind meeting a few people for me and \
collecting some stuff? At the end my friend will \
reward you with an item \ \
\
<Accept Quest/@quest> \
\
<No Thanks/@exit> \ \

#ELSESAY
You are not the correct level \
\
<Ok/@exit>


[@quest]
#act
set [001] 1
#say
Please visit the man in pranja island potionshop\
for your next piece of information. \ \
\
<Okay, I'll get back to you as soon as possible/@exit>




NPC 2

[@main]
#IF
check [001] 1
#SAY
You must be <$USERNAME>, Aha, first of all \
I will need you to collect me 10 pieces of \
meat.. \ \


<I have the meat !!/@meat>
\
<Okay, i'll go and search for it/@exit>
#ELSESAY
I don't know you very well, be gone !! \ \


<Fine../@exit>



[@meat]
#IF
checkitem meat 10
#SAY
Well done, want to find out your next \
person to go to??
<Yeah go on/@person>

#ELSESAY
You do not have the items i asked for \ \
\
<Okay, ill get them/@exit>


[@person]
#say
You will need to go to the weapon shop in \
Monchong Province \ \
<Okay i'll get on it!/@flagz>


[@flagz]
#act
set [002] 1
CLOSE


NPC 3

[@main]
#if
check [002] 1
#say
Hello, my friend has told me about your \
quest <$USERNAME>, I guess you are here \
to collect you reward? \ \


<Yes please/@reward>
\
<Nope, just fancied a chat/@exit>

#elsesay
I don't know you very well, be gone !! \ \


<Fine../@exit> \ \


[@reward]
#IF
#ACT
give questsword 1
CLOSE
 
Last edited:
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
You can always check ingame if the script is working or not which is the best way and only way to be sure a script works correctly as everyone makes mistakes now and again, so to say theres no way of checking is a bit lame.
 
Upvote 0