eeliottheking Posted September 11, 2006 Posted September 11, 2006 i really have no ide what i am doing, but im trying to make a script so that when someone types !joke it will display a random joke out of a text file called joke.txt i suck ok and this is what i have, so please tell me whats wrong with it. on *:SIGNAL:mta.command: { alias joke.rules if ($3 == !joke) mta.text $1 $read($scriptdir $+ joke.txt,$rand(0,$lines($scriptdir $+ joke.txt))) } :note: the only thing i have read is other scripts located in the add on section that could possibly help me wth this.
lil Toady Posted September 11, 2006 Posted September 11, 2006 on *:SIGNAL:mta.command: { if ($3 == !joke) mta.text $1 $read($scriptdir $+ joke.txt,$rand(0,$lines($scriptdir $+ joke.txt))) } }
Mania-92 Posted September 12, 2006 Posted September 12, 2006 thank u works perfect now If for example joke 5 is the last one, it sticks on joke 5 isn't it?
lil Toady Posted September 12, 2006 Posted September 12, 2006 No, it shows up a random joke all the time
Mania-92 Posted September 13, 2006 Posted September 13, 2006 No, it shows up a random joke all the time Why doesn't it work with me than.
lil Toady Posted September 13, 2006 Posted September 13, 2006 It works for him.. if it doesnt work for you, you're doing something wrong... what's your mirc version btw?
Mania-92 Posted September 13, 2006 Posted September 13, 2006 It works for him.. if it doesnt work for you, you're doing something wrong...what's your mirc version btw? Phoe i will look. It's v6.2
lil Toady Posted September 13, 2006 Posted September 13, 2006 6.2 has some probs with scripts.. get 6.16 or 6.17, they are better imo
Recommended Posts