im having some problems with a NPC script, hopefully you could help me.
the problem nothing is broadcasted.
// -- Announcer Script
// -- Author: DZeroX
// -- Description: Announce whatever you want, easily. You can add as many messages as you want.
- script Announcements -1,{
OnInit:
setarray $announcer_mes$[0],"Check our website for latest News and Patches, & Vote For Us @ http://and-ro.tk ´«";
set $announcer_ticks,10; // -- Replace 300 with seconds, time between individual announcements.
set $@loop,0;
set $announcer_wait,$announcer_ticks*120;
initnpctimer;
end;
OnTimer1800000:
set $@messages,getarraysize($announcer_mes$);
goto L_announce;
L_announce:
if ($@loop == $@messages) goto L_reset;
announce $announcer_mes$[$@loop],0;
sleep2 $announcer_wait;
set $@loop,$@loop + 1;
goto L_announce;
L_reset:
set $@loop,0;
set $@messages,0;
stopnpctimer;
initnpctimer;
end;
}
Question
acocalypso
Hey everybody,
im having some problems with a NPC script, hopefully you could help me.
the problem nothing is broadcasted.
Link 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.