Flag Help

Play Now

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
Hey, basicly i just want new players to stop spamming the welcome npc for kit. Been far to long since i even looked at a npc script lol. Fast reply please :), where am i goin wrong ><

; ===================================
; Npc Def NPC File : Welcome-0
; Welcome Notice npc in BichonProvince
; -----------------------------------
; Name: Welcome
; Job:
; Map No: 0
; Pos X
; Pos Y
; File name: *removed*
; Comment: Town Teleport npc in BichonProvince

;================================================= =
;

[@main]
#IF
CHECK [600] 1
#SAY
You have already had your start kit, stop being greedy!.
<Exit/@exit>
#ACT
BREAK
#IF
CHECK [600] 1
#SAY
Welcome To ???? Server\
Oh, your new, i take it you want your starter\
kit? \
<Yes please/@kit>\\

[@kit]
#Say
Here you go, you can not come back for a new kit\
use this set wisely.\\
#IF
#ACT
give GreatAxe
<Thanks/@exit>\\
#ELSEACT
SET [600] 1
 

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
dont forget the number at the end of each item..

give greataxe 1

etc... a lot of whats been said has been mising the numbers off the check item and stuff.. so dont just copy paste
 
Upvote 0

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
dont forget the number at the end of each item..

give greataxe 1

etc... a lot of whats been said has been mising the numbers off the check item and stuff.. so dont just copy paste

I have been adding 1's and 3's so no problems there, good point bringing it up though for people who are also using this as a help guide.

To code a Find an NPC quest what will the code look like?
Quest Example:
- Talk to someone who wants to know something
- Talk to another NPC to find out that something
- Go back and tell him that something
 
Upvote 0

JealY

LOMCN VIP
VIP
Nov 28, 2004
5,357
55
335
England
NPC 1;

[@main]
#SAY
Hey there, i'm wondering where my Beach Ball is,\
have you seen it?\
Bob says he might know something but won't tell me!\
<I will go ask him/@bob>\
<I know/@got> where it is!\
\
<I have no idea/@exit>\

[@bob]
#ACT
ADDNAMELIST LookingForBall.txt
#SAY
Okay, thanks. He's just over there near the statue!\
\

[@got]
#IF
CHECKNAMELIST KnowsWhereBallIs.txt
#SAY
Oh! Bob told you? You must know him well.\
Thanks for passing on the information\
to me, I owe you one!\
\
<No Problemo/@exit>\\
#ELSESAY
Well? Where is it?\
\
Look, if you don't know where it is, please\
don't waste my time, I have a lot to do today\
\
<Whatever/@exit>

NPC 2;

[@main]
#IF
CHECKNAMELIST LookingForBall.txt
#ACT
ADDNAMELIST KnowsWhereBallIs.txt
#SAY
So you want to know where the ball is?\
\
That stupid oaf left it in the field on his\
way home, some Ogre or other beast probably\
has it now!\
<Okay thanks/@exit>\
#ELSESAY
May I help you?\
\
\

There's probably an easier way to do it (could also use flags of course), I kinda got carried away. I hope you get the idea though.
 
  • Like
Reactions: noisound
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
its actually better to store all your namelists in a folder.. rather than just having them all over market_def

eg make a folder in market_def called namelists then adjust accordingly


[@main]
#IF
CHECKNAMELIST /NameLists/LookingForBall.txt
#ACT
ADDNAMELIST /NameLists/KnowsWhereBallIs.txt
 
Upvote 0

noisound

Golden Oldie
Golden Oldie
Jul 23, 2004
1,335
10
175
Just wanna thank everyone for helping in this thread, I now know exactly everything I need to do for making quests and I appreciate all the help you've gave me.

Going to be working on quests now for the Renaissance Server and hopefully make a very enjoyable Mir2.3 server, with thanks to you guys :).
 
Upvote 0