Share hiệu ứng Bảo thạch Tinh Hoa
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
 
Trang 1 của 2 1 2 CuốiCuối
Kết quả 1 đến 10 của 11
  1. #1
    Thành Viên
    Ngày tham gia
    Aug 2010
    Đang ở
    Hanoi, Vietnam
    Bài viết
    430
    Thanks
    5
    Thanked 63 Times in 45 Posts

    Share hiệu ứng Bảo thạch Tinh Hoa

    Để tăng cường chỉ số trong một thời gian bạn có thể sử dụng Bảo Thạch Tinh Hoa, mua trong shop KNB. Tuy nhiên khi nhấn chuột phải vào thì chẳng được cái gì, vậy chúng ta cần định nghĩa nó để sử dụng

    Bạn có thể tìm thấy bảo thạch tinh hoa trong file CommonItem
    Vừa tìm đến dòng đó là bạn thấy ngay con số 332206 là Script của Item này
    Mở file Script.dat ra và định nghĩa Script này

    Trong file LUA bạn có thể sử dụng đoạn Script sau

    [sp]
    PHP Code:
    x332206_g_scriptId 332206


    x332206_g_ItemData 

    {
        
    {
    ItemIndex 30501174GiveItem 30501246ImpactId 31615},
    {
    ItemIndex 30501175GiveItem 30501247ImpactId 31616},
    {
    ItemIndex 30501176GiveItem 30501248ImpactId 31617},
    {
    ItemIndex 30501177GiveItem 30501249ImpactId 31618},
    {
    ItemIndex 30501178GiveItem 30501250ImpactId 31619},
    {
    ItemIndex 30501179GiveItem 30501251ImpactId 31620},
    {
    ItemIndex 30501180GiveItem 30501252ImpactId 31621},
    {
    ItemIndex 30501181GiveItem 30501253ImpactId 31622},
    {
    ItemIndex 30501182GiveItem 30501254ImpactId 31623},
    {
    ItemIndex 30504040GiveItem 30501255ImpactId 31618},

    {
    ItemIndex 30501183GiveItem 30501255ImpactId 31624},
    {
    ItemIndex 30501184GiveItem 30501256ImpactId 31625},
    {
    ItemIndex 30501185GiveItem 30501257ImpactId 31626},
    {
    ItemIndex 30501186GiveItem 30501258ImpactId 31627},
    {
    ItemIndex 30501187GiveItem 30501259ImpactId 31628},
    {
    ItemIndex 30501188GiveItem 30501260ImpactId 31629},
    {
    ItemIndex 30501189GiveItem 30501261ImpactId 31630},
    {
    ItemIndex 30501190GiveItem 30501262ImpactId 31631},
    {
    ItemIndex 30501191GiveItem 30501263ImpactId 31632},
    {
    ItemIndex 30504041GiveItem 30501264ImpactId 31627},

    {
    ItemIndex 30501192GiveItem 30501264ImpactId 31633},
    {
    ItemIndex 30501193GiveItem 30501265ImpactId 31634},
    {
    ItemIndex 30501194GiveItem 30501266ImpactId 31635},
    {
    ItemIndex 30501195GiveItem 30501267ImpactId 31636},
    {
    ItemIndex 30501196GiveItem 30501268ImpactId 31637},
    {
    ItemIndex 30501197GiveItem 30501269ImpactId 31638},
    {
    ItemIndex 30501198GiveItem 30501270ImpactId 31639},
    {
    ItemIndex 30501199GiveItem 30501271ImpactId 31640},
    {
    ItemIndex 30501200GiveItem 30501272ImpactId 31641},

    {
    ItemIndex 30501201GiveItem 30501273ImpactId 31642},
    {
    ItemIndex 30501202GiveItem 30501274ImpactId 31643},
    {
    ItemIndex 30501203GiveItem 30501275ImpactId 31644},
    {
    ItemIndex 30501204GiveItem 30501276ImpactId 31645},
    {
    ItemIndex 30501205GiveItem 30501277ImpactId 31646},
    {
    ItemIndex 30501206GiveItem 30501278ImpactId 31647},
    {
    ItemIndex 30501207GiveItem 30501279ImpactId 31648},
    {
    ItemIndex 30501208GiveItem 30501280ImpactId 31649},
    {
    ItemIndex 30501209GiveItem 30501281ImpactId 31650},

    {
    ItemIndex 30501210GiveItem 30501282ImpactId 31660},
    {
    ItemIndex 30501211GiveItem 30501283ImpactId 31661},
    {
    ItemIndex 30501212GiveItem 30501284ImpactId 31662},
    {
    ItemIndex 30501213GiveItem 30501285ImpactId 31663},
    {
    ItemIndex 30501214GiveItem 30501286ImpactId 31664},
    {
    ItemIndex 30501215GiveItem 30501287ImpactId 31665},
    {
    ItemIndex 30501216GiveItem 30501288ImpactId 31666},
    {
    ItemIndex 30501217GiveItem 30501289ImpactId 31667},
    {
    ItemIndex 30501218GiveItem 30501290ImpactId 31668},

    {
    ItemIndex 30501219GiveItem 30501291ImpactId 31651},
    {
    ItemIndex 30501220GiveItem 30501292ImpactId 31652},
    {
    ItemIndex 30501221GiveItem 30501293ImpactId 31653},
    {
    ItemIndex 30501222GiveItem 30501294ImpactId 31654},
    {
    ItemIndex 30501223GiveItem 30501295ImpactId 31655},
    {
    ItemIndex 30501224GiveItem 30501296ImpactId 31656},
    {
    ItemIndex 30501225GiveItem 30501297ImpactId 31657},
    {
    ItemIndex 30501226GiveItem 30501298ImpactId 31658},
    {
    ItemIndex 30501227GiveItem 30501299ImpactId 31659},

    {
    ItemIndex 30501228GiveItem 30501300ImpactId 31669},
    {
    ItemIndex 30501229GiveItem 30501301ImpactId 31670},
    {
    ItemIndex 30501230GiveItem 30501302ImpactId 31671},
    {
    ItemIndex 30501231GiveItem 30501303ImpactId 31672},
    {
    ItemIndex 30501232GiveItem 30501304ImpactId 31673},
    {
    ItemIndex 30501233GiveItem 30501305ImpactId 31674},
    {
    ItemIndex 30501234GiveItem 30501306ImpactId 31675},
    {
    ItemIndex 30501235GiveItem 30501307ImpactId 31676},
    {
    ItemIndex 30501236GiveItem 30501308ImpactId 31677},

    {
    ItemIndex 30501237GiveItem 30501309ImpactId 31678},
    {
    ItemIndex 30501238GiveItem 30501310ImpactId 31679},
    {
    ItemIndex 30501239GiveItem 30501311ImpactId 31680},
    {
    ItemIndex 30501240GiveItem 30501312ImpactId 31681},
    {
    ItemIndex 30501241GiveItem 30501313ImpactId 31682},
    {
    ItemIndex 30501242GiveItem 30501314ImpactId 31683},
    {
    ItemIndex 30501243GiveItem 30501315ImpactId 31684},
    {
    ItemIndex 30501244GiveItem 30501316ImpactId 31685},
    {
    ItemIndex 30501245GiveItem 30501317ImpactId 31686},

    {
    ItemIndex 30501319GiveItem 30501337ImpactId 31696},
    {
    ItemIndex 30501320GiveItem 30501338ImpactId 31697},
    {
    ItemIndex 30501321GiveItem 30501339ImpactId 31698},
    {
    ItemIndex 30501322GiveItem 30501340ImpactId 31699},
    {
    ItemIndex 30501323GiveItem 30501341ImpactId 31700},
    {
    ItemIndex 30501324GiveItem 30501342ImpactId 31701},
    {
    ItemIndex 30501325GiveItem 30501343ImpactId 31702},
    {
    ItemIndex 30501326GiveItem 30501344ImpactId 31703},      
    {
    ItemIndex 30501327GiveItem 30501345ImpactId 31704},

    {
    ItemIndex 30501328GiveItem 30501346ImpactId 31687},
    {
    ItemIndex 30501329GiveItem 30501347ImpactId 31688},
    {
    ItemIndex 30501330GiveItem 30501348ImpactId 31689},
    {
    ItemIndex 30501331GiveItem 30501349ImpactId 31690},
    {
    ItemIndex 30501332GiveItem 30501350ImpactId 31691},
    {
    ItemIndex 30501333GiveItem 30501351ImpactId 31692},
    {
    ItemIndex 30501334GiveItem 30501352ImpactId 31693},
    {
    ItemIndex 30501335GiveItem 30501353ImpactId 31694},
    {
    ItemIndex 30501336GiveItem 30501354ImpactId 31695},
    }

    function 
    x332206_OnDefaultEventsceneIdselfIdbagIndex )
    end


    function x332206_IsSkillLikeScriptsceneIdselfId)
        return 
    1;
    end


    function x332206_CancelImpactssceneIdselfId )
        return 
    0
    end

    function x332206_OnConditionChecksceneIdselfId )

        if(
    1~=LuaFnVerifyUsedItem(sceneIdselfId)) then
            
    return 0
        end
        
        local FreeSpace 
    LuaFnGetPropertyBagSpacesceneIdselfId )
        if( 
    FreeSpace then
                local strNotice 
    " "
                  
    x332206_ShowNoticesceneIdselfIdstrNotice)
                return 
    0
        end
        
        local nItemIndex 
    LuaFnGetItemIndexOfUsedItemsceneIdselfId )
        
    local nGiveItemIndex 0
        local nGiveImpactId 
    0
        
    for 1getn(x332206_g_ItemData) do
            if 
    x332206_g_ItemData[i].ItemIndex == nItemIndex then
                nGiveItemIndex 
    x332206_g_ItemData[i].GiveItem
                nGiveImpactId 
    x332206_g_ItemData[i].ImpactId
                
    break
            
    end
        end
        
        
    if nGiveItemIndex == or nGiveImpactId == 0 then
            
    return 0;
        
    end
        
        local nHaveImpact 
    0
        
    for 1getn(x332206_g_ItemData) do
            
    local nRet LuaFnHaveImpactOfSpecificDataIndex(sceneIdselfIdx332206_g_ItemData[i].ImpactId)
            if 
    nRet == 1 then
                nHaveImpact 
    1
            end
        end
        
        
    if nHaveImpact == 1 then
            local strNotice 
    " "
            
    x332206_ShowNoticesceneIdselfIdstrNotice)
            return 
    0;
        
    end
        
        
    return 1
    end


    function x332206_OnDepletesceneIdselfId )
        
        if(
    0<LuaFnDepletingUsedItem(sceneIdselfId)) then
            
    return 1;
        
    end

        
    return 0;
    end


    function x332206_OnActivateOncesceneIdselfId )

        
    local nItemIndex LuaFnGetItemIndexOfUsedItemsceneIdselfId )
        
    local nGiveItemIndex 0
        local nGiveImpactId 
    0
        
    for 1getn(x332206_g_ItemData) do
            if 
    x332206_g_ItemData[i].ItemIndex == nItemIndex then
                nGiveItemIndex 
    x332206_g_ItemData[i].GiveItem
                nGiveImpactId 
    x332206_g_ItemData[i].ImpactId
                
    break
            
    end
        end
        
        
    if nGiveItemIndex == or nGiveImpactId == 0 then
            
    return 0;
        
    end
        
        local nHaveImpact 
    0
        
    for 1getn(x332206_g_ItemData) do
            
    local nRet LuaFnHaveImpactOfSpecificDataIndex(sceneIdselfIdx332206_g_ItemData[i].ImpactId)
            if 
    nRet == 1 then
                nHaveImpact 
    1
            end
        end
        
    if nHaveImpact == 1 then
            local strNotice 
    " "
            
    x332206_ShowNoticesceneIdselfIdstrNotice)
            return 
    0;
        
    end
        
        LuaFnSendSpecificImpactToUnit
    (sceneIdselfIdselfIdselfIdnGiveImpactId0)

        
    BeginAddItem(sceneId)                
            
    AddItem(sceneIdnGiveItemIndex1)
        
    local canAdd LuaFnEndAddItemIgnoreFatigueStatesceneIdselfId )

        if 
    canAdd 0 then
            LuaFnAddItemListToHumanIgnoreFatigueState
    (sceneId,selfId)
            
    local ItemName GetItemName(sceneIdnGiveItemIndex)
            
    local strNotice " "..ItemName
            x332206_ShowNotice
    sceneIdselfIdstrNotice)
        
    end
        
        
    return 1;
    end

    function x332206_OnActivateEachTicksceneIdselfId)
        return 
    1;
    end

    function x332206_ShowNoticesceneIdselfIdstrNotice)
        
    BeginEventsceneId )
            
    AddTextsceneIdstrNotice )
        
    EndEventsceneId )
        
    DispatchMissionTipssceneIdselfId )    
    end

    function x332206_ShowRandomSystemNoticesceneIdselfIdstrItemInfo )
    end 
    [/sp]
    Lần sửa cuối bởi huuduyen_05, ngày 15-02-11 lúc 07:52 PM. Lý do: thêm bbcode cho dễ nhìn
    Khách viếng thăm hãy cùng duchung145 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Super Moderator huuduyen_05's Avatar
    Ngày tham gia
    May 2006
    Đang ở
    Unknow
    Bài viết
    2,924
    Thanks
    122
    Thanked 2,100 Times in 647 Posts

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    Tác dụng của bảo thạch tuy không cộng thêm là bao so với sức mạnh của các item, tuy nhiên "có còn hơn không"
    Khách viếng thăm hãy cùng huuduyen_05 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. #3
    Thành Viên
    Ngày tham gia
    Aug 2010
    Đang ở
    Hanoi, Vietnam
    Bài viết
    430
    Thanks
    5
    Thanked 63 Times in 45 Posts

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    Ở Server Pri thì thế thôi nhưng ở Server TLBB Của FPT mà có viên bảo thạch tinh hoa cấp 7 cũng đủ dùng mà PK rồi
    Khách viếng thăm hãy cùng duchung145 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #4
    Thành Viên
    Ngày tham gia
    Feb 2011
    Bài viết
    165
    Thanks
    2
    Thanked 1 Time in 1 Post

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    ủa vậy code anh cho chép vào file nào
    Script.dat hay LUA
    2 file này nằm ở đâu
    Khách viếng thăm hãy cùng BruceLee xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. #5
    Thành Viên
    Ngày tham gia
    Aug 2010
    Đang ở
    Hanoi, Vietnam
    Bài viết
    430
    Thanks
    5
    Thanked 63 Times in 45 Posts

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    Rất cảm ơn vì bạn đã quan tâm!
    Mình sẽ up 2 file Script.dat và file LUA có Script bạn cần(dùng cho Server zrockmanx cũ)
    Điều quan trọng cho một người phát triển là tìm ra cách thức hoạt động của phần mềm(đơn giản từ việc hiểu các lệnh)
    Hiện tại mình không có mục tiêu nào cho tlbb offline nên thỉnh thoảng sẽ truyền lại kinh nghiệm cho các bạn!
    Khách viếng thăm hãy cùng duchung145 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  6. #6
    Thành Viên
    Ngày tham gia
    Oct 2006
    Đang ở
    Bình Dương
    Bài viết
    167
    Thanks
    9
    Thanked 43 Times in 15 Posts

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    Trích dẫn Gửi bởi duchung145 [Only registered and activated users can see links. ]
    Rất cảm ơn vì bạn đã quan tâm!
    Mình sẽ up 2 file Script.dat và file LUA có Script bạn cần(dùng cho Server zrockmanx cũ)
    Điều quan trọng cho một người phát triển là tìm ra cách thức hoạt động của phần mềm(đơn giản từ việc hiểu các lệnh)
    Hiện tại mình không có mục tiêu nào cho tlbb offline nên thỉnh thoảng sẽ truyền lại kinh nghiệm cho các bạn!
    Nhớ truyền cho em nha, đợi tin của anh
    Khách viếng thăm hãy cùng khieuthien xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  7. #7
    Thành Viên kakashiABC's Avatar
    Ngày tham gia
    Sep 2009
    Bài viết
    142
    Thanks
    24
    Thanked 4 Times in 1 Post

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    Trích dẫn Gửi bởi BruceLee [Only registered and activated users can see links. ]
    ủa vậy code anh cho chép vào file nào
    Script.dat hay LUA
    2 file này nằm ở đâu
    2 file này nằm ở đâu vậy duchung145's , mình tìm ko thấy
    Khách viếng thăm hãy cùng kakashiABC xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  8. #8
    Thành Viên
    Ngày tham gia
    Aug 2010
    Đang ở
    Hanoi, Vietnam
    Bài viết
    430
    Thanks
    5
    Thanked 63 Times in 45 Posts

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    Cái này có luôn trong cả Server của mình rồi
    Nói chung là bạn cứ tự nghịch cái Server của mình thì sẽ biết cách nó hoạt động
    Khách viếng thăm hãy cùng duchung145 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  9. #9
    Thành Viên kakashiABC's Avatar
    Ngày tham gia
    Sep 2009
    Bài viết
    142
    Thanks
    24
    Thanked 4 Times in 1 Post

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    mình fix được rùi nè ^ ^ . sever của bạn là sever nào , share mình link đi
    Lần sửa cuối bởi kakashiABC, ngày 11-04-11 lúc 10:35 AM.
    Khách viếng thăm hãy cùng kakashiABC xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. #10
    Thành Viên
    Ngày tham gia
    Feb 2011
    Bài viết
    165
    Thanks
    2
    Thanked 1 Time in 1 Post

    Ðề: Share hiệu ứng Bảo thạch Tinh Hoa

    cái này ko hỉu gì cả bạn có thể cho mình nguyên cái file ko
    Khách viếng thăm hãy cùng BruceLee xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 
Trang 1 của 2 1 2 CuốiCuối

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

  1. Ai share cho e sv Tinh Huynh De Ver 2.0 No Font dc ko
    Bởi zZK3yL0v3Zz trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 3
    Bài viết cuối: 22-05-12, 12:35 PM
  2. Share Main 1.07H trắng tinh, đã Crack cho ai cần.
    Bởi MrAaa trong diễn đàn Releases
    Trả lời: 6
    Bài viết cuối: 13-05-12, 06:01 PM
  3. Share Server,tool,patch ...linh tinh
    Bởi cuongca11 trong diễn đàn Chinh Đồ
    Trả lời: 53
    Bài viết cuối: 24-03-11, 03:00 PM
  4. Share sever anh hùng võ tinh [Cực Hot]
    Bởi kakalot123456 trong diễn đàn Các Server Không Nằm Trong Box
    Trả lời: 15
    Bài viết cuối: 20-05-10, 11:37 AM

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à 04:23 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ệ.