Multiple Quest Npc help

TheMightyOne

Golden Oldie
Golden Oldie
Jun 14, 2004
722
3
104
UnitedKingdom
I'm trying to find a base script to work from so i can produce my own multiple quest npc.

What I want to do is have a Quest npc that when you have completed the first quest, it recognizes that, give you your prize and then allows you access to the next quest, and then sets a flag so that when you click it again you don't start from the beginning. it knows which quest you are on.

Just as a very basic idea say the quest npc, firstly wants you to go and bring him back a scroll, when you do, it takes it from you, gives you your next bit of information to go and bring back a sword, but before you have the sword you click the npc and it says why come to me when you don't have the sword?

That's nothing what i will be doing but i could work from something like that lol.

Thanks.

/TMO
 

iJam

To the rhythm
VIP
Oct 8, 2007
1,526
105
240
London
[@Main]
#IF
Check [100] 0
#ACT
Goto @Quest1
#IF
Check [100] 1
#ACT
Goto @Quest2
#IF
Check [101] 1
#ACT
Goto @Quest3
#IF
Check [102] 1
#ACT
Goto @Quest4
#IF
Check [103] 1
#ACT
Goto @Quest5
#IF
Check [104] 1
#ACT
Goto @Quest6
#IF
Check [105] 1
#ACT
GOTO @Quest7
#IF
Check [108] 1


am sure u can work out wat to do with tht
 
Last edited:
Upvote 0

boothy

LOMCN Veteran
Veteran
Mar 23, 2007
458
12
45
[@main]
#IF
check [200] 0
#ACT
goto @quest1
#IF
check [200] 1
#ACT
goto @quest2
#IF
check [201] 1
#ACT
goto @quest3
#IF
check [202] 1
#ACT
goto @quest4
#IF
check [203] 1
#ACT
goto @quest5
#IF
check [204] 1
#ACT
Goto @quest6
#IF
check [205] 1
#ACT
GOTO @quest7

[@quest1]
#IF
check [100] 1
#ACT
goto @done
#ELSEACT
goto @q1

[@q1]
Hello <$USERNAME>, my names Mike.\
Here you can get a series of quests, as you progess\
the quests get harder.\
Do you want to accept your first quest?\ \
<Yes please./@yes> <No thanks, maybe later./@exit>

[@yes]
Great, for this quest i need you to bring me a\
scroll found from the monsters lurking around Bichon.\
This scroll may take a while to get, the monsters are very\
protective of it.\
Do you accept my quest <$USERNAME>?\ \
<Yes, of course./@thanks> <No, get them yourself./@exit>

[@thanks]
Great, come back when you have the scroll.\ \
<Okay./@exit>
#ACT
set [100] 1

[@done]
Do you have the scroll yet <$USERNAME>??\ \
<Yes./@check> <No, not yet./@exit>

[@check]
#IF
checkitem Scroll 1
#ACT
take Scroll 1
give Item 1
set [200] 1
#SAY
There you go. Talk to me again for another\
quest!!\ \
<Thanks/@exit>

[@quest2]
#IF
check [101] 1
#ACT
goto @done1
#ELSEACT
goto @q2

[@q2]
Hello again <$USERNAME>, have you come back\
for another challenge?\ \
<Yes./@yes1> <Nope, maybe another time./@exit>

[@yes1]
Great. This time i need you to bring me a sword,\
it will not be easy but you can do it i believe in you!\
The monster deep within WoomaTemple has this sword and i\
want you to slay him and take it!\
Get his sword and bring it back to me and you will be rewarded.\
Do you accept my quest <$USERNAME>?\ \
<Yes./@thanks1> <No!/@exit>

[@thanks1]
Great, come back when you have it.\ \
<Okay./@exit>
#ACT
set [101] 1

[@done1]
Do you have the sword yet <$USERNAME>??\ \
<Yes./@check1> <No, not yet./@exit>

[@check1]
#IF
checkitem Sword 1
#ACT
Take Sword 1
give Item
set [201] 1
#SAY
There you go. Talk to me again for another\
quest!!\ \
<Thanks/@exit>
#ELSESAY
Don't lie, you do not have it...\ \
<Sorry/@exit>

[@quest3]
Currently being edited...\ \
<Okay/@exit>
 
Last edited:
Upvote 0

TheMightyOne

Golden Oldie
Golden Oldie
Jun 14, 2004
722
3
104
UnitedKingdom
[@main]
#IF
check [200] 0
#ACT
goto @quest1
#IF
check [200] 1
#ACT
goto @quest2
#IF
check [201] 1
#ACT
goto @quest3
#IF
check [202] 1
#ACT
goto @quest4
#IF
check [203] 1
#ACT
goto @quest5
#IF
check [204] 1
#ACT
Goto @quest6
#IF
check [205] 1
#ACT
GOTO @quest7

[@quest1]
#IF
check [100] 1
#ACT
goto @done
#ELSEACT
goto @q1

[@q1]
Hello <$USERNAME>, my names Mike.\
Here you can get a series of quests, as you progess\
the quests get harder.\
Do you want to accept your first quest?\ \
<Yes please./@yes> <No thanks, maybe later./@exit>

[@yes]
Great, for this quest i need you to bring me a\
scroll found from the monsters lurking around Bichon.\
This scroll may take a while to get, the monsters are very\
protective of it.\
Do you accept my quest <$USERNAME>?\ \
<Yes, of course./@thanks> <No, get them yourself./@exit>

[@thanks]
Great, come back when you have the scroll.\ \
<Okay./@exit>
#ACT
set [100] 1

[@done]
Do you have the scroll yet <$USERNAME>??\ \
<Yes./@check> <No, not yet./@exit>

[@check]
#IF
checkitem Scroll 1
#ACT
take Scroll 1
give Item 1
set [200] 1
#SAY
There you go. Talk to me again for another\
quest!!\ \
<Thanks/@exit>

[@quest2]
#IF
check [101] 1
#ACT
goto @done1
#ELSEACT
goto @q2

[@q2]
Hello again <$USERNAME>, have you come back\
for another challenge?\ \
<Yes./@yes1> <Nope, maybe another time./@exit>

[@yes1]
Great. This time i need you to bring me a sword,\
it will not be easy but you can do it i believe in you!\
The monster deep within WoomaTemple has this sword and i\
want you to slay him and take it!\
Get his sword and bring it back to me and you will be rewarded.\
Do you accept my quest <$USERNAME>?\ \
<Yes./@thanks1> <No!/@exit>

[@thanks1]
Great, come back when you have it.\ \
<Okay./@exit>
#ACT
set [101] 1

[@done1]
Do you have the sword yet <$USERNAME>??\ \
<Yes./@check1> <No, not yet./@exit>

[@check1]
#IF
checkitem Sword 1
#ACT
Take Sword 1
give Item
set [201] 1
#SAY
There you go. Talk to me again for another\
quest!!\ \
<Thanks/@exit>
#ELSESAY
Don't lie, you do not have it...\ \
<Sorry/@exit>

[@quest3]
Currently being edited...\ \
<Okay/@exit>

Nice one buddy. Just what i was after. just tested it also and works a treat. Now time to play with it :)

Thanks again. and to you ijam, that was also helpful as i didn't really know how to start it off.
 
Upvote 0