Quest Script Help

Play Now

^G0trex

Golden Oldie
Golden Oldie
Nov 7, 2003
1,946
28
135
Bham
Hi not sure how to explain this or how much information you need, but here goes...

I'm making a quest and it's at a part where the quest giver (we'll call it npc1) needs to send the player to another npc for the next part of the quest (we'll call it npc2).

npc2 is also a quest giver for another quest, so I've put in the relevant CHECKS etc. for that quest, but I obviously need it to check for the quest flag from the npc1 quest as well...

That's the part I'm not sure how to do... do I need to put in an ELSEACT or something somewhere in order to set up another IF for the separate quest?

Sorry if that doesn't make any sense, it's not really making much sense to me either lol..

/not gotrex

edit: this is the [part] first part of npc2 which I've done so far... thought this would help you cos you can then tell me what and where I need to add whatever it is I need to add..lol


[@main]
#IF
CHECKJOB WIZZARD
CHECKLEVEL 50
CHECK [101] 0
#SAY
well hello there <$USERNAME>, bla bla bla\
Would u like to do this quest?\
<Yes./@Yes>\
<I don't think so./@exit>\\
#ELSESAY
hello <$USERNAME>. you dont meet the requirements\
to do this qst come bk later\
< Close/@exit>\\\
#NEED SOMETHING IN HERE TO READ THE FLAG FROM NPC1
 
Last edited:

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
Hi not sure how to explain this or how much information you need, but here goes...

I'm making a quest and it's at a part where the quest giver (we'll call it npc1) needs to send the player to another npc for the next part of the quest (we'll call it npc2).

npc2 is also a quest giver for another quest, so I've put in the relevant CHECKS etc. for that quest, but I obviously need it to check for the quest flag from the npc1 quest as well...

That's the part I'm not sure how to do... do I need to put in an ELSEACT or something somewhere in order to set up another IF for the separate quest?

Sorry if that doesn't make any sense, it's not really making much sense to me either lol..

/not gotrex

edit: this is the [part] first part of npc2 which I've done so far... thought this would help you cos you can then tell me what and where I need to add whatever it is I need to add..lol


[@main]
#IF
CHECKJOB WIZZARD <Wizard>
CHECKLEVEL 50 <Check to see if player is 50 or higher>
CHECK [101] 0 <Checks to make sure flag is off>
#SAY
well hello there <$USERNAME>, bla bla bla\
Would u like to do this quest?\
<Yes./@Yes>\
<I don't think so./@exit>\\
#ELSESAY
hello <$USERNAME>. you dont meet the requirements\
to do this qst come bk later\
< Close/@exit>\\\
#NEED SOMETHING IN HERE TO READ THE FLAG FROM NPC1

Not quite sure what you mean but: Yes/@Yes make it act to set the flag

[@Yes]
#ACT
SET [101] 1
#SAY
Ok goto NPC 2 and blah blah\ \
<Close/@exit>

NPC2

[@Main]
#IF
CHECK [101] 1
#ACT
GOTO @Quest
#ELSESAY
You haven`t been to NPC 1 \ \
<Close/@exit>

[@Quest]
Seems you are doing ok with this quest, would you likez\
To continue.\
<Yes/@Quest1>\

[@Quest1]
#ACT
SET [102] 1
#SAY
Talk to NPC3 \ \
<Ok/@exit>
#ELSESAY
You dont blah blah\ \
<Close/@exit>

NPC3

[@Main]
#IF
CHECK [102] 1
#ACT

blah blah

You spelt wizard wrong btw.
 
Last edited:
Upvote 0

^G0trex

Golden Oldie
Golden Oldie
Nov 7, 2003
1,946
28
135
Bham
thanks for reply

I think that would all work, but only thing is NPC2 doesn't JUST need to check for the quest from NPC1, it needs to do another IF check if quest1 from npc1 hasn't already been set...

make sense?

if, so would this work?: (this is npc2 btw)

[@main]
#IF
CHECK [101] 1
#ACT
GOTO @Quest
#ELSEACT
#IF

CHECKJOB WARRIOR
CHECKLEVEL 50
CHECK [201] 0



stuff in red is what im not sure about
 
Last edited:
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
85
thanks for reply

I think that would all work, but only thing is NPC2 doesn't JUST need to check for the quest from NPC1, it needs to do another IF check if quest1 from npc1 hasn't already been set...

make sense?

if, so would this work?: (this is npc2 btw)

[@main]
#IF
CHECK [101] 1
#ACT
GOTO @Quest
#ELSEACT
#IF

CHECKJOB WARRIOR
CHECKLEVEL 50
CHECK [201] 0



stuff in red is what im not sure about

Code:
[@main]
#IF
CHECK [101] 1
#ACT
GOTO @Quest
[COLOR=Red]#ELSEACT
GOTO @main1

[@main1]
#IF[/COLOR]
CHECKJOB WARRIOR
CHECKLEVEL  50
CHECK [201] 0


p
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
I'm a Mir 3 man usually.. but can't you do this...

Code:
#SAY
Hi <$USERNAME> I am the Quest Man.. \
#IF
CHECKJOB WIZZARD
CHECKLEVEL 50
CHECK [101] 0
#SAY
This is Quest 1.. do you want to do it.. \
<..../@.....>
#IF
CHECK [102] 1
#SAY
This is Quest 2.. do you want to do it.. \
<..../@.....>
#IF
#SAY
< Exit /@exit>\

Which would either give you 1 quest.. 2 quests.. and/or just an exit option..
 
Upvote 0