Thank you guys I feel loved. It took me more than 5 hours to figured out yesterday, here's the scripts I've used.
if (getd(".using"+strnpcinfo(2))){
message strcharinfo(0), "Using..";
end;
}
// When fishing
setd ".using"+strnpcinfo(2), 1;
attachnpctimer;
initnpctimer;
// After a successful fish
setd ".using"+strnpcinfo(2),0;
stopnpctimer;
// And added something I didn't even know what it was.. but it does the job actually xDD, thanks for the tips, after combining them, it works somehow lol!...
OnTimer2000:
if (getd(".using"+strnpcinfo(2))){
setd ".using"+strnpcinfo(2),0;
stopnpctimer;
detachnpctimer;
}
end;
OnPCLogoutEvent:
if (getd(".using"+strnpcinfo(2))){
setd ".using"+strnpcinfo(2),0;
}
end;
OnInit:
setd ".using"+strnpcinfo(2),0;
end;
Many thanks!
Thanks to: Emistry, Skorm, Zell, Euphy and who helped me!