Chuyển đến nội dung chính

Bài đăng

Đang hiển thị bài đăng từ Tháng 11, 2022

Bài 9: Xóa Người và Xóa Item

  Dạo này hơi lười giải thích nên ae cứ copy cho nhanh nhé //Xóa Item #Khai báo public static bool isDelItem; public void xoaItem() { for (int i = 0; i < GameScr.vItemMap.size(); i++) { ItemMap itemMap = (ItemMap)GameScr.vItemMap.elementAt(i); if (itemMap != null && itemMap.playerId != Char.myCharz().charID && itemMap.playerId != -1) { GameScr.vItemMap.removeElementAt(i); } } } #Update if (isDelItem) { gI().xoaItem(); } #Bật/Tắt isDelItem = !isDelItem; //Xóa người trừ BOSS #Khai báo public static MyVector NBoss = new MyVector(); public static bool isDelChar; public void XoaNguoi() { for (int i = 0; i < GameScr.vCharInMap.size(); i++) { Char @char = (Char)GameScr.vCharInMap.elementAt(i); if (@char != null && @char.charID != Char.myCharz().charID * -1 && @char.bag != 31) { if (NBoss.size() > 0 && !chec...

Bài 8: Auto Vào Doanh Trại Độc Nhãn

using System; public  System.Threading; public  static bool isAutoDTDN; public  static int getMapBamBoo = 27; public  static void AutoDTDN() { while (isAutoDTDN) { try { if ( TileMap .mapID != getMapBamBoo) { XmapController .StartRunToMapId(getMapBamBoo); } else { Function .GotoNpc(25);//Không cần thiết Thread .Sleep(500); Service .gI().openMenu(25); Thread .Sleep(250); Service .gI().confirmMenu(25, 0); } } catch ( Exception ) { } } Thread.Sleep(500); if ( TileMap .mapID == 53) { isAutoDTDN = false; Note ("Đã vào"); } } //Dùng lệnh bật tắt //Chat: if(text. Equals ("dtdn")) { isAutoDTDN = !isAutoDTDN; new Thread (AutoDTDN).Start(); } //Thêm điều kiện dừng       public  static string cant_go_this_area = "Bạn chưa thể đến khu vực này";      public  static string five_new_members = "Bang hội phải có ...