Can you check why this is not working - NPC

Join Discord

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
125
Well this is my latest code for a basic NPC for some reason I cant get him to work, I have tried other methods... Currently it keeps saying do you have the book and you can go yes and get the reward and spam this... Any way so yea, basically simple quest, get an item from a drop (mob drops item) then bring it back and you get reward.

Code:
[@Main]
#IF
checkitem traceysbook
#Say
Do you have my book?\\
<Yes I do/@book>\
<Not yet/@exit>
#ELSEACT
goto @welcome

[@welcome]
#IF
Checknamelist traceyquestc.txt
#act
goto @Tracey
#ELSESAY
Blah blah blah\
Blah Blah\\
<Player Response/@trist>

[@trist]
#If
#ACT
addnamelist traceyquest.txt
#SAY
More blah blah blah\
Blah blah blah\\
<Sounds fair./@exit>\

[@Tracey]
#Say
Take the letter to Blah\
<Ok I will/@Exit>

[@book]
#If 
Checkitem TraceysBook
#Act 
addnamelist traceyquestc.txt
Take TraceysBook
Give TraceysLetter
#SAY
Thank you, take this to Blah.\
<Thank you./@exit>\
#Elsesay
You do not have my book yet
<I will have soon/@exit>\

Such a basic script and its frustrating I cant sort it out my self :/

Any help appreciated.
/2d
 

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
125
Been a while since i've looked at them but...

Take TraceysBook
needs a number to work I think, so try

Take TraceysBook 1
 
Upvote 0

2dope

Golden Oldie
Golden Oldie
Mar 15, 2005
514
13
125
Been a while since i've looked at them but...

Take TraceysBook
needs a number to work I think, so try

Take TraceysBook 1

aaa ok ill try adding the number, it does take the book though but still you can constantly complete the quest even though name is added -.-

Ill try and thanks for your response.
/2d
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
This should work:
Code:
[@main]
#IF
CHECKNAMELIST traceyquestc.txt
#SAY
Take the letter to Blah\
<Ok I will/@Exit>
#ACT
BREAK
#IF
CHECKNAMELIST traceyquest.txt
#ACT
GOTO @checkbook
BREAK
#ELSESAY
Blah blah blah\
Blah Blah\\
<Player Response/@start>

[@start]
#ACT
addnamelist traceyquest.txt
#SAY
More blah blah blah\
Blah blah blah\\
<Sounds fair./@exit>\

[@checkbook]
#IF 
Checkitem TraceysBook 1
#ACT
addnamelist traceyquestc.txt
Take TraceysBook 1
Give TraceysLetter 1
#SAY
Thank you, take this to Blah.\
<Thank you./@exit>
#ELSESAY
You do not have my book yet. \
<I will have soon/@exit>

As far as i can see it was just the order you checked things in.

p
 
Upvote 0