Squall Posted September 23, 2006 Posted September 23, 2006 i have no clue on what i am doing but like my nana says "if u no u cannot do it then go for it" so i tried to try make something but my trys failed like usually on *:SIGNAL:mta.join:{ } mta.say $1 Events: $rand on *:SIGNAL:mta.command: { if ($3 == /msg eventchange ) mta.text $1 $read($scriptdir $+ events.txt,$rand(0,$lines($scriptdir $+ events.txt))) } } mta.say $1 Events: $rand i no thats wrong i tried it and nothing i was trying to make well by looking at it you can probly tell i was trying to make some thing to popup and say what events there are and be able to change them with a msg command only for admins
Aeron Posted September 23, 2006 Posted September 23, 2006 on *:SIGNAL:mta.join:{ mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] } on *:SIGNAL:mta.command: { if ($3 == !eventchange) { if ($4 != $null) { %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4) } else { %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt))) } } mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] } Usage: !eventchange [Event ID or leav it blank for random]
Squall Posted September 26, 2006 Author Posted September 26, 2006 now it says -* /1: not connected to server (line 2, Events.mrc) i have v 6.16 i think mIRC
Mania-92 Posted September 26, 2006 Posted September 26, 2006 now it says -* /1: not connected to server (line 2, Events.mrc) i have v 6.16 i think mIRC Try this: on *:SIGNAL:mta.join:{ ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] }
lil Toady Posted September 26, 2006 Posted September 26, 2006 Try this: on *:SIGNAL:mta.join:{ ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] } you know.. this ;Parameters don't do anything in the script like anything with ; sing in front, so they are just not needed, that is there just like a tip.. So this can NOT fix anything......
Squall Posted September 27, 2006 Author Posted September 27, 2006 k but it still dont work. is this right on *:SIGNAL:mta.join:{ ;Parameters: ;$1 = Server ;$2 = ID ;$3 = Command ;$4- = Parameters mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] } on *:SIGNAL:mta.command: { if ($3 == !eventchange) { if ($4 != $null) { %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4) } else { %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt))) } } mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] }
Aeron Posted September 27, 2006 Posted September 27, 2006 Hint: put the code in the REMOTE tab of the script editor: Do this when you have focus on the main window: 1. ALT+R 2. ALT+R (Yes twice, not once, twice) 3. Paste the code: on *:SIGNAL:mta.join: { mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] } on *:SIGNAL:mta.command: { if ($3 == !eventchange) { if ($4 != $null) { %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4) } else { %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt))) } } mta.say $1 Events: %mta.event. [ $+ [ $1 ] ] } 4. Worky
Squall Posted September 28, 2006 Author Posted September 28, 2006 nope it still say - * /1: not connected to server (line 7, Events.mrc) and now my mirc dont work (jst like my brain) would you b able to send me a saved script file
Aeron Posted September 28, 2006 Posted September 28, 2006 nope it still say - * /1: not connected to server (line 7, Events.mrc) and now my mirc dont work (jst like my brain) would you b able to send me a saved script file Try: on *:SIGNAL:mta.join: { mta.say $1 Events: %mta.event. [ $+ $1 ] } on *:SIGNAL:mta.command: { if ($3 == !eventchange) { if ($4 != $null) { %mta.event. [ $+ $1 ] = $read($scriptdir $+ events.txt,$4) } else { %mta.event. [ $+ $1 ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt))) } } mta.say $1 Events: %mta.event. [ $+ $1 ] }
Squall Posted September 30, 2006 Author Posted September 30, 2006 i have MTA:mA 3.24 and it comes up like this -* /me: not connected to server (line 881, mta.mrc) -
lil Toady Posted September 30, 2006 Posted September 30, 2006 very strange eh... make sure you have 6.16 mirc Cause looks like you have that buggy 6.2 mirc where most of the scripts posted here do not work
Aeron Posted September 30, 2006 Posted September 30, 2006 i have MTA:mA 3.24 and it comes up like this -* /me: not connected to server (line 881, mta.mrc) - my MTA:mA doesn't use '/me'
lil Toady Posted September 30, 2006 Posted September 30, 2006 i have MTA:mA 3.24 and it comes up like this -* /me: not connected to server (line 881, mta.mrc) - my MTA:mA doesn't use '/me' what about /me command? like /me pwnz j00 all but anyway its not on the 881's line.. D+I+E=ikillu did you edit mta.mrc?
Recommended Posts