chat and flags

Ok i cant be arsed right now to search the UGDVD to find an npc with this setup so i need a quick answer please

How do i put in an NPC, a check that allows you to say something only if you have a certain flag, for example

i want the player to chat ‘ok i’ll look’, once you say that the npc sets a flag on the character that says your on this quest for her

but i need it so that if you say ‘ok i’ll look’ while you have a certain flag already on you, she will say ‘hey you already found it for me’

so you cant accept the quest again and get infinite moniess

either:

set blah;

or

player.blah=1;

checks:

if(player.blah=1){
message blah;
}
if(blah){
messsage blah blah;
}

Er, here since you might not get how to add in the chat part.

if (playerenters){ set [B]flag[/B]; }

if (playerchats && strequals(#c,text here) && [B]flag[/B]){ message Yay.; }

Lolol…I could swear that this was in my guide x.x Do I seriously have to make thw dlag description more descriptive x.x

I’ll add doing checks on flags to it when I get home x.x

[QUOTE=Alex;74808]
Lolol…I could swear that this was in my guide x.x Do I seriously have to make thw dlag description more descriptive x.x

I’ll add doing checks on flags to it when I get home x.x
[/QUOTE]

…Rewrite your whole guide. Now.
In fact, someone just post the fricking newbie scripters bible.
…Heck, i’ll post it myself:http://st0rage.org/~graalreborn11/ace2896/www.geocities.com/ace2896/pg/thedownloads.html

[QUOTE=Kondie;74802]

[CODE]if (playerchats && strequals(#c,text here) && flag){

[/CODE]
[/QUOTE]

This is what i needed thanks.

lol kondie you fail at copying spooon…

[QUOTE=Alex;74858]lol kondie you fail at copying spooon…[/QUOTE]

lol alex you fail at trying to take credit for your scripting guide

[QUOTE=BlazeFireXX123;74879]lol alex you fail at trying to take credit for your scripting guide[/QUOTE]

??

rofl kids are bitchy today