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;
}
Question
benching
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.
@Emistry
how to make the npc usable one at a time?
best regards
Edited by Eat Sleep DotaLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.