Clearing A Set

daneo1989

I am Ancient.
Staff member
Moderator
Dec 5, 2005
5,961
1
223
280
UK
Ok, I created a SET from an NPC to be used in MapQuest.
The MapQuest is all fine, I'm just wondering how I can get rid of the SET that was used so I do not continue to get a message everytime I kill the mob again.

Cheers
 

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
294
#act
SET [101] 1

that sets the flag right well change the '1' at the end to a '0'.

There is also a gmcommand to do this if your interested, cant remember it totally but it might be @setflag 'char name' 'flag' '0-off 1-on'
 
Upvote 0

DayWalker™

Golden Oldie
Golden Oldie
Dec 11, 2004
761
1
123
Middlesbrough ! Smoggy!
Well what i did was this in my XXXXX.txt in mapquest_def :

[@main]
#IF
check [XXX] 1 ; flag set when mapquest done
goto @end
#ELSEACT
goto @accept

[@Accept]
#IF
check [YYY] 1 ; flag set by npc
#ACT
give item1
give gold 10000
set [XXX] 1 ; flag checked at the start of script.

[@end]
#IF
#ACT
close

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

But i guess instead you could just set the flag [XXX] 1 to [XXX] 0 again god i always
do things the hard way :P.

Stan
 
Upvote 0