Kết quả 81 đến 90 của 100
Chủ đề: Vòng quay may mắn
-
22-05-15, 02:17 PM #81
- Ngày tham gia
- Mar 2010
- Bài viết
- 197
- Thanks
- 53
- Thanked 9 Times in 7 Posts
Ðề: Vòng quay may mắn
Mình đã suy nghĩ ra cách anti được nó.
Giấu file không phải là giải phápchỉ chống đc trẻ trâu.
Cần phải gộp đc config và interface thành 1 file .dll và mã hóa nó theo kiểu tình kiếm
Thanks allKhách viếng thăm hãy cùng natuan86 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
04-06-15, 03:22 PM #82
- Ngày tham gia
- Mar 2010
- Bài viết
- 197
- Thanks
- 53
- Thanked 9 Times in 7 Posts
Ðề: Vòng quay may mắn - Sói ơi giúp mình
Sói ơi cho mình hỏi:
Mình sửa cái mã script trong interface file TurnPlate.lua từ 930038 qua 921323 sau đó chạy client lên thì bị báo lỗi C++ là sao bạn nhỉ.Khách viếng thăm hãy cùng natuan86 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
13-06-15, 01:07 AM #83
- Ngày tham gia
- Mar 2007
- Bài viết
- 102
- Thanks
- 3
- Thanked 146 Times in 22 Posts
Ðề: Vòng quay may mắn
Học hỏi đc gì từ FPT ở 2 file này
Code:local TP = {} local TPXZ = {} local TPTX = {} local PlateTx = {} local PlateInfo = 24 local PlateCount = 1 local NUM = 1 local ConfirmCostYB = 1 --ĬÈÏÐèÒªÌáʾ local UIzhuanpanInfoCommand = 2012816 local UIjiangpinInfoCommand = 20120817 local g_TurnPlate_Frame_UnifiedPosition; --¼Ç¼¿Í»§¶ËתÅÌÇé¿ö local g_PlateInfo = {}; function TurnPlate_PreLoad() this:RegisterEvent("UI_COMMAND"); this:RegisterEvent("VIEW_RESOLUTION_CHANGED") end function TurnPlate_OnLoad() TP[1] = TurnPlate_wupin1; TP[2] = TurnPlate_wupin2; TP[3] = TurnPlate_wupin3; TP[4] = TurnPlate_wupin4; TP[5] = TurnPlate_wupin5; TP[6] = TurnPlate_wupin6; TP[7] = TurnPlate_wupin7; TP[8] = TurnPlate_wupin8; TP[9] = TurnPlate_wupin9; TP[10] = TurnPlate_wupin10; TP[11] = TurnPlate_wupin11; TP[12] = TurnPlate_wupin12; TP[13] = TurnPlate_wupin13; TP[14] = TurnPlate_wupin14; TP[15] = TurnPlate_wupin15; TP[16] = TurnPlate_wupin16; TP[17] = TurnPlate_wupin17; TP[18] = TurnPlate_wupin18; TP[19] = TurnPlate_wupin19; TP[20] = TurnPlate_wupin20; TP[21] = TurnPlate_wupin21; TP[22] = TurnPlate_wupin22; TP[23] = TurnPlate_wupin23; TP[24] = TurnPlate_wupin24; TPXZ[1] = TurnPlate_wupinxz1; TPXZ[2] = TurnPlate_wupinxz2; TPXZ[3] = TurnPlate_wupinxz3; TPXZ[4] = TurnPlate_wupinxz4; TPXZ[5] = TurnPlate_wupinxz5; TPXZ[6] = TurnPlate_wupinxz6; TPXZ[7] = TurnPlate_wupinxz7; TPXZ[8] = TurnPlate_wupinxz8; TPXZ[9] = TurnPlate_wupinxz9; TPXZ[10] = TurnPlate_wupinxz10; TPXZ[11] = TurnPlate_wupinxz11; TPXZ[12] = TurnPlate_wupinxz12; TPXZ[13] = TurnPlate_wupinxz13; TPXZ[14] = TurnPlate_wupinxz14; TPXZ[15] = TurnPlate_wupinxz15; TPXZ[16] = TurnPlate_wupinxz16; TPXZ[17] = TurnPlate_wupinxz17; TPXZ[18] = TurnPlate_wupinxz18; TPXZ[19] = TurnPlate_wupinxz19; TPXZ[20] = TurnPlate_wupinxz20; TPXZ[21] = TurnPlate_wupinxz21; TPXZ[22] = TurnPlate_wupinxz22; TPXZ[23] = TurnPlate_wupinxz23; TPXZ[24] = TurnPlate_wupinxz24; TPTX[1] = TurnPlate_wupintx1 TPTX[2] = TurnPlate_wupintx2 TPTX[3] = TurnPlate_wupintx3 TPTX[4] = TurnPlate_wupintx4 TPTX[5] = TurnPlate_wupintx5 TPTX[6] = TurnPlate_wupintx6 TPTX[7] = TurnPlate_wupintx7 TPTX[8] = TurnPlate_wupintx8 TPTX[9] = TurnPlate_wupintx9 TPTX[10] = TurnPlate_wupintx10 TPTX[11] = TurnPlate_wupintx11 TPTX[12] = TurnPlate_wupintx12 TPTX[13] = TurnPlate_wupintx13 TPTX[14] = TurnPlate_wupintx14 TPTX[15] = TurnPlate_wupintx15 TPTX[16] = TurnPlate_wupintx16 TPTX[17] = TurnPlate_wupintx17 TPTX[18] = TurnPlate_wupintx18 TPTX[19] = TurnPlate_wupintx19 TPTX[20] = TurnPlate_wupintx20 TPTX[21] = TurnPlate_wupintx21 TPTX[22] = TurnPlate_wupintx22 TPTX[23] = TurnPlate_wupintx23 TPTX[24] = TurnPlate_wupintx24 PlateCount = 1; math.randomseed(os.time()); g_TurnPlate_Frame_UnifiedPosition = TurnPlate_Frame:GetProperty("UnifiedPosition"); TurnPlate_querentishi:SetCheck(ConfirmCostYB) end function TurnPlate_OnEvent(event) if ( event == "UI_COMMAND" and tonumber(arg0) == UIzhuanpanInfoCommand ) then --ÏÔʾתÅÌ TurnPlate_Clear(); local Plate = {} local PlateNum = {} local PltaeIcon = {} local PlateFullIcon = {} local PlateName = {} local i = 0; while i < PlateInfo do Plate[i] = Get_XParam_INT(i*2); PlateNum[i] = math.mod(Get_XParam_INT(i*2+1),10000); PlateTX[i] = math.floor(Get_XParam_INT(i*2+1)/10000); if(PlateTX[i] >= 1) then TPTX[i+1]:Show(); end i = i + 1; end for j=0,23 do PlateIcon[j] = SearchItemIcon(Plate[j]); PlateName[j] = SearchItemName(Plate[j]); PlateFullIcon[j] = GetIconFullName(PlateIcon[j]); TP[j+1]:SetProperty("Image", PlateFullIcon[j]); TP[j+1]:SetToolTip(PlateName[j].."X"..PlateNum[j]); TPXZ[j+1]:SetToolTip(PlateName[j].."X"..PlateNum[j]); TP[j+1]:SetProperty("visible", "true"); --wtm,¼Ç¼¿Í»§¶Ë״̬ g_PlateInfo[j+1] = {id=Plate[j],num=PlateNum[j]} end Sound:PlaySound(497, false); TurnPlate_querentishi:SetCheck(ConfirmCostYB) this:Show(); elseif ( event == "UI_COMMAND" and tonumber(arg0) == UIjiangpinInfoCommand ) then TPXZ[NUM]:Hide(); NUM = Get_XParam_INT(0); PlateCount = 1; TurnPlate_choujiang:SetProperty("Disabled","true"); TurnPlate_genghuan:SetProperty("Disabled","true"); TurnPlate_lingqu:SetProperty("Disabled","true"); SetTimer("TurnPlate","TurnPlate_TimerProcYunSu()",100); Sound:PlaySound(499, false); elseif (event == "VIEW_RESOLUTION_CHANGED") then TurnPlate_Frame_On_ResetPos(); end end function TurnPlate_Click_SetTimer(id) id = tonumber(id) end function TurnPlate_TimerProcYunSu() if( PlateCount == 1) then TPXZ[PlateCount]:Show(); PlateCount = PlateCount + 1; elseif( PlateCount > 1 and PlateCount < 16) then TPXZ[PlateCount-1]:Hide(); TPXZ[PlateCount]:Show(); PlateCount = PlateCount + 1; elseif( PlateCount == 16) then TPXZ[PlateCount-1]:Hide(); TPXZ[PlateCount]:Show(); PlateCount = PlateCount + 1; KillTimer("TurnPlate_TimerProcYunSu()"); SetTimer("TurnPlate","TurnPlate_TimerProcBianSu()",30); end end function TurnPlate_TimerProcBianSu() if(PlateCount > 16 and PlateCount <= 24) then TPXZ[PlateCount-1]:Hide(); TPXZ[PlateCount]:Show(); PlateCount = PlateCount + 1; elseif( PlateCount ==25) then TPXZ[PlateCount-1]:Hide(); TPXZ[PlateCount-24]:Show(); PlateCount = PlateCount + 1; elseif(PlateCount > 25 and PlateCount <= 39) then TPXZ[PlateCount-25]:Hide(); TPXZ[PlateCount-24]:Show(); PlateCount = PlateCount + 1; elseif( PlateCount ==40) then TPXZ[PlateCount-25]:Hide(); TPXZ[PlateCount-24]:Show(); if( NUM < 12) then TPXZ[PlateCount-25]:Hide(); TPXZ[PlateCount-24]:Show(); PlateCount = PlateCount + 1; KillTimer("TurnPlate_TimerProcBianSu()"); SetTimer("TurnPlate","TurnPlate_TimerProcBian2Su()",100); else PlateCount = PlateCount + 1; end elseif( PlateCount > 40 and PlateCount <= 48) then TPXZ[PlateCount-25]:Hide(); TPXZ[PlateCount-24]:Show(); PlateCount = PlateCount + 1; elseif( PlateCount ==49) then TPXZ[PlateCount-25]:Hide(); TPXZ[PlateCount-48]:Show(); PlateCount = PlateCount + 1; KillTimer("TurnPlate_TimerProcBianSu()"); SetTimer("TurnPlate","TurnPlate_TimerProcBian2Su()",100); end end function TurnPlate_TimerProcBian2Su() if ( PlateCount > 40 and PlateCount <= 48) then TPXZ[PlateCount-25]:Hide(); TPXZ[PlateCount-24]:Show(); PlateCount = PlateCount + 1; elseif ( PlateCount ==49) then TPXZ[PlateCount-25]:Hide(); TPXZ[PlateCount-48]:Show(); PlateCount = PlateCount + 1; elseif( PlateCount > 49 and PlateCount <= 48+ NUM) then TPXZ[PlateCount-49]:Hide(); TPXZ[PlateCount-48]:Show(); PlateCount = PlateCount + 1; else KillTimer("TurnPlate_TimerProcBian2Su()") TurnPlate_choujiang:SetProperty("Disabled","false"); TurnPlate_genghuan:SetProperty("Disabled","false"); TurnPlate_lingqu:SetProperty("Disabled","false"); end end function TurnPlate_ChouJiang() --¸ø·þÎñÆ÷·¢Ëͳ齱ÏûÏ¢ Clear_XSCRIPT(); Set_XSCRIPT_Function_Name("JudgRandomRouletteItem"); Set_XSCRIPT_ScriptID(890022); --wtm,È·±£¿Í»§¶ËºÍ·þÎñÆ÷תÅÌÐÅÏ¢ÊÇÒ»Ö嵀 --¼ÆËã¿Í»§¶ËÐÅÏ¢ local ret1 = 0 local ret2 = 0 for i=1,24 do local id,num = g_PlateInfo[i].id,g_PlateInfo[i].num ret1 = ret1 + (math.mod(id,13)+num)*i ret2 = ret2 + math.mod(id,num) * i end Set_XSCRIPT_Parameter(0,ret1) Set_XSCRIPT_Parameter(1,ret2) Set_XSCRIPT_Parameter(2,ConfirmCostYB) Set_XSCRIPT_ParamCount(3) --wtm end Send_XSCRIPT(); end function TurnPlate_HuanZhuanPan() --¸ø·þÎñÆ÷·¢Ë͸ü»»×ªÅÌÏûÏ¢ Clear_XSCRIPT(); Set_XSCRIPT_Function_Name("JudgChangeRouletteItem"); Set_XSCRIPT_ScriptID(890022); Set_XSCRIPT_ParamCount(0); Send_XSCRIPT(); end function TurnPlate_LingJiang() --¸ø·þÎñÆ÷·¢ËÍÁì½±ÏûÏ¢ Clear_XSCRIPT(); Set_XSCRIPT_Function_Name("GetItem"); Set_XSCRIPT_ScriptID(890022); Set_XSCRIPT_ParamCount(0); Send_XSCRIPT(); end function TurnPlate_Clear() for i = 1,24 do PlateTX[i] = 0; TPXZ[i]:SetProperty("visible", "flase"); TPTX[i]:Hide(); end --this:Show(); end function TurnPlate_Frame_On_ResetPos() TurnPlate_Frame:SetProperty("UnifiedPosition", g_TurnPlate_Frame_UnifiedPosition); end function TurnPlate_Close() this:Hide(); TurnPlate_Frame_On_ResetPos(); end function TurnPlate_querentishi_Clicked() if ConfirmCostYB == 1 then ConfirmCostYB = 0 else ConfirmCostYB = 1 end end
Code:local g_FrameInfo local g_ClickOk local g_ClickCancel local RandomNeedItem =30504584 --ÐÒÔËÖ¸Õë local ChangeRouletteNeedItem =30504583 --ÐÒÔ˹û local UIItemDoubleCheckCommand = 2012818 --=============================================== -- OnLoad() --=============================================== function TurnPlateBox_PreLoad() this:RegisterEvent("UI_COMMAND"); end --=============================================== -- OnLoad() --=============================================== function TurnPlateBox_OnLoad() end --=============================================== -- OnEvent() --=============================================== function TurnPlateBox_OnEvent(event) g_ClickOk = 0 g_ClickCancel = 0 g_FrameInfo = 0 TurnPlateBox_UpdateFrame(); if ( event == "UI_COMMAND" and tonumber(arg0) == UIItemDoubleCheckCommand) then if(Get_XParam_INT(0) == 890022 and Get_XParam_INT(1) == ChangeRouletteNeedItem )then --È·ÈÏʹÓÃÐÒÔËguo g_FrameInfo = ChangeRouletteNeedItem local MsgText = "#{XYZP_12}"; TurnPlateBox_Text:SetText( MsgText ) this:Show(); elseif( Get_XParam_INT(0) == 890022 and Get_XParam_INT(1) == RandomNeedItem ) then --È·ÈÏʹÓÃÐÒÔËÖ¸Õë g_FrameInfo = RandomNeedItem local MsgText = "#{XYZP_11}"; TurnPlateBox_Text:SetText( MsgText ) this:Show(); end end end --=============================================== -- UpdateFrame --=============================================== function TurnPlateBox_UpdateFrame() --TurnPlateBox_PageHeader_Name:SetText("OK"); end --=============================================== -- µã»÷È·¶¨£¨IDOK£© --=============================================== function TurnPlateBox_OK_Clicked() if( g_FrameInfo == RandomNeedItem ) then Clear_XSCRIPT(); Set_XSCRIPT_Function_Name("RandomItem"); Set_XSCRIPT_ScriptID(890022); Set_XSCRIPT_ParamCount(0); Send_XSCRIPT(); elseif( g_FrameInfo == ChangeRouletteNeedItem) then Clear_XSCRIPT(); Set_XSCRIPT_Function_Name("RandomRoulette"); Set_XSCRIPT_ScriptID(890022); Set_XSCRIPT_ParamCount(0); Send_XSCRIPT(); end g_ClickOk = 1 this:Hide(); end --=============================================== -- ·ÅÆú°Ú̯(IDCONCEL) --=============================================== function TurnPlateBox_Cancel_Clicked() g_ClickCancel = 1 this:Hide(); end function TurnPlateBox_OnHide() this:Hide(); end
Khách viếng thăm hãy cùng vtv8 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
13-06-15, 08:16 AM #84
- Ngày tham gia
- Apr 2011
- Đang ở
- 地獄
- Bài viết
- 3,991
- Thanks
- 369
- Thanked 4,069 Times in 1,403 Posts
Ðề: Vòng quay may mắn
Thật ra cũng chỉ cần đến XML là có thể tùy biến ra đc hết. Có điều ở đây FPT đã làm sẵn nên chúng ta tận dụng thôi. Còn nếu ko cần thì tự design XML (Cũng ko khó) vấn đề là nó hơi lâu một chút nhưng đảm bảo code dễ hiểu hơn nhiều
Khách viếng thăm hãy cùng Sói Đẹp Trai xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
Các thành viên gởi lời cảm ơn đến Sói Đẹp Trai vì bài viết này !
akiem9x (20-06-15)
-
20-06-15, 12:14 PM #85
Ðề: Vòng quay may mắn
Bọn tàu nó có mod Vòng Quay đó Sói ơi
hàng thương mại no BUG và 1 số phần thưởng nhìn khá đẹp.... Lần này mình thấy tàu nó làm dữ rồi
Điêu Văn all item, Chân nguyên, Thần Mộc v.v.v.
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]Khách viếng thăm hãy cùng akiem9x xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
20-06-15, 12:15 PM #86
- Ngày tham gia
- Jan 2014
- Đang ở
- LA
- Bài viết
- 1,233
- Thanks
- 286
- Thanked 1,099 Times in 474 Posts
Ðề: Vòng quay may mắn
Khách viếng thăm hãy cùng makute7413 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
20-06-15, 01:00 PM #87
Ðề: Vòng quay may mắn
Khách viếng thăm hãy cùng akiem9x xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
20-06-15, 01:09 PM #88
- Ngày tham gia
- Apr 2011
- Đang ở
- 地獄
- Bài viết
- 3,991
- Thanks
- 369
- Thanked 4,069 Times in 1,403 Posts
Ðề: Vòng quay may mắn
Thật ra cái vòng này có gì mà khó fix bug đâu. Đẩy hết về sv là xong chứ gì. Nhưng mà ở đây vấn đề là chơi offline nên để client xử lý bình thường. Còn điêu văn all item với Chân nguyên thì dễ như ăn cháo
--- Chế độ gộp bài viết ---
Cái khung bên dưới nhìn giống quay sổ số quá nhỉ. Khi nào design thử cái xem sao. Design xml cũng ko khóKhách viếng thăm hãy cùng Sói Đẹp Trai xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
20-06-15, 01:19 PM #89
- Ngày tham gia
- Apr 2011
- Đang ở
- 地獄
- Bài viết
- 3,991
- Thanks
- 369
- Thanked 4,069 Times in 1,403 Posts
Ðề: Vòng quay may mắn
Những thứ mình làm đc chỉ có từng này thôi còn cao siêu hơn thì chịu
Lần sửa cuối bởi Sói Đẹp Trai, ngày 20-06-15 lúc 01:23 PM.
Khách viếng thăm hãy cùng Sói Đẹp Trai xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
-
Các thành viên gởi lời cảm ơn đến Sói Đẹp Trai vì bài viết này !
akiem9x (20-06-15)
-
20-06-15, 01:48 PM #90
Ðề: Vòng quay may mắn
Trào lưu BéBi hả thím
Cái khung trên là quà thăng cấp và phần thưởng TOP
Ý mình là bọn tàu nó cũng có ăn theo rồi đó mà...ko phải bug hay ko bug
Mình chỉ thích nhất vẻ 2.9 >3.01 về sau chức năng nhiều quá...mạnh quá....đau đầuLần sửa cuối bởi akiem9x, ngày 20-06-15 lúc 02:04 PM.
Khách viếng thăm hãy cùng akiem9x xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
Các Chủ đề tương tự
-
[MU] Tình trạng lag máy quay chao khi quay đồ và mất luôn
Bởi bkromeo trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 9Bài viết cuối: 11-04-14, 05:06 PM -
[MU] Vấn đề items không thể để vào máy Quay Chaos để Quay
Bởi Jackieldm trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 1Bài viết cuối: 13-05-13, 01:37 AM -
[KT] Vấn đề Quay Vỏ Sò Vàng,
Bởi kakakura trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 2Bài viết cuối: 22-02-12, 10:44 PM -
Lâu Lắm Mới Quay Lại Jx
Bởi quangken trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 45Bài viết cuối: 02-02-11, 06:15 PM -
Quay trở lại thời Sơn Hà Xã Tắc...
Bởi ph4mduc4n trong diễn đàn Võ Lâm Truyền Kỳ (Jx Server)Trả lời: 55Bài viết cuối: 24-09-10, 05:57 PM