ameer Posted October 6, 2008 Report Share Posted October 6, 2008 hello all i need a code that when some body banned from my room it will store in notpad or somthing tlike this and i give a commande in the room to script like !last10ban script will give me the last 10 banded from room and then i give him a command like !unban1 or !unban2 the it will un ban the seconed or first person badnded sorry i hope u can understand what i need Link to comment Share on other sites More sharing options...
Guest Travis Posted October 7, 2008 Report Share Posted October 7, 2008 First you must decide how mirc can tell if someone was banned. For that we need to know what network you are on. Are you using mode +b? Because then you could watch the mode event. If you use /access you will have to check the list for added entries. Other than that there is the kick event. It doesn't mean they were banned, but if you want to assume every kick is a ban then you can just use it. After that it's just gathering the information from the event that you need to unban the nicknames. What network are you on? Can you tell me about how you ban? Thanks Link to comment Share on other sites More sharing options...
ameer Posted October 7, 2008 Author Report Share Posted October 7, 2008 (edited) hello am on buzzen chat network and all i need that when some one banded from ther room it ill auto save the nick and address of the person who bannded in notpad or test decument on script with name ban and when i want to unban some one all i need to say on room main example !bans and script will give me the last 10 bans if i want to unban first !unban1 or !unban2 that all i need and thank you very much travis Edited October 7, 2008 by ameer Link to comment Share on other sites More sharing options...
Guest Travis Posted October 7, 2008 Report Share Posted October 7, 2008 Please reread what i said about it and ask if you dont understand anything. If you do understand please answer the points I brought up. Thank you. Link to comment Share on other sites More sharing options...
ameer Posted October 8, 2008 Author Report Share Posted October 8, 2008 hello i need it when i kick some one with ban (only with ban ) to save it not only on access list as i said in a test decument and my script i think it +b i hope that what u need to know thank you Link to comment Share on other sites More sharing options...
Fanfare Posted October 8, 2008 Report Share Posted October 8, 2008 (edited) I'm not quite sure what Ameer has in mind, but perhaps this is what he intends to decipher? I don't know. Travis may help him better in achieving his goal. raw 801:*: { hadd -m Bans $3 $addtok($hget(Bans,$3),$4,44) } on *:PART: { hsave -o Bans Bans.hsh } on *:CONNECT: { hload Bans Bans.hsh } on *:DISCONNECT: { hsave -o Bans Bans.hsh } on 1:INPUT:#: { var %b = $hget(Bans,0).data | while (%b) { if ($1 == !last10ban) { echo 4 $hget(Bans,%b).data | dec %b } } } Edited October 8, 2008 by Fanfare Link to comment Share on other sites More sharing options...
ameer Posted October 9, 2008 Author Report Share Posted October 9, 2008 thank you fanfare maybe its some thing like that but i want it to save ban in a text and when i want to unban 1 of last 10 ban just say !l10b and it will show me the last 10 bans then i can chose which one i ill unban like !unban1 or !unban2 it will save the nick and adders for the ban thank you Link to comment Share on other sites More sharing options...
Fanfare Posted October 9, 2008 Report Share Posted October 9, 2008 raw 801:*:write Bans.txt $4- on 1:INPUT:#: { if ($1 = !l10b ) { echo 4 -a $read(Bans.txt, 1) | echo -a $read(Bans.txt, 2) echo 4 -a $read(Bans.txt, 3) | echo -a $read(Bans.txt, 4) echo 4 -a $read(Bans.txt, 5) | echo -a $read(Bans.txt, 6) echo 4 -a $read(Bans.txt, 7) | echo -a $read(Bans.txt, 8) echo 4 -a $read(Bans.txt, 9) | echo -a $read(Bans.txt, 10) } elseif ($1 = !unban1) { access # delete deny $read(Bans.txt, 1) | echo 2 -a 1st ban has been deleted. } elseif ($1 = !unban2) { access # delete deny $read(Bans.txt, 2) | echo 2 -a 2nd ban has been deleted. } elseif ($1 = !unban3) { access # delete deny $read(Bans.txt, 3) | echo 2 -a 3rd ban has been deleted. } elseif ($1 = !unban4) { access # delete deny $read(Bans.txt, 4) | echo 2 -a 4th ban has been deleted. } elseif ($1 = !unban5) { access # delete deny $read(Bans.txt, 5) | echo 2 -a 5th ban has been deleted. } elseif ($1 = !unban6) { access # delete deny $read(Bans.txt, 6) | echo 2 -a 6th ban has been deleted. } elseif ($1 = !unban7) { access # delete deny $read(Bans.txt, 7) | echo 2 -a 7th ban has been deleted. } elseif ($1 = !unban8) { access # delete deny $read(Bans.txt, 8) | echo 2 -a 8th ban has been deleted. } elseif ($1 = !unban9) { access # delete deny $read(Bans.txt, 9) | echo 2 -a 9th ban has been deleted. } elseif ($1 = !unban10) { access # delete deny $read(Bans.txt, 10) | echo 2 -a 10th ban has been deleted. } } You can edit the code to read or add more line reads from Bans.txt in the same format shown above. Link to comment Share on other sites More sharing options...
Guest Travis Posted October 9, 2008 Report Share Posted October 9, 2008 If this works that is great. This will only log people YOU ban. And the input event is to run the command from the same script. It is not a text response. Sorry I'm too busy to really sit down with this. If fanfares code works for you then great! If not, let us know and I will work on something for you. Link to comment Share on other sites More sharing options...
ameer Posted October 10, 2008 Author Report Share Posted October 10, 2008 hello thank you tarvis its not write the ban on the bans.text i made bans.text on script diractory how i cant say to script !last10bans (it must show me last 10 bans on room main ) and how script can know who is says !unban1 (i mean am on 15:text:!unban1:*: { ) sorry i dont know much on scripting but hope to know thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now