I would like to know what I did wrong in this npc
Fis a change to talk to him only 3 times a day is when he arrives 00:00 the player can talk to him again
Spoiler
arug_cas01,250,367,4 script Premiador 99,{
if(@falou == 3)goto naopode;
OnClock0000:
if(@falou > 0)goto reset;
reset:
set @falou,0;
Question
josue2010
I would like to know what I did wrong in this npc
Fis a change to talk to him only 3 times a day is when he arrives 00:00 the player can talk to him again
arug_cas01,250,367,4 script Premiador 99,{
if(@falou == 3)goto naopode;
OnClock0000:
if(@falou > 0)goto reset;
reset:
set @falou,0;
OnBackSub:
mes @npc$;
mes "Premiador 2.0";
mes "Olá, "+strcharinfo(0)+"! Deseja pega sua Premiação?";
switch(select("Sim.:Não obrigado.")) {
case 1:
getitem 20088,100;
getitem 12914,10;
getitem 14233,20;
getitem 12919,100;
getitem 20089,1000;
getitem 13995,10;
getitem 13534,50;
getitem 12912,10;
getitem 12906,10;
getitem 12908,10;
getitem 14004,10;
next;
getitem 20088,100;
getitem 604,70;
getitem 526,50;
getitem 748,50;
getitem 747,50;
setarray .@ids,5398,5766,5497,5225,5374,5467,2202,686,2296,5377,5548,5107,5220;
getitem .@ids[rand(0,getarraysize(.@ids)-1)],1;
set @falou,@falou+1;
close;
end;
case 2:
mes " Tudo bem então, te vejo em breve!"; close;
close;
}
naopode:
next;
mes @npc$;
mes "Voce já falou 3x comigo hoje.";
mes "Volte amanhã";
close;
}
Link to comment
Share on other sites
8 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.