31
Off Topic / Re: RandomBot
« on: August 30, 2013, 07:08 AM »QuoteThis works only for one player (for one string actually). As long as there is only one freebie possible.Though, the players who already did have freebie can't get it again. Maybe add smth like %% and ^^ too? xd
yes it is implemented with global variable. bot remeber who was freebie previously and will not give it to same name twice in a row. I did not delete that function, it still works.
About star sign: It works for one player only with ** sign, i mean. if you set two players with ** - there is still will be a chance that ** will be replaced from freebie with another ** name. I would fix that easy in loop, by adding additional loop checking for players without ** sign. But the problem is that RandomBot script works not like that. I`ve scripted RandomBot on NEXT day since i first launched mIRC in my life. I was lazy to learn how mIRC arrays works, to use them in loops, so i used "by hand" scripting technique. It`s ok for simple tasks. But for detailed checking and exceptions its pretty tough task. Thats why it will work for only one player with ** sign. Yet.
I will try to learn how mIRC arrays works and maybe rewrite script. So more complicated exceptions will be possible to do.