NPC scripting question

Join Discord

SPL1FF

Golden Oldie
Golden Oldie
Banshee
Game Master
Mar 24, 2003
520
270
270
Well firstly i might not be able to explain this very well but anyway here goes...

Im making a quest where u gotta kill 3 mobs to get certain items of each one to make a special sword...

1. How do i make it so when u kill the mob a box appears saying something + giving you item

2. How do i scirpt the npc so people can only do the quest once.

Im hoping someone knows what im talking about :D thx

/SPL1FF
 

ZaphodBeeble

Dedicated Member
Dedicated Member
Jan 20, 2004
70
0
103
~(SPL1FF)~ said:
1. How do i make it so when u kill the mob a box appears saying something + giving you item
Here's where you should be looking...

X:\korea\Mir200\Envir\MapQuest.txt
X:\korea\Mir200\Envir\MapQuest_def

It's easy to work out now that you know where to look :D

~(SPL1FF)~ said:
2. How do i scirpt the npc so people can only do the quest once.

Put an '#IF check [###] 1' in the first [@section] of the NPC script which is only set to 1 by completing the quest. e.g.
Code:
[@main]
#IF
check [400] 1
#ACT
goto @QuestFinished
#ELSEACT
goto @QuestStart

[@QuestStart]
Find me CHICKENS!\ \

<Here's some CHICKENS!/@GiveChicken>

[@GiveChicken]
#IF
checkitem CHICKEN! 40
#ACT
take CHICKEN! 40
set [400] 1
goto @QuestFinished
#ELSESAY
Lying filth! Get me CHICKENS!

[@QuestFinished]
Thank you for all those CHICKENS!

Hope that helps :P

/Spikalot
 

SPL1FF

Golden Oldie
Golden Oldie
Banshee
Game Master
Mar 24, 2003
520
270
270
why do i get this:

MakeItem loaded..
StartPoints loaded..
F-Engine resumed..
U-Engine initialized..
¶ÁÈ¡2¸öÐлáÇ鱨.
Npc Initalize fail... (npc.PEnvir=nil) Q1407
Npc Initalize fail... (npc.PEnvir=nil) Q1403
Npc Initalize fail... (npc.PEnvir=nil) Q1401
Gate 0 Opened..
 

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
its not loading on that map or not name or setup rite in the npc txt