Kết quả 1 đến 1 của 1
			
		Chủ đề: Giúp e 2 cái file lua này với
- 
	18-04-12, 09:04 PM #1Thành Viên      
 - Ngày tham gia
- Apr 2012
- Bài viết
- 11
- Thanks
- 0
- Thanked 1 Time in 1 Post
 Giúp e 2 cái file lua này vớilocal tbAutoBLD = Map.tbAutoBLD or {}; 
 Map.tbAutoBLD = tbAutoBLD;
 local nCastState = 0;
 local nCastTimerId = 0;
 local nCastTime = 1;
 function tbAutoBLD:Switch()
 if nCastState == 0 then
 nCastState = 1;
 me.Msg("<color=green>Ăn Thỏi Vàng by VôSong<color>");
 UiManager:OpenWindow("UI_INFOBOARD", "<bclr=Black><color=Yellow>Hãy chắc chắn bạn chỉ Thỏi Vàng trong Hành Trang<color>");
 assert(nCastTimerId == 0);
 nCastTimerId = Timer:Register(nCastTime * Env.GAME_FPS, self.AutoEat, self);
 else
 nCastState = 0;
 me.Msg("<color=yellow>Dừng Ăn Thỏi Vàng by VôSong<color>");
 UiManager:OpenWindow("UI_INFOBOARD", "<bclr=Black><color=Yellow>Đã Ngừng Sử Dụng Thỏi Vàng - VôSong<color>");
 Timer:Close(nCastTimerId);
 nCastTimerId = 0;
 end
 end
 function tbAutoBLD:AutoEat()
 if (nCastTimerId ~= 0) then
 local tbFind = me.FindItemInBags(18,1,118,1);
 for _, tbItem in pairs(tbFind) do
 me.UseItem(tbItem.pItem);
 me.AnswerQestion(1);
 me.AnswerQestion(0);
 end
 end
 end
 -- An TV By VôSong
 local tCmd={ "Map.tbAutoBLD:Switch()", "Switch", "", "Shift+C", "Shift+C", "AutoThucPham"};
 AddCommand(tCmd[4], tCmd[3], tCmd[2], tCmd[7] or UiShortcutAlias.emKSTATE_INGAME);
 UiShortcutAlias:AddAlias(tCmd[2], tCmd[1]);
 --------------------------------------------------------------------------------------------------------
 local tbAutoBLD = Map.tbAutoBLD or {};
 Map.tbAutoBLD = tbAutoBLD;
 local nCastState = 0;
 local nCastTimerId = 0;
 local nCastTime = 1;
 function tbAutoBLD:Switch()
 if nCastState == 0 then
 nCastState = 1;
 me.Msg("<color=green>Bắt Đầu Vào Du Long by VôSong<color>");
 UiManager:OpenWindow("UI_INFOBOARD", "<bclr=Black><color=Yellow>Chỉ để Chiến Thư trong Hành Trang<color>");
 assert(nCastTimerId == 0);
 nCastTimerId = Timer:Register(nCastTime * Env.GAME_FPS, self.AutoDL, self);
 else
 nCastState = 0;
 me.Msg("<color=yellow>Kết Thúc Vào Du Long by VôSong<color>");
 UiManager:OpenWindow("UI_INFOBOARD", "<bclr=Black><color=Yellow>Đã Ngừng Sử Dụng Auto Du Long - VôSong<color>");
 Timer:Close(nCastTimerId);
 nCastTimerId = 0;
 end
 end
 function tbAutoBLD:AutoEat()
 if (nCastTimerId ~= 0) then
 local tbFind = me.FindItemInBags(18,1,524,1);
 for _, tbItem in pairs(tbFind) do
 me.UseItem(tbItem.pItem);
 me.AnswerQuestion(0);
 me.AnswerQuestion(0);
 end
 end
 end
 -- An TLHL By VôSong
 local tCmd={ "Map.tbAutoBLD:Switch()", "Switch", "", "Shift+D", "Shift+D", "AutoDuLong"};
 AddCommand(tCmd[4], tCmd[3], tCmd[2], tCmd[7] or UiShortcutAlias.emKSTATE_INGAME);
 UiShortcutAlias:AddAlias(tCmd[2], tCmd[1]);
 ---------------------------------------------------------------------------------------------
 e phải sửa làm sao để cho cả 2 đều hoạt động dc. Hiện giờ nó chỉ hoạt 1 cái dù nhấn Shift+C hay Shift+D. Mong mọi người giúp đỡ.TksLần sửa cuối bởi wangzi181, ngày 18-04-12 lúc 10:56 PM. Khách viếng thăm hãy cùng wangzi181 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
 
Các Chủ đề tương tự
- 
  Cần tool pack file.spr ra file .pak và đọc file .sprBởi [M]r[K]id trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 18Bài viết cuối: 23-11-19, 08:48 AM
- 
  Hỏi cách bung file settings trong file pak ở client của VNGBởi hanamnet1 trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 5Bài viết cuối: 01-09-15, 09:01 PM
- 
  Share All File .txt Unpack File .pak ( Settings , Skill , Ui )Bởi ohishu trong diễn đàn Võ Lâm Truyền Kỳ (Jx Server)Trả lời: 18Bài viết cuối: 06-05-13, 12:54 AM
- 
  [MU] Ai có file shop bán đồ full và 1 file chuẩn của MU online cho mình vớiBởi anhday trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 3Bài viết cuối: 17-04-12, 03:24 PM
- 
  [Hướng dẫn] Thay đổi Port file ConnectServer.exe và file Main.exeBởi cuonglee trong diễn đàn Guides - Kho Lưu trữTrả lời: 21Bài viết cuối: 21-01-10, 05:52 PM

 
				 
				 
				 
				 
				 
				 
			



 
					
					
					
						 Trả lời kèm Trích dẫn
  Trả lời kèm Trích dẫn