Latest topics | » Salam Bacheha by TasbeaT Thu Aug 11, 2016 8:33 pm
» id Maker Onlain FireBuzZ TeaM by modaaaa Sun Mar 06, 2016 2:51 am
» id maker v2 coded by 50 by modaaaa Sun Mar 06, 2016 2:50 am
» آپدیت جدید xmod برای نسخه جدید کلش اف کلنز (زمستان 2016) .هماهنگ با 8.116.2 by l!v!lonster Wed Feb 17, 2016 10:02 am
» help plz komak mikham fori by l!v!lonster Tue Feb 16, 2016 4:37 pm
» فیلم اموزشی نصب Ejabberd by kurd98 Fri Jul 24, 2015 3:26 pm
» اجبرد بر روی شبکه محلی by kurd98 Fri Jul 24, 2015 3:20 pm
» online spybot and server bots... by huss4in. Wed Jul 15, 2015 3:53 am
» online mobile server bot 24/7 online by i).t33m Sat May 30, 2015 6:52 am
» TeamViewer 10.0.41459 by i).t33m Sat May 30, 2015 6:38 am
» Topic Jame -- Server bot by shona_chokra Sun Mar 22, 2015 12:19 am
» PV Message Flooder Nimbuzz 2015 by sholeh by sholeh Sat Mar 07, 2015 2:11 pm
» Room + PV Flooder Nimbuzz 2015 by sholeh Tue Feb 17, 2015 6:57 pm
» PV Flooder Nimbuzz 2015 by sholeh by sholeh Sat Feb 14, 2015 12:42 am
» chat box vb.net... by the.last.black.hat Wed Jan 28, 2015 5:23 pm
» Change Avatar by vb.net... by the.last.black.hat Wed Jan 28, 2015 3:29 pm
» online bot severs by lof-team Wed Jan 21, 2015 6:10 pm
» Evil floOder by kurad Wed Nov 19, 2014 2:35 pm
» super black scorpion flood room = 4 pvt traget in one time 3.0 by hesho Sat Aug 23, 2014 8:24 pm
» v*p*s AT LOW PRICE by sweetsam01 Tue Jul 29, 2014 6:20 pm
|
Top posting users this week | |
Who is online? | In total there are 17 users online :: 0 Registered, 0 Hidden and 17 Guests None Most users ever online was 113 on Thu Dec 12, 2013 8:09 am |
April 2024 | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
---|
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | | Calendar |
|
| | Help In c# ( anti Addmin + left room ) [solved] | |
| Author | Message |
---|
sirabi new member
Posts : 15 Emtiaz : 39124 Thanked : 0 Join date : 2013-08-13
| Subject: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 3:00 pm | |
| - Code:
-
private void Xml1(object sender, string a) { if (base.InvokeRequired == true) { base.BeginInvoke(new agsXMPP.XmlHandler(Xml1), new object[] { sender, a }); } else { try { Application.DoEvents(); a = a.ToLower(); a = a.Replace("\"", "'"); TextBox1.AppendText(a); if (a.IndexOf("@conference.nimbuzz.com/admin'", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { if (a.IndexOf("enter the right answer to start chatting.", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { gt = a.Substring(a.IndexOf("enter the right answer to start chatting.") + 42); gt = gt.Substring(0, gt.IndexOf("</body>") - 0); gt = gt.Replace(" ", ""); gt = gt.Replace("=...", ""); gt = gt.Replace("thousand", ""); gt = gt.Replace("hundred", ""); gt = gt.Replace("and", ","); gt = gt.Replace("ten", "10"); gt = gt.Replace("eleven", "11"); gt = gt.Replace("twelve", "12"); gt = gt.Replace("thirteen", "13"); gt = gt.Replace("fourteen", "14"); gt = gt.Replace("fifteen", "15"); gt = gt.Replace("sixteen", "16"); gt = gt.Replace("seventeen", "17"); gt = gt.Replace("eighteen", "18"); gt = gt.Replace("nineteen", "19"); gt = gt.Replace("twenty-", "2"); gt = gt.Replace("thirty-", "3"); gt = gt.Replace("forty-", "4"); gt = gt.Replace("fifty-", "5"); gt = gt.Replace("sixty-", "6"); gt = gt.Replace("seventy-", "7"); gt = gt.Replace("eighty-", "8"); gt = gt.Replace("ninety-", "9"); gt = gt.Replace("twenty", "20"); gt = gt.Replace("thirty", "30"); gt = gt.Replace("forty", "40"); gt = gt.Replace("fifty", "50"); gt = gt.Replace("sixty", "60"); gt = gt.Replace("seventy", "70"); gt = gt.Replace("eighty", "80"); gt = gt.Replace("ninety", "90"); gt = gt.Replace("one", "1"); gt = gt.Replace("two", "2"); gt = gt.Replace("three", "3"); gt = gt.Replace("four", "4"); gt = gt.Replace("five", "5"); gt = gt.Replace("six", "6"); gt = gt.Replace("seven", "7"); gt = gt.Replace("eight", "8"); gt = gt.Replace("nine", "9"); if (gt.IndexOf("-", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y - x).ToString(); } else if (gt.IndexOf("+", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y + x).ToString(); } else if (gt.IndexOf("*", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y * x).ToString(); } else if (gt.IndexOf("Whatisthe1stdigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("?") - 4);
} else if (gt.IndexOf("Whatisthe2nddigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 3); j = j.Substring(0, j.IndexOf("?") - 3);
} else if (gt.IndexOf("Whatisthe3rddigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 4); j = j.Substring(0, j.IndexOf("?") - 2);
} else if (gt.IndexOf("Whatisthe4thdigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 5); j = j.Substring(0, j.IndexOf("?") - 1);
} else if (gt.IndexOf("Whatisthe5thdigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 6); j = j.Substring(0, j.IndexOf("?") - 0);
} else if (gt.IndexOf("asdigits?", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("Whatis") + 6); j = j.Substring(0, j.IndexOf("as") - 0);
} else if (gt.IndexOf("whichisthesmallest?", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("bers") + 4); j = j.Substring(0, j.IndexOf(",w") - 0); string[] s = null; s = j.Split(','); long lng = 0; lng = Convert.ToInt64(s[s.GetLowerBound(0)]); for (var i = s.GetLowerBound(0); i <= s.GetUpperBound(0); i++) { if (lng > Convert.ToInt64(s[i])) { lng = Convert.ToInt64(s[i]); } } j = lng.ToString();
} else if (gt.IndexOf("whichisthebiggest?", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("bers") + 4); j = j.Substring(0, j.IndexOf(",w") - 0); string[] s = null; s = j.Split(','); long lng = 0; lng = Convert.ToInt64(s[s.GetUpperBound(0)]); for (var i = s.GetLowerBound(0); i <= s.GetUpperBound(0); i++) { if (lng < Convert.ToInt64(s[i])) { lng = Convert.ToInt64(s[i]); } } j = lng.ToString();
} else if (gt.IndexOf("The1stnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[0].ToString();
} else if (gt.IndexOf("The2ndnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[1].ToString();
} else if (gt.IndexOf("The3rdnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[2].ToString();
} else if (gt.IndexOf("The4thnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[3].ToString();
} else if (gt.IndexOf("The5thnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[4].ToString();
} x.Send("<message to='" + rom.Text + "@conference.nimbuzz.com' type='groupchat'><body>" + j + "</body></message>"); } } } catch (Exception se) { } } } yek inke Bara anti addmin bodan soft am ino mizaram vali baz addmin soal miporse baiad chikar konam? 2 code mikhastam bara left dadan id az room |
| | | Bob-Xer new member
Posts : 6 Emtiaz : 39073 Thanked : 0 Join date : 2013-08-17
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 3:17 pm | |
| admin ke hamishe soal miporse to ba in coda admin hazf nemikoni yani robat hoshmand mishe javab mide hatman ye ja eshtebah kardi? OnReadXml tarif kardi? private string gt , j; neveshti? // inam xml toy click button mizari - Code:
-
x.Send(<presence to='"+Room.Text+"@conference.nimbuzz.com/"+id.text+"' type='unavailable'><status>FirebuzZ</status></presence>"); in xmli bood ke QIP dad fek konam jadide 9test jangjoo. |
| | | sirabi new member
Posts : 15 Emtiaz : 39124 Thanked : 0 Join date : 2013-08-13
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 3:42 pm | |
| Bara left aya in Dorosye? - Code:
-
x.Send("<presence to='" + Room.Text + "@conference.nimbuzz.com/" + id.text + "type='unavailable'http://jabber.org/protocol/muc'></firebuzz></presence>"); Are tarif kardam - Code:
-
x.OnReadXml += Xml; Khob shoma age code daqiqesh o darin plis bezarin baram m30 |
| | | esi.0181 Firebuzz Member
Medals : Posts : 1065 Emtiaz : 41896 Thanked : 102 Join date : 2013-06-11 Age : 32 Job/Hobbies : danesh jo Asl : shahin-anzali-18 sale 1373/6/6 My Mood :
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 4:02 pm | |
| in anti admin aval in int haro ezafe kon - Code:
-
private string gt; private string j; bad ino be login id ezafe kon - Code:
-
esi.OnReadXml += Xml1; - Code:
-
private void Xml1(object sender, string xml) { if (base.InvokeRequired) { base.BeginInvoke(new XmlHandler(this.Xml1), new object[] { RuntimeHelpers.GetObjectValue(sender), xml }); } else { xml = Strings.Replace(xml, "\"", "'", 1, -1, CompareMethod.Text); if (Strings.InStr(xml, "type='unavailable'", CompareMethod.Text) <= 0) { if (((Strings.InStr(xml, "affiliation='owner'", CompareMethod.Binary) != 0)) | ((Strings.InStr(xml, "affiliation='admin'", CompareMethod.Binary) != 0)) | ((Strings.InStr(xml, "affiliation='member'", CompareMethod.Binary) != 0)) | ((Strings.InStr(xml, "affiliation='none'", CompareMethod.Binary) != 0)) && ((Strings.InStr(xml, "type='unavailable'", CompareMethod.Binary) & Strings.InStr(xml, "role='none'", CompareMethod.Binary)) == 0)) { try { string str2 = xml.Substring(xml.IndexOf("jid='") + 5); str2 = str2.Substring(0, str2.IndexOf("@") - 0); int b = listBox2.Items.Count; for (int i = 0; i < b; i++) { if (str2.ToString() == listBox2.Items[i].ToString()) { listBox2.Items.RemoveAt(i); } } int e = listBox13.Items.Count; for (int i = 0; i < e; i++) { if (str2.ToString() == listBox13.Items[i].ToString()) { listBox13.Items.RemoveAt(i); } } listBox2.Items.Add(str2.ToString()); listBox13.Items.Add(str2.ToString()); label12.Text = listBox2.Items.Count.ToString(); } catch { } } try { Application.DoEvents(); xml = xml.ToLower(); xml = xml.Replace("\"", "'"); textBox7.AppendText(xml); if (xml.IndexOf("@conference.nimbuzz.com/admin'", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { if (xml.IndexOf("enter the right answer to start chatting.", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { gt = xml.Substring(xml.IndexOf("enter the right answer to start chatting.") + 42); gt = gt.Substring(0, gt.IndexOf("</body>") - 0); gt = gt.Replace(" ", ""); gt = gt.Replace("=...", ""); gt = gt.Replace("thousand", ""); gt = gt.Replace("hundred", ""); gt = gt.Replace("and", ","); gt = gt.Replace("ten", "10"); gt = gt.Replace("eleven", "11"); gt = gt.Replace("twelve", "12"); gt = gt.Replace("thirteen", "13"); gt = gt.Replace("fourteen", "14"); gt = gt.Replace("fifteen", "15"); gt = gt.Replace("sixteen", "16"); gt = gt.Replace("seventeen", "17"); gt = gt.Replace("eighteen", "18"); gt = gt.Replace("nineteen", "19"); gt = gt.Replace("twenty-", "2"); gt = gt.Replace("thirty-", "3"); gt = gt.Replace("forty-", "4"); gt = gt.Replace("fifty-", "5"); gt = gt.Replace("sixty-", "6"); gt = gt.Replace("seventy-", "7"); gt = gt.Replace("eighty-", "8"); gt = gt.Replace("ninety-", "9"); gt = gt.Replace("twenty", "20"); gt = gt.Replace("thirty", "30"); gt = gt.Replace("forty", "40"); gt = gt.Replace("fifty", "50"); gt = gt.Replace("sixty", "60"); gt = gt.Replace("seventy", "70"); gt = gt.Replace("eighty", "80"); gt = gt.Replace("ninety", "90"); gt = gt.Replace("one", "1"); gt = gt.Replace("two", "2"); gt = gt.Replace("three", "3"); gt = gt.Replace("four", "4"); gt = gt.Replace("five", "5"); gt = gt.Replace("six", "6"); gt = gt.Replace("seven", "7"); gt = gt.Replace("eight", "8"); gt = gt.Replace("nine", "9"); if (gt.IndexOf("-", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y - x).ToString(); } else if (gt.IndexOf("+", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y + x).ToString(); } else if (gt.IndexOf("*", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y * x).ToString(); } else if (gt.IndexOf("Whatisthe1stdigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("?") - 4);
} else if (gt.IndexOf("Whatisthe2nddigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 3); j = j.Substring(0, j.IndexOf("?") - 3);
} else if (gt.IndexOf("Whatisthe3rddigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 4); j = j.Substring(0, j.IndexOf("?") - 2);
} else if (gt.IndexOf("Whatisthe4thdigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 5); j = j.Substring(0, j.IndexOf("?") - 1);
} else if (gt.IndexOf("Whatisthe5thdigitof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 6); j = j.Substring(0, j.IndexOf("?") - 0);
} else if (gt.IndexOf("asdigits?", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("Whatis") + 6); j = j.Substring(0, j.IndexOf("as") - 0);
} else if (gt.IndexOf("whichisthesmallest?", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("bers") + 4); j = j.Substring(0, j.IndexOf(",w") - 0); string[] s = null; s = j.Split(','); long lng = 0; lng = Convert.ToInt64(s[s.GetLowerBound(0)]); for (var i = s.GetLowerBound(0); i <= s.GetUpperBound(0); i++) { if (lng > Convert.ToInt64(s[i])) { lng = Convert.ToInt64(s[i]); } } j = lng.ToString();
} else if (gt.IndexOf("whichisthebiggest?", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("bers") + 4); j = j.Substring(0, j.IndexOf(",w") - 0); string[] s = null; s = j.Split(','); long lng = 0; lng = Convert.ToInt64(s[s.GetUpperBound(0)]); for (var i = s.GetLowerBound(0); i <= s.GetUpperBound(0); i++) { if (lng < Convert.ToInt64(s[i])) { lng = Convert.ToInt64(s[i]); } } j = lng.ToString();
} else if (gt.IndexOf("The1stnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[0].ToString();
} else if (gt.IndexOf("The2ndnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[1].ToString();
} else if (gt.IndexOf("The3rdnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[2].ToString();
} else if (gt.IndexOf("The4thnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[3].ToString();
} else if (gt.IndexOf("The5thnumberof", System.StringComparison.OrdinalIgnoreCase) + 1 != 0) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[4].ToString(); } try { esi.Send("<message to='" + textBox4.Text + "@conference.nimbuzz.com' type='groupchat'><body>" + j + "</body></message>"); } catch { } } } } catch { } } } } inam join room - Code:
-
esi.Send("<presence to='" + txtroom.Text + "@conference.nimbuzz.com/" + txtid.Text + "' xml:lang='en'><x xmlns='http://jabber.org/protocol/muc'><password>" + txtpassrom.Text + "</password></x></presence>");
left room - Code:
-
esi.Send("<presence to='" + txtroom.Text + "@conference.nimbuzz.com/FireBuzZ taem' type='unavailable'></presence>");
dige hale!!!??aya?? |
| | | sirabi new member
Posts : 15 Emtiaz : 39124 Thanked : 0 Join date : 2013-08-13
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 4:31 pm | |
| aqa esi mc vali baz javab addmin nemide o varde room nmishe
Daram full bot minvisam |
| | | sabuory FireBuzZ TeaM
Medals : Posts : 308 Emtiaz : 40001 Thanked : 135 Join date : 2013-07-18 Age : 31 Job/Hobbies : Bikar Asl : human 21 gilan My Mood :
| | | | l!v!lonster Admin
Medals : Posts : 839 Emtiaz : 41268 Thanked : 220 Join date : 2013-06-10 Job/Hobbies : Karmand Asl : Mojtaba 26 GolesTan My Mood :
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 5:13 pm | |
| - sirabi wrote:
- aqa esi mc vali baz javab addmin nemide o varde room nmishe
Daram full bot minvisam doste aziz aval memberesh kon va test kon aslan javab mide vaghti join mizani bad age join shod anti admin esi ro bezar 100% bas j bde |
| | | sirabi new member
Posts : 15 Emtiaz : 39124 Thanked : 0 Join date : 2013-08-13
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 5:31 pm | |
| Join mishe vali anti addmin kar n m i k o n e |
| | | esi.0181 Firebuzz Member
Medals : Posts : 1065 Emtiaz : 41896 Thanked : 102 Join date : 2013-06-11 Age : 32 Job/Hobbies : danesh jo Asl : shahin-anzali-18 sale 1373/6/6 My Mood :
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 5:39 pm | |
| agha inam dige Sorce barname hata adlist room ham Neshon mide Goftam shaid lazem bashe test ham shode inam screen ya haq |
| | | i2 AmTin FireBuzZ TeaM
Medals : Posts : 130 Emtiaz : 40966 Thanked : 77 Join date : 2013-06-15 Age : 29
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] Sun Aug 18, 2013 6:32 pm | |
| salam bazam soale tekrari :'(:'( alan saate 20:59 mibashad man RamTin hastam inja Kazeroun , I Love You P - M - C :| khob berim sare asle matlab ! aval az hame aslan niyazi nist vase anti admin az void e XML [hamon OnReadXml] estefade kard !!!! mitonim ba hamon Voide Message [OnMessage] ham besazim ! aval az hame vase Join Dadane id touye room , ba estefade az Ghavaaede khode Alexander Gnuak [ag] , az dastore zir use it k.o.n.i d:| usinge morde niyaz : - Code:
-
using agsXMPP.protocol.x.muc;
- Code:
-
try { MucManager muc = new MucManager(ramtin); muc.JoinRoom(new Jid(txtroom.Text + "@conference.nimbuzz.com"), ramtin.Username, txtroompw.Text); } catch { }
ramtin esme socketemon mibashiad ! hamon ( XmppClientConnection ramtin va va va ) vase khoroj az room ham az dastore zir use it konid mellat :| - Code:
-
try { MucManager muc = new MucManager(ramtin); muc.LeaveRoom(new Jid(txtroom.Text + "@conference.nimbuzz.com"), ramtin.Username); } catch { }
hala vase anti admin , aval methode morede nazaresh ro tuye jaei ke mikhai id ro online k.o.n.i benevis , ke mishe : - Code:
-
ramtin.OnMessage += new MessageHandler(OnMessage);
hala tu ghesmate GENERAL e Form , yani ghabl ya bad az inja : - Code:
-
public Form1() { InitializeComponent(); }
benevis : - Code:
-
private string gt; private string j;
inam az Voide Messaget [inja vase anti admin estefade azash mikonim] - Code:
-
private void OnMessage(object sender, agsXMPP.protocol.client.Message msg) // vaghti payam umad , // hala man inja vase anti admin azash mikham estefade konam :| { if (base.InvokeRequired) { base.BeginInvoke(new agsXMPP.protocol.client.MessageHandler(OnMessage), new object[] { sender, msg }); } else { try { if (msg.Body != null) { if (msg.From.Server.StartsWith("conference")) { if (msg.From.Resource.ToLower().Contains("admin")) { if (msg.Body.ToLower().Contains("enter the right answer to start chatting.")) { gt = msg.Body.ToLower().Substring(msg.Body.ToLower().IndexOf("enter the right answer to start chatting.") + 42); gt = gt.Replace(" ", ""); gt = gt.Replace("=...", ""); gt = gt.Replace("thousand", ""); gt = gt.Replace("hundred", ""); gt = gt.Replace("and", ","); gt = gt.Replace("ten", "10"); gt = gt.Replace("eleven", "11"); gt = gt.Replace("twelve", "12"); gt = gt.Replace("thirteen", "13"); gt = gt.Replace("fourteen", "14"); gt = gt.Replace("fifteen", "15"); gt = gt.Replace("sixteen", "16"); gt = gt.Replace("seventeen", "17"); gt = gt.Replace("eighteen", "18"); gt = gt.Replace("nineteen", "19"); gt = gt.Replace("twenty-", "2"); gt = gt.Replace("thirty-", "3"); gt = gt.Replace("forty-", "4"); gt = gt.Replace("fifty-", "5"); gt = gt.Replace("sixty-", "6"); gt = gt.Replace("seventy-", "7"); gt = gt.Replace("eighty-", "8"); gt = gt.Replace("ninety-", "9"); gt = gt.Replace("twenty", "20"); gt = gt.Replace("thirty", "30"); gt = gt.Replace("forty", "40"); gt = gt.Replace("fifty", "50"); gt = gt.Replace("sixty", "60"); gt = gt.Replace("seventy", "70"); gt = gt.Replace("eighty", "80"); gt = gt.Replace("ninety", "90"); gt = gt.Replace("one", "1"); gt = gt.Replace("two", "2"); gt = gt.Replace("three", "3"); gt = gt.Replace("four", "4"); gt = gt.Replace("five", "5"); gt = gt.Replace("six", "6"); gt = gt.Replace("seven", "7"); gt = gt.Replace("eight", "8"); gt = gt.Replace("nine", "9"); if (gt.Contains("-")) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y - x).ToString(); } else if (gt.Contains("+")) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y + x).ToString(); } else if (gt.Contains("*")) { int y = Convert.ToInt32(gt.Substring(0, +1)); int x = Convert.ToInt32(gt.Substring(2, +1)); j = (y * x).ToString(); } else if (gt.Contains("Whatisthe1stdigitof")) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("?") - 4);
} else if (gt.Contains("Whatisthe2nddigitof")) { j = gt.Substring(gt.IndexOf("of") + 3); j = j.Substring(0, j.IndexOf("?") - 3);
} else if (gt.Contains("Whatisthe3rddigitof")) { j = gt.Substring(gt.IndexOf("of") + 4); j = j.Substring(0, j.IndexOf("?") - 2);
} else if (gt.Contains("Whatisthe4thdigitof")) { j = gt.Substring(gt.IndexOf("of") + 5); j = j.Substring(0, j.IndexOf("?") - 1);
} else if (gt.Contains("Whatisthe5thdigitof")) { j = gt.Substring(gt.IndexOf("of") + 6); j = j.Substring(0, j.IndexOf("?") - 0);
} else if (gt.Contains("asdigits?")) { j = gt.Substring(gt.IndexOf("Whatis") + 6); j = j.Substring(0, j.IndexOf("as") - 0);
} else if (gt.Contains("whichisthesmallest?")) { j = gt.Substring(gt.IndexOf("bers") + 4); j = j.Substring(0, j.IndexOf(",w") - 0); string[] s = null; s = j.Split(','); long lng = 0; lng = Convert.ToInt64(s[s.GetLowerBound(0)]); for (var i = s.GetLowerBound(0); i <= s.GetUpperBound(0); i++) { if (lng > Convert.ToInt64(s[i])) { lng = Convert.ToInt64(s[i]); } } j = lng.ToString();
} else if (gt.Contains("whichisthebiggest?")) { j = gt.Substring(gt.IndexOf("bers") + 4); j = j.Substring(0, j.IndexOf(",w") - 0); string[] s = null; s = j.Split(','); long lng = 0; lng = Convert.ToInt64(s[s.GetUpperBound(0)]); for (var i = s.GetLowerBound(0); i <= s.GetUpperBound(0); i++) { if (lng < Convert.ToInt64(s[i])) { lng = Convert.ToInt64(s[i]); } } j = lng.ToString();
} else if (gt.Contains("The1stnumberof")) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[0].ToString();
} else if (gt.Contains("The2ndnumberof")) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[1].ToString();
} else if (gt.Contains("The3rdnumberof")) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[2].ToString();
} else if (gt.Contains("The4thnumberof")) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[3].ToString();
} else if (gt.Contains("The5thnumberof")) { j = gt.Substring(gt.IndexOf("of") + 2); j = j.Substring(0, j.IndexOf("is?") - 0); string[] s = null; s = j.Split(','); j = s[4].ToString(); } ramtin.Send(new agsXMPP.protocol.client.Message(txtroom.Text +"@conference.nimbuzz.com", MessageType.groupchat, j)); } } } } } catch { } } }
sharmande dige , yekami anti admine man ba baghie fargh mikone , u dige be bozorgvarie khodet bebakhsh ! inam projecte barname : [You must be registered and logged in to see this link.]Movafagh bashi _______________________________ |
| | | Sponsored content
| Subject: Re: Help In c# ( anti Addmin + left room ) [solved] | |
| |
| | | | Help In c# ( anti Addmin + left room ) [solved] | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |