I'm trying to create a NPC that can only be accessible one at a time,
And i can't figure out to make it behave like i want.
prontera,154,178,4 script Hati 835,{
OnInit:
set .CanTalk,0;
if(.CanTalk == 0) {
set .CanTalk,1;
mes "hello, world!";
close2;
set .CanTalk,0;
}
else
mes "I'm talking to someone, please back in a moment";
while (.CanTalk == 1)
{
specialeffect EF_BEGINSPELL6;
sleep 425;
}
end;
}
@Emistry
how to make the npc usable one at a time?
best regards