Squall Posted November 2, 2006 Posted November 2, 2006 i inned help with on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !blahhh) if (%a == -1) mta.msg $1 $2 Error - Absent ID mta.msg $1 $2 balh $mta.name($1,$2) Blah ($4 != $readini($scriptdir $+ mta.nickserv.ini,$mta.name($1,$2),level)) else mta.msg $1 $2 Server: You are not Moderator or Admin. and only lvl 2-10 can use
Squall Posted November 2, 2006 Author Posted November 2, 2006 i also need to no how to get a ini to read someting and say wha is behind the number like this [Reasons] 1= balh blah 2= ...... 3=........... 4=.................... 5=............................ 6=...................................... 7=................................................... 8=.................. 9=............ 10=................................... 11=.............................................. 12=.............................................................................
Aeron Posted November 2, 2006 Posted November 2, 2006 on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !blahhh) { if ($readini($scriptdir $+ mta.nickserv.ini,$mta.name($1,$2),level) > 0) { if (%a == -1) mta.msg $1 $2 Error - Absent ID else mta.msg $1 $2 balh $mta.name($1,$2) Blah } else { else mta.msg $1 $2 Server: You are not a Moderator or an Admin. } } i also need to no how to get a ini to read someting and say wha is behind the number like this[Reasons] 1= balh blah 2= ...... 3=........... 4=.................... 5=............................ 6=...................................... 7=................................................... 8=.................. 9=............ 10=................................... 11=.............................................. 12=............................................................................. Static: $readini(blah.ini,Reasons,3) Defined in variable %a: $readini(blah.ini,Reasons,%a) Random: $readini(blah.ini,Reasons,$rand(1,$ini(blah.ini,Reasons,0))) If all keys stay numbers. (Keys are this: [Topic] key=value )
lil Toady Posted November 2, 2006 Posted November 2, 2006 on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !blahhh) { if ($readini($scriptdir $+ mta.nickserv.ini,$mta.name($1,$2),level) > 0) { if (%a == -1) mta.msg $1 $2 Error - Absent ID else mta.msg $1 $2 balh $mta.name($1,$2) Blah } else { else mta.msg $1 $2 Server: You are not a Moderator or an Admin. } } on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !blahhh) { if ($readini($scriptdir $+ mta.nickserv.ini,$mta.name($1,$2),level) > 2) { if (%a == -1) mta.msg $1 $2 Error - Absent ID else mta.msg $1 $2 balh $mta.name($1,$2) Blah $mta.name($1,%a) } else mta.msg $1 $2 Server: You are not a Moderator or an Admin. } } you're a n00b scripter Aeron
Aeron Posted November 2, 2006 Posted November 2, 2006 ... on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !blahhh) { if ($readini($scriptdir $+ mta.nickserv.ini,$mta.name($1,$2),level) > 2) { if (%a == -1) mta.msg $1 $2 Error - Absent ID else mta.msg $1 $2 balh $mta.name($1,$2) Blah $mta.name($1,%a) } else mta.msg $1 $2 Server: You are not a Moderator or an Admin. } } you're a n00b scripter Aeron on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !blahhh) { if ($readini($scriptdir $+ mta.nickserv.ini,$mta.name($1,$2),level) >= 2) { if (%a == -1) mta.msg $1 $2 Error - Absent ID else mta.msg $1 $2 balh $mta.name($1,$2) Blah $mta.name($1,%a) } else mta.msg $1 $2 Server: You are not a Moderator or an Admin. } } ...and only lvl 2-10 can use You too.
Squall Posted November 3, 2006 Author Posted November 3, 2006 hell your way better dan me. so... Static: $readini(blah.ini,Reasons,3) Defined in variable %a: $readini(blah.ini,Reasons,%a) Random: $readini(blah.ini,Reasons,$rand(1,$ini(blah.ini,Reasons,0))) so if i put a thing like $readini(blah.ini,Reasons,$rand(1,$ini(blah.ini,Reasons,1-12))) would that work and how will i be able to chande wat number as it says sorry in valid number try !blah will it say for e.g 1 .......... on *:SIGNAL:mta.command:{ if ($3 == !reasons) { mta.msg $1 $2 1=You were spamming. mta.msg $1 $2 2=You were hacking. mta.msg $1 $2 3=You were swaring mta.msg $1 $2 4=Killing on rpg. mta.msg $1 $2 5=Over /kill to much. mta.msg $1 $2 6=stealing some 1s user. mta.msg $1 $2 7=Dising admins mta.msg $1 $2 8=using caps to much mta.msg $1 $2 9=advertising servers other than ... or ... deathmatch mta.msg $1 $2 10=Asking to be admin to much. mta.msg $1 $2 11=cheating!!!!! mta.msg $1 $2 12=abusing commands. so how will i get that to an ini i will try but i not that good
Aeron Posted November 3, 2006 Posted November 3, 2006 Put this in you blah.ini near mIRC.exe: [Reasons] 1=You were spamming. 2=You were hacking. 3=You were swaring 4=Killing on rpg. 5=Over /kill to much. 6=stealing some 1s user. 7=Dising admins 8=using caps to much 9=advertising servers other than ... or ... deathmatch 10=Asking to be admin to much. 11=cheating!!!!! 12=abusing commands. Put this in a new mIRC script: on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !blahhh) { if ($readini($scriptdir $+ mta.nickserv.ini,$mta.name($1,$2),level) >= 2) { if (%a == -1) mta.msg $1 $2 Error - Absent ID elseif ($5 >= 1) && ($5 <= $ini(blah.ini,Reasons,0)) { mta.say $1 balh $mta.name($1,$2) Blah $mta.name($1,%a) Reason: $readini(blah.ini,Reasons,$5) mta.kick $1 %a } else mta.msg $1 $2 Error - Absent Reason ID } else mta.msg $1 $2 Server: You are not a Moderator or an Admin. } } I assumed you wanted to make a kick system so i implented: mta.kick $1 %a in the code and made the kick announcement send to general chat instead of a private message. Usage: !blahhh Examples: blah?: !blahhh Aeron 12 Aeron is kicked. If player 'Aeron' has ID 5 blah?: !blahhh 5 12 Aeron is kicked. blah?: !blahhh *ron 12 Aeron is kicked. blah?: !blahhh Aer* 12 Aeron is kicked. blah?: !blahhh A*r*n 12 Aeron is kicked.
Squall Posted November 3, 2006 Author Posted November 3, 2006 it comes up like this Theoden: !reason ... 1 PM from Admin: Error - Absent Reason ID
Aeron Posted November 4, 2006 Posted November 4, 2006 it comes up like thisTheoden: !reason ... 1 PM from Admin: Error - Absent Reason ID 1. You placed the ini-content in blah.ini? 2. You placed blah.ini in the same map/directory as mirc.exe? 3. the reasons are under topic ''Reasons"? 4. Are there any reasons in topic "Reasons"?
Squall Posted November 4, 2006 Author Posted November 4, 2006 i got it like this [script] n0=[Reasons] n1=1=You were spamming. n2=2=You were hacking. n3=3=You were swaring n4=4=Killing on rpg. n5=5=Over /kill to much. n6=6=stealing some 1s user. n7=7=Dising admins n8=8=using caps to much n9=9=advertising servers other than ... or ... deathmatch n10=10=Asking to be admin to much. n11=11=cheating!!!!! n12=12=abusing commands.
lil Toady Posted November 5, 2006 Posted November 5, 2006 u're dumb or what? go to the mirc instalation folder and create a new text document, paste there the following code, the press File > Save as.. in 'file type' tick 'any document *.*' (not *.txt) and in the doc name type 'blah.ini', save [Reasons] 1=You were spamming. 2=You were hacking. 3=You were swaring 4=Killing on rpg. 5=Over /kill to much. 6=stealing some 1s user. 7=Dising admins 8=using caps to much 9=advertising servers other than ... or ... deathmatch 10=Asking to be admin to much. 11=cheating!!!!! 12=abusing commands.
StormaX Posted November 5, 2006 Posted November 5, 2006 Lol owned , but i would forget the numbers then
paul527 Posted November 10, 2006 Posted November 10, 2006 Aeron and lilToady are teh master scripters...
Recommended Posts