[TLBB] Share Script Hộp Quà May Mắn
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 3 của 3
  1. #1
    Thành Viên s2bac95's Avatar
    Ngày tham gia
    Nov 2011
    Bài viết
    220
    Thanks
    55
    Thanked 72 Times in 51 Posts

    Share Script Hộp Quà May Mắn

    Mình tham gia cũng lâu lâu, thực sự gần đây mình mới hoạt động đều và nhiều hơn. giờ mình có 1 cái Script đơn giản thôi mong mọi người đừng chê nhé !

    PHP Code:
    -- Hop Qua May Man 
    -- s2bac95
    -- clbgamesvn.com
    x901234_g_ScriptId    
    901234 -- ID Script
    x901234_g_ItemId 
    30503164 -- ID cua Item Quy Dinh Trong Commonitem.txt
    x901234_g_BaoShiId 
    = {
    30505167, -- Tien Vang Nho [1-5]
    30505167,
    30505167,
    30505167,
    30505167,
    30505168, -- Tien Vang Lon [5-10]
    30505168,
    30505168,
    30505168,
    30505168
    39910008, -- 3K Diem Tang [11-15]
    39910008,
    39910008,
    39910008,
    39910008,
    39910009,-- 5K Diem Tang [16-20]
    39910009,
    39910009,
    39910009,
    39910009,
    30008014, -- X2.5 [21 25]
    30008014,
    30008014,
    30008014,
    30008014,
    30900016, -- Cao Cap Hop Thanh Phu [26 30]
    30900016,
    30900016,
    30900016,
    30900016,
    30503143, -- Bao Thach Trac Khac Phu [31 35]
    30503143,
    30503143,
    30503143,
    30503143,
    30503168, -- The Vip 1 [36 40]
    30503168,
    30503168,
    30503168,
    30503168,
    20310158, -- Vo Hon Dich Tuong Dan [41 46]
    20310158,
    20310158,
    20310158,
    20310158,
    10149077, -- Toa Ky Thuoc Tinh  46 50
    10149077
    ,
    10149077,
    10149077,
    10149077,
    10124610, -- Thoi Trang 51 55
    10124610
    ,
    10124610,
    10124610,
    10124610,
    30121001, -- Dieu Van
    30121001
    ,
    30121001,
    30121001,
    30121001,
    30121001,
    }

    function 
    x901234_OnDefaultEventsceneIdselfId)
        
    local    nam    LuaFnGetNamesceneIdselfId )

         --
    Kiem Tra Tay Nai

        
    if LuaFnGetPropertyBagSpacesceneIdselfId ) < 2 then
            BeginEvent
    (sceneId)
                
    AddText(sceneId,"#b#GBOn phäi d¬ tr¯ng 2 ô ĐOo cø, ho£c tay näi d¬ có th¬ m· hµp quà may m¡n !")
            
    EndEvent(sceneId)
            
    DispatchEventList(sceneId,selfId,targetId)
            return
        
    end
        
    if LuaFnGetMaterialBagSpacesceneIdselfId ) < 1 then
                BeginEvent
    (sceneId)
            
    AddText(sceneId,"#b#GBOn phäi d¬ tr¯ng 2 ô ĐOo cø, ho£c tay näi d¬ có th¬ m· hµp quà may m¡n !")
            
    EndEvent(sceneId)
            
    DispatchEventList(sceneId,selfId,targetId)
            return
        
    end

        local GiftId 
    0   
        local strtext
        
        
    for i=0,do
        --
    Quay Random nhan Qua
    local odds 
    random(1,610)
          if( 
    odds >= and odds <= 10 then
            GiftId 
    x901234_g_BaoShiId[1]
            
    strtext "Ti«n Vàng [Nhö]"
          
    elseif( odds >= 11 and odds <= 20 then
            GiftId 
    x901234_g_BaoShiId[2]
            
    strtext "Ti«n Vàng [Nhö]"
          
    elseif( odds >= 21 and odds <= 30 then
            GiftId 
    x901234_g_BaoShiId[3]
            
    strtext "Ti«n Vàng [Nhö]"
          
    elseif( odds >= 31 and odds <= 40 then
            GiftId 
    x901234_g_BaoShiId[4]
            
    strtext "Ti«n Vàng [Nhö]"
          
    elseif( odds >= 41 and odds <= 50 then
            GiftId 
    x901234_g_BaoShiId[5]
            
    strtext "Ti«n Vàng [Nhö]"
          
    elseif( odds >= 51 and odds <= 60 then
            GiftId 
    x901234_g_BaoShiId[6]
            
    strtext "Ti«n Vàng [L¾n]"
          
    elseif( odds >= 61 and odds <= 70 then
            GiftId 
    x901234_g_BaoShiId[7]
            
    strtext "Ti«n Vàng [L¾n]"
          
    elseif( odds >= 71 and odds <= 80 then
            GiftId 
    x901234_g_BaoShiId[8]
            
    strtext "Ti«n Vàng [L¾n]"
          
    elseif( odds >= 81 and odds <= 90 then
            GiftId 
    x901234_g_BaoShiId[9]
            
    strtext "Ti«n Vàng [L¾n]"
          
    elseif( odds >= 91 and odds <= 100 then
            GiftId 
    x901234_g_BaoShiId[10]
            
    strtext "Ti«n Vàng [L¾n]"
          
    elseif( odds >= 101 and odds <= 110 then
            GiftId 
    x901234_g_BaoShiId[11]
            
    strtext "Phiªu di¬m t£ng 3K"
          
    elseif( odds >= 111 and odds <= 120 then
            GiftId 
    x901234_g_BaoShiId[12]
            
    strtext "Phiªu di¬m t£ng 3K"
          
    elseif( odds >= 121 and odds <= 130 then
            GiftId 
    x901234_g_BaoShiId[13]
            
    strtext "Phiªu di¬m t£ng 3K"
          
    elseif( odds >= 131 and odds <= 140 then
            GiftId 
    x901234_g_BaoShiId[14]
            
    strtext "Phiªu di¬m t£ng 3K"
          
    elseif( odds >= 141 and odds <= 150 then
            GiftId 
    x901234_g_BaoShiId[15]
            
    strtext "Phiªu di¬m t£ng 3K"
          
    elseif( odds >= 151 and odds <= 160 then
            GiftId 
    x901234_g_BaoShiId[16]
            
    strtext "Phiªu di¬m t£ng 5K"
          
    elseif( odds >= 161 and odds <= 170 then
            GiftId 
    x901234_g_BaoShiId[17]
            
    strtext "Phiªu di¬m t£ng 5K"
          
    elseif( odds >= 171 and odds <= 180 then
            GiftId 
    x901234_g_BaoShiId[18]
            
    strtext "Phiªu di¬m t£ng 5K"
          
    elseif( odds >= 181 and odds <= 190 then
            GiftId 
    x901234_g_BaoShiId[19]
            
    strtext "Phiªu di¬m t£ng 5K"
          
    elseif( odds >= 191 and odds <= 200 then
            GiftId 
    x901234_g_BaoShiId[20]
            
    strtext "Phiªu di¬m t£ng 5K"
          
    elseif( odds >= 201 and odds <= 210 then
            GiftId 
    x901234_g_BaoShiId[21]
            
    strtext "Thông Thiên Linh Đan"
          
    elseif( odds >= 211 and odds <= 220 then
            GiftId 
    x901234_g_BaoShiId[22]
            
    strtext "Thông Thiên Linh Đan"
          
    elseif( odds >= 221 and odds <= 230 then
            GiftId 
    x901234_g_BaoShiId[23]
            
    strtext "Thông Thiên Linh Đan"
          
    elseif( odds >= 231 and odds <= 240 then
            GiftId 
    x901234_g_BaoShiId[24]
            
    strtext "Thông Thiên Linh Đan"
          
    elseif( odds >= 241 and odds <= 250 then
            GiftId 
    x901234_g_BaoShiId[25]
            
    strtext "Thông Thiên Linh Đan"
          
    elseif( odds >= 251 and odds <= 260 then
            GiftId 
    x901234_g_BaoShiId[26]
            
    strtext "Cao C¤p H?p Thành Phù"
          
    elseif( odds >= 261 and odds <= 270 then
            GiftId 
    x901234_g_BaoShiId[27]
            
    strtext "Cao C¤p H?p Thành Phù"
          
    elseif( odds >= 271 and odds <= 280 then
            GiftId 
    x901234_g_BaoShiId[28]
            
    strtext "Cao C¤p H?p Thành Phù"
          
    elseif( odds >= 281 and odds <= 290 then
            GiftId 
    x901234_g_BaoShiId[29]
            
    strtext "Cao C¤p H?p Thành Phù"
          
    elseif( odds >= 291 and odds <= 300 then
            GiftId 
    x901234_g_BaoShiId[30]
            
    strtext "Cao C¤p H?p Thành Phù"
          
    elseif( odds >= 301 and odds <= 310 then
            GiftId 
    x901234_g_BaoShiId[31]
            
    strtext "Bäo ThOch Trác Kh¡c Phù"
          
    elseif( odds >= 311 and odds <= 320 then
            GiftId 
    x901234_g_BaoShiId[32]
            
    strtext "Bäo ThOch Trác Kh¡c Phù"
          
    elseif( odds >= 321 and odds <= 330 then
            GiftId 
    x901234_g_BaoShiId[33]
            
    strtext "Bäo ThOch Trác Kh¡c Phù"
          
    elseif( odds >= 322 and odds <= 340 then
            GiftId 
    x901234_g_BaoShiId[34]
            
    strtext "Bäo ThOch Trác Kh¡c Phù"
          
    elseif( odds >= 323 and odds <= 350 then
            GiftId 
    x901234_g_BaoShiId[35]
            
    strtext "Bäo ThOch Trác Kh¡c Phù"
          
    elseif( odds >= 324 and odds <= 360 then
            GiftId 
    x901234_g_BaoShiId[36]
            
    strtext "Thë Vip 1"
          
    elseif( odds >= 325 and odds <= 370 then
            GiftId 
    x901234_g_BaoShiId[37]
            
    strtext "Thë Vip 1"
          
    elseif( odds >= 326 and odds <= 380 then
            GiftId 
    x901234_g_BaoShiId[38]
            
    strtext "Thë Vip 1"
          
    elseif( odds >= 327 and odds <= 390 then
            GiftId 
    x901234_g_BaoShiId[39]
            
    strtext "Thë Vip 1"
          
    elseif( odds >= 328 and odds <= 400 then
            GiftId 
    x901234_g_BaoShiId[40]
            
    strtext "Thë Vip 1"
          
    elseif( odds >= 329 and odds <= 410 then
            GiftId 
    x901234_g_BaoShiId[41]
            
    strtext "Vo H°n D¸ch Tß¾ng Đan"
          
    elseif( odds >= 330 and odds <= 420 then
            GiftId 
    x901234_g_BaoShiId[42]
            
    strtext "Vo H°n D¸ch Tß¾ng Đan"
          
    elseif( odds >= 331 and odds <= 430 then
            GiftId 
    x901234_g_BaoShiId[43]
            
    strtext "Vo H°n D¸ch Tß¾ng Đan"
          
    elseif( odds >= 332 and odds <= 440 then
            GiftId 
    x901234_g_BaoShiId[44]
            
    strtext "Vo H°n D¸ch Tß¾ng Đan"
          
    elseif( odds >= 333 and odds <= 450 then
            GiftId 
    x901234_g_BaoShiId[45]
            
    strtext "Vo H°n D¸ch Tß¾ng Đan"
          
    elseif( odds >= 334 and odds <= 460 then
            GiftId 
    x901234_g_BaoShiId[46]
            
    strtext "T÷a KÜ: Nhung Tuyªt Th¥n Ngßu"
          
    elseif( odds >= 335 and odds <= 470 then
            GiftId 
    x901234_g_BaoShiId[47]
            
    strtext "T÷a KÜ: Nhung Tuyªt Th¥n Ngßu"
          
    elseif( odds >= 336 and odds <= 480 then
            GiftId 
    x901234_g_BaoShiId[48]
            
    strtext "T÷a KÜ: Nhung Tuyªt Th¥n Ngßu"
          
    elseif( odds >= 337 and odds <= 490 then
            GiftId 
    x901234_g_BaoShiId[49]
            
    strtext "T÷a KÜ: Nhung Tuyªt Th¥n Ngßu"
          
    elseif( odds >= 338 and odds <= 500 then
            GiftId 
    x901234_g_BaoShiId[50]
            
    strtext "T÷a KÜ: Nhung Tuyªt Th¥n Ngßu"
          
    elseif( odds >= 339 and odds <= 510 then
            GiftId 
    x901234_g_BaoShiId[51]
            
    strtext "Th¶i Trang: Ng÷c Vû Thanh Trù"
            
    elseif( odds >= 340 and odds <= 520 then
            GiftId 
    x901234_g_BaoShiId[52]
            
    strtext "Th¶i Trang: Ng÷c Vû Thanh Trù"
            
    elseif( odds >= 341 and odds <= 530 then
            GiftId 
    x901234_g_BaoShiId[53]
            
    strtext "Th¶i Trang: Ng÷c Vû Thanh Trù"
            
    elseif( odds >= 342 and odds <= 540 then
            GiftId 
    x901234_g_BaoShiId[54]
            
    strtext "Th¶i Trang: Ng÷c Vû Thanh Trù"
            
    elseif( odds >= 343 and odds <= 550 then
            GiftId 
    x901234_g_BaoShiId[55]
            
    strtext "Th¶i Trang: Ng÷c Vû Thanh Trù"
            
    elseif( odds >= 344 and odds <= 560 then
            GiftId 
    x901234_g_BaoShiId[56]
            
    strtext "Điêu Vån Thñc Kh¡c Dung T«"
            
    elseif( odds >= 345 and odds <= 570 then
            GiftId 
    x901234_g_BaoShiId[57]
            
    strtext "Điêu Vån Thñc Kh¡c Dung T«"
            
    elseif( odds >= 346 and odds <= 580 then
            GiftId 
    x901234_g_BaoShiId[58]
            
    strtext "Điêu Vån Thñc Kh¡c Dung T«"
            
    elseif( odds >= 347 and odds <= 590 then
            GiftId 
    x901234_g_BaoShiId[59]
            
    strtext "Điêu Vån Thñc Kh¡c Dung T«"
            
    elseif( odds >= 348 and odds <= 600 then
            GiftId 
    x901234_g_BaoShiId[60]
            
    strtext "Điêu Vån Thñc Kh¡c Dung T«"
            
    elseif( odds >= 349 and odds <= 610 then
            GiftId 
    x901234_g_BaoShiId[61]
            
    strtext "????"
            
    elseif( odds >= 350 and odds <= 620 then
            GiftId 
    x901234_g_BaoShiId[62]
            
    strtext "55"
            
    elseif( odds >= 351 and odds <= 630 then
            GiftId 
    x901234_g_BaoShiId[63]
            
    strtext "44"
            
    elseif( odds >= 352 and odds <= 640 then
            GiftId 
    x901234_g_BaoShiId[64]
            
    strtext "33"
            
    elseif( odds >= 353 and odds <= 650 then
            GiftId 
    x901234_g_BaoShiId[65]
            
    strtext "22"
            
    elseif( odds >= 354 and odds <= 660 then
            GiftId 
    x901234_g_BaoShiId[66]
            
    strtext "11"
            
    elseif( odds >= 355 and odds <= 670 then
            GiftId 
    x901234_g_BaoShiId[67]
            
    strtext "???"
            
    elseif( odds >= 356 and odds <= 680 then
            GiftId 
    x901234_g_BaoShiId[68]
            
    strtext "????"
            
    elseif( odds >= 357 and odds <= 690 then
            GiftId 
    x901234_g_BaoShiId[69]
            
    strtext "????"
            
    elseif( odds >= 358 and odds <= 700 then
            GiftId 
    x901234_g_BaoShiId[70]
            
    strtext "????"
            
    elseif( odds >= 359 and odds <= 710 then
            GiftId 
    x901234_g_BaoShiId[71]
            
    strtext "????"
            
    elseif( odds >= 360 and odds <= 720 then
            GiftId 
    x901234_g_BaoShiId[72]
            
    strtext "????"
            
    elseif( odds >= 361 and odds <= 730 then
            GiftId 
    x901234_g_BaoShiId[73]
            
    strtext "????"
            
    elseif( odds >= 362 and odds <= 740 then
            GiftId 
    x901234_g_BaoShiId[74]
            
    strtext "????"
            
    elseif( odds >= 363 and odds <= 750 then
            GiftId 
    x901234_g_BaoShiId[75]
            
    strtext "????"
            
    elseif( odds >= 364 and odds <= 760 then
            GiftId 
    x901234_g_BaoShiId[76]
            
    strtext "????"
            
    elseif( odds >= 365 and odds <= 770 then
            GiftId 
    x901234_g_BaoShiId[77]
            
    strtext "????"
          
    end
          TryRecieveItem
    sceneIdselfIdGiftId)
          
    BroadMsgByChatPipesceneIdselfId"#gff00f0Xin chúc m×ng #gffff00"..nam.." #gff00f0 da m· trúng #gffff00"..strtext.."#gff00f0 r°i nhé !")
    end

    LuaFnDelAvailableItem
    (sceneId,selfId,x901234_g_ItemId,1)
            
    BeginEvent(sceneId)
            
    AddText(sceneId,"#b#YChúc m×ng bOn da m· trúng #gff00f0 "..strtext.." !")
        
    EndEventsceneId )
        
    DispatchEventListsceneIdselfId, -)
    end

    --**********************************
    -- 
    --**********************************
    function 
    x901234_IsSkillLikeScriptsceneIdselfId)
        return 
    0
    end 
    Lần sửa cuối bởi s2bac95, ngày 15-05-15 lúc 01:59 AM.
    Khách viếng thăm hãy cùng s2bac95 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. The Following 7 Users Say Thank You to s2bac95 For This Useful Post:

    Dark.Hades (15-05-15), dovantoi96 (15-05-15), duyhaucan (30-08-20), makute7413 (15-05-15), quanggoku (15-05-15), razer666 (15-05-15), vhmt1101 (15-05-15)

  3. #2
    Because I'm Stupid makute7413's Avatar
    Ngày tham gia
    Jan 2014
    Đang ở
    LA
    Bài viết
    1,232
    Thanks
    285
    Thanked 1,095 Times in 474 Posts

    Ðề: Share Script Hộp Quà May Mắn

    cho vài cái ảnh in game đi thớt
    Khách viếng thăm hãy cùng makute7413 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #3
    Thành Viên
    Ngày tham gia
    Oct 2008
    Bài viết
    456
    Thanks
    58
    Thanked 114 Times in 96 Posts

    Ðề: Share Script Hộp Quà May Mắn

    Dùng lệnh này để lấy tên item, khỏi phải nhập chi cho rắc rối

    Code:
    GetItemName(sceneId, itemId)
    Khách viếng thăm hãy cùng vocweb xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. Các thành viên gởi lời cảm ơn đến vocweb vì bài viết này !

    s2bac95 (15-05-15)

 

 

Các Chủ đề tương tự

  1. [JX] [Việt Hóa JX VNG] Share Script Việt Hóa VNG Thành Công 100%
    Bởi gianghotk trong diễn đàn Võ Lâm Truyền Kỳ (Jx Server)
    Trả lời: 78
    Bài viết cuối: 26-05-14, 09:15 AM
  2. [JX] Share Script Chuyển Sinh Đơn Giản Cho Sever BFF Share
    Bởi nhocken2030 trong diễn đàn Scripts
    Trả lời: 4
    Bài viết cuối: 16-01-13, 09:26 AM
  3. [JX] ước gì có cao thủ share cho script exp tổ đội nhỉ
    Bởi fzxgl136 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 1
    Bài viết cuối: 29-11-12, 08:44 AM
  4. Share Lại Script Sứ Giả Môn Phái
    Bởi jxnoob trong diễn đàn Scripts
    Trả lời: 5
    Bài viết cuối: 18-10-10, 10:15 AM
  5. Share Script Đầu Tay Cho Mọi Người Thưởng Thức
    Bởi jxnoob trong diễn đàn Scripts
    Trả lời: 12
    Bài viết cuối: 21-04-10, 06:13 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 03:49 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.