need some help on npc script...

Frost

Dedicated Member
Dedicated Member
Jan 14, 2005
18
0
27
hello all, i was wondering if anyone could explain what "check [402] 1" does? and what happens if i put different numbers into the [ ]?

thanks in advance.

*i got it from here*

[@main]
#IF
check [402] 1
#ACT
break

#IF
random 5
check [401] 1
#ACT
SET [402] 1
#SAY
(As I killed a Root Spider..)\
Rev.taoist Perry will tell me\
every secret.\ \
#ELSESAY
(I killed the RootSpider...\
But i am not feeling so good...)\ \
 

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
Frost said:
hello all, i was wondering if anyone could explain what "check [402] 1" does? and what happens if i put different numbers into the [ ]?

thanks in advance.

*i got it from here*

[@main]
#IF
check [402] 1
#ACT
break

#IF
random 5
check [401] 1
#ACT
SET [402] 1
#SAY
(As I killed a Root Spider..)\
Rev.taoist Perry will tell me\
every secret.\ \
#ELSESAY
(I killed the RootSpider...\
But i am not feeling so good...)\ \

they are flags, if you change them you are checking for different flags
 
Upvote 0

Blaminator

VIP
Golden Oldie
Loyal Member
Jul 11, 2003
2,731
0
173
London
Frost said:
hello all, i was wondering if anyone could explain what "check [402] 1" does? and what happens if i put different numbers into the [ ]?

thanks in advance.

*i got it from here*

[@main]
#IF
check [402] 1
#ACT
break

#IF
random 5
check [401] 1
#ACT
SET [402] 1
#SAY
(As I killed a Root Spider..)\
Rev.taoist Perry will tell me\
every secret.\ \
#ELSESAY
(I killed the RootSpider...\
But i am not feeling so good...)\ \



Those numbers are Flags

check [401] 1 checks if the flag is set. You can set flags and use them to trigger NPCs and mapquest scripts
 
Upvote 0