[TLBB] Hiển thị skill và ID ngoại hình - Trang 2
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 2 của 2 Đầu tiênĐầu tiên 1 2
Kết quả 11 đến 18 của 18
  1. #11
    Thành Viên
    Ngày tham gia
    Jul 2010
    Bài viết
    620
    Thanks
    215
    Thanked 279 Times in 126 Posts

    Ðề: Hiển thị skill và ID ngoại hình

    Trích dẫn Gửi bởi caovanthanh22 [Only registered and activated users can see links. ]
    mấy file bác liệt kê thì nắm vững 7 đến 8 phần rùi ấy ^^...
    mỗi lần edit một cột là mình ghi chú lại chức năng, tắt mở sever liên tục ^^... nói chung 1 đêm học được một ít ^^... vài tháng nghiên cứu cũng làm được skill vừa mới hoàn chỉnh vài tuần trước đây ( dựa trên động tác có sẵn và các hiệu ứng nằm ngoài ImpactSEData_V1 có sẵn) ^^...
    p/s: tâm đắt là mấy hiệu ứng sét, hoa đào, lá trúc, tuyết của pháo hoa đem làm skill... ^^... thì nhìn sướng vãi ^^....
    bác akiem9x cũng nhắt tới Effect, mình nhìn vào ^^.... không tả được... all.obj có tư thế cầm nõ ^^.. actionset thì không giải mã nỏi không biết có ID gì đó không, liên quan tới ID động tác trong SkillTemplate...
    p/s:Sẵn đây bác có ghé qua cho mình hỏi thêm ^^:
    ---có sẵn---
    LuaFnCostMoneyWithPriority (sceneId, selfId, MoneyJZ) == -1 -- get trừ vàng khóa và vàng nguyên chất Money
    point = CityGetAttr(sceneId, selfId, GUILD_CONTRIB_POINT); -- get điểm cống hiến
    CityChangeAttr( sceneId, selfId, GUILD_CONTRIB_POINT, -point ) -- trừ cống hiến điểm
    set thì có trong sever còn get và trừ Điểm Tặng , KNB, điểm Môn Phái thì chưa tìm thấy ^^...
    ===> tác dụng quy đổi tiền tệ ,điểm hoạt động các loại qua lại với nhau ^^... cho việt cài cuốc lâu dài... tự sướng
    Action Set thì có liên quan hết động tác skill, động tác cầm nỏ, trượng, v.vv
    Khách viếng thăm hãy cùng vuhuy99v xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

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

    caovanthanh22 (03-01-17)

  3. #12
    Thành Viên caovanthanh22's Avatar
    Ngày tham gia
    Nov 2015
    Bài viết
    175
    Thanks
    77
    Thanked 49 Times in 23 Posts

    Ðề: Hiển thị skill và ID ngoại hình

    Trích dẫn Gửi bởi vuhuy99v [Only registered and activated users can see links. ]
    Action Set thì có liên quan hết động tác skill, động tác cầm nỏ, trượng, v.vv
    thanks bác nha ^^... actionset thì chịu ^^... thử đem qua máy tính khác xem giải mã dc hem ^^... máy này bị lỗi dll nhìu quá .. thêm 1 cái thì lồi ra cái khác ^^... thêm dll hoài không biết tới bao giờ................
    Khách viếng thăm hãy cùng caovanthanh22 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #13
    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

    Ðề: Hiển thị skill và ID ngoại hình

    Trích dẫn Gửi bởi caovanthanh22 [Only registered and activated users can see links. ]
    tìm kiếm bấy lâu nay không thấy trong server ai get hay trừ ^^... cám ơn bác makute một lần nữa ^^... thử phát ôkê con gà đen rùi ^^... thiên long ofline của mình có sàn giao dịch giao động nhẹ rùi ^^...
    local Point = Get()
    Point = Point - 50
    Set(Point)

    Đơn giản thế thôi
    Khách viếng thăm hãy cùng makute7413 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 makute7413 vì bài viết này !

    caovanthanh22 (03-01-17)

  6. #14
    Thành Viên caovanthanh22's Avatar
    Ngày tham gia
    Nov 2015
    Bài viết
    175
    Thanks
    77
    Thanked 49 Times in 23 Posts

    Ðề: Hiển thị skill và ID ngoại hình

    Trích dẫn Gửi bởi makute7413 [Only registered and activated users can see links. ]
    local Point = Get()
    Point = Point - 50
    Set(Point)

    Đơn giản thế thôi
    hàm set:
    YuanBao(sceneId,selfId,targetId,1,500)-- set 500
    mình tưởng ý bác là như thế này chứ ^^...
    YuanBao(sceneId,selfId,targetId,2,500)-- trừ 500
    nhưng dù sao nó vẫn có tác dụng trừ.....

    ---- còn get if KNB: YuanBao(sceneId,selfId,targetId,2,500) < 1 -- addtext không có đủ KNB thì
    hàm else lại không thực thi lệnh xóa YuanBao(sceneId,selfId,targetId,2,500)-- trừ 500
    ---- vãi chưỡng
    Khách viếng thăm hãy cùng caovanthanh22 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  7. #15
    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

    Ðề: Hiển thị skill và ID ngoại hình

    Trích dẫn Gửi bởi caovanthanh22 [Only registered and activated users can see links. ]
    hàm set:
    YuanBao(sceneId,selfId,targetId,1,500)-- set 500
    mình tưởng ý bác là như thế này chứ ^^...
    YuanBao(sceneId,selfId,targetId,2,500)-- trừ 500
    nhưng dù sao nó vẫn có tác dụng trừ.....

    ---- còn get if KNB: YuanBao(sceneId,selfId,targetId,2,500) < 1 -- addtext không có đủ KNB thì
    hàm else lại không thực thi lệnh xóa YuanBao(sceneId,selfId,targetId,2,500)-- trừ 500
    ---- vãi chưỡng
    Yuanbao thì có tùy chọn trừ, các điểm như điểm môn phái, misstiondata thì ko có đâu bác.
    Khách viếng thăm hãy cùng makute7413 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

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

    caovanthanh22 (03-01-17)

  9. #16
    Thành Viên caovanthanh22's Avatar
    Ngày tham gia
    Nov 2015
    Bài viết
    175
    Thanks
    77
    Thanked 49 Times in 23 Posts

    Ðề: Hiển thị skill và ID ngoại hình

    Trích dẫn Gửi bởi makute7413 [Only registered and activated users can see links. ]
    Yuanbao thì có tùy chọn trừ, các điểm như điểm môn phái, misstiondata thì ko có đâu bác.
    Cám ơn bác makute một lần nữa ^^.... học hỏi dữ lắm đó hem, cũng viết được một script dài ( không biết rút lại thế nào, đang học hỏi hàm for..do )
    Chuyễn cũng được vài loại rồi này php code:


    PHP Code:
    --Kim ngû Gia--
    x002059_g_scriptId=002059
    x002059_g_Money
    =1
    x002059_g_ZengDian
    =2
    x002059_g_Str
    =3
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_OnDefaultEventsceneIdselfId,targetId )
        
    BeginEvent(sceneId)
            
    AddText(sceneId,"Hành t¦u giang h° ðß½ng nhiên kë chÑc quy«n càng cao thì lÕi càng giàu có. Tøc ngæ có câu 'Có ti«n có th¬ ma sui quÖ khiªn'. Trong tay có Ngân Lßþng có th¬ làm r¤t nhi«u vi®c l¾n, ng߶i ng߶i phäi ngß¾c nhìn...")
            
    AddNumText(sceneId,x002059_g_ScriptId,"#gFF0FA0Chuy¬n ð±i thành Vàng #-02",4,x002059_g_Money)
            
    AddNumText(sceneId,x002059_g_ScriptId,"#gFF0FA0Chuy¬n ð±i thành Ði¬m T£ng",4,x002059_g_ZengDian)
            
    AddNumText(sceneId,x002059_g_ScriptId,"#gFF0FA0Liên quan ð±i ngân lßþng",8,x002059_g_Str)
        
    EndEvent(sceneId)
        
    DispatchEventList(sceneId,selfId,targetId)
    end
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_OnEventRequest(sceneId,selfId,targetId,eventId)
        
    local Sex GetSex(sceneId,selfId)
        if 
    Sex == 0 then
            Sex 
    "ti¬u muµi"
        
    else 
            
    Sex "ti¬u ð®"
        
    end
        
    if    GetNumText() == x002059_g_Money    then
            BeginEvent
    (sceneId)
                
    AddTextsceneId"   Lña ch÷n ti«n t® ho£c các loÕi ði¬m hoÕt ðµng ð¬ chuy¬n ð±i thành #YVàng #-02" )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Dùng Vàng #-14"311 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Dùng Kim Nguyên Bäo"312 )-- ðang trong quá trình ngâm cÑu
                AddNumText
    sceneIdx002059_g_scriptId"#gFF0FA0Quay lÕi"8100 )
            
    EndEvent(sceneId)
            
    DispatchEventListsceneIdselfIdtargetId )
        
    end
        
    if    GetNumText() == 11    then
            BeginEvent
    (sceneId)
                
    AddText(sceneId,"   G¥n ðây giang h° th߶ng xuyên säy ra nhi«u vø cß¾p b¯c chém giªt lçn nhau, giæ bên mình #YVàng #-14 #Wlà cách t¯t nh¤t! Nªu nhß "..Sex.." khån khån mu¯n ð±i, không mu¯n giæ bên mình s¯ #YVàng #-14 #Wnày, ðßþc thôi ta s¨ ð±i!")
                
    AddText(sceneId,"   Ta không làm không công ðâu nha, phäi hao t¯n mµt khoãng ti«n b°i dßÞng cho ta, "..Sex.." vçn mu¯n ð±i?")
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi #gffcc0000 #-02 #gfff0f099 #-03 99 #-04"3110 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi #gffcc000#gfff0f09 #-02 99 #-03 90 #-04"3111 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi #gfff0f099 #-02 99 #-03 00 #-04"3112 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi hªt"3113 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Quay lÕi"8100 )
            
    EndEvent(sceneId)
            
    DispatchEventListsceneIdselfIdtargetId )
        
    end
        
    if    GetNumText() == 12    then
            BeginEvent
    (sceneId)
                
    AddText(sceneId,"   Ta lúc nào cûng sÇn sàng, nhßng "..Sex.." ðã mang theo #YKim Nguyên Bäo#W ð¬ ð±i l¤y #YVàng #-02 #Wcüa ta chßa v§y?")
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi #gfff0f0 1 #-02"3120 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi #gfff0f0 10 #-02"3121 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi #gfff0f0 100 #-02"3122 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Quay lÕi"8100 )
            
    EndEvent(sceneId)
            
    DispatchEventListsceneIdselfIdtargetId )
        
    end
        
    if    GetNumText() == x002059_g_ZengDian    then
            BeginEvent
    (sceneId)
                
    AddTextsceneId"   Lña ch÷n ti«n t® ho£c các loÕi ði¬m hoÕt ðµng ð¬ chuy¬n ð±i thành #YÐi¬m T£ng" )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Dùng ði¬m c¯ng hiªn Bang Hµi"321 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Dùng Kim Nguyên Bäo"323 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Dùng Vàng #-02"322 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Quay lÕi"8100 )
            
    EndEvent(sceneId)
            
    DispatchEventListsceneIdselfIdtargetId )
        
    end
        
    if    GetNumText() == 21    then
            BeginEvent
    (sceneId)
                
    AddTextsceneId"   Ta lúc nào cûng sÇn sàng, nhßng "..Sex.." ðã mang theo #Yði¬m c¯ng hiªn Bang Hµi#W ð¬ ð±i l¤y #YÐi¬m T£ng #Wcüa ta chßa v§y?" )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f01 #gFF0FA0Ði¬m T£ng"3210 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f010 #gFF0FA0Ði¬m T£ng"3211 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f0100 #gFF0FA0Ði¬m T£ng"3212 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Quay lÕi"8100 )
            
    EndEvent(sceneId)
            
    DispatchEventListsceneIdselfIdtargetId )
        
    end
        
    if    GetNumText() == 22    then
            BeginEvent
    (sceneId)
                
    AddTextsceneId"   Ta lúc nào cûng sÇn sàng, nhßng "..Sex.." ðã mang theo #YVàng #-02#W ð¬ ð±i l¤y #YÐi¬m T£ng #Wcüa ta chßa v§y?" )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f01 #gFF0FA0Ði¬m T£ng"3220 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f010 #gFF0FA0Ði¬m T£ng"3221 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f0100 #gFF0FA0Ði¬m T£ng"3222 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Quay lÕi"8100 )
            
    EndEvent(sceneId)
            
    DispatchEventListsceneIdselfIdtargetId )
        
    end
        
    if    GetNumText() == 23    then
            BeginEvent
    (sceneId)
                
    AddTextsceneId"   Ta lúc nào cûng sÇn sàng, nhßng "..Sex.." ðã mang theo #YKim Nguyên Bäo#W ð¬ ð±i l¤y #YÐi¬m T£ng #Wcüa ta chßa v§y?" )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f01 #gFF0FA0Ði¬m T£ng"3230 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f010 #gFF0FA0Ði¬m T£ng"3231 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0бi l¤y #gfff0f0100 #gFF0FA0Ði¬m T£ng"3232 )
                
    AddNumTextsceneIdx002059_g_scriptId"#gFF0FA0Quay lÕi"8100 )
            
    EndEvent(sceneId)
            
    DispatchEventListsceneIdselfIdtargetId )
        
    end
        
    if    GetNumText() == x002059_g_Str    then
        BeginEvent
    (sceneId)
            
    AddText(sceneId,"   Sàn giao d¸ch ti«n t® và các loÕi ði¬m hoÕt ðµng trao ð±i nhß sau:")
            
    AddText(sceneId," - Trao ð±i #YVàng #-02 #Wchü yªu b¢ng #YVàng #-14#W lãi xu¤t giao ðµng trong khoãng #G0.01#W%.")
            
    AddText(sceneId," - Ð¸nh giá #G1 #YÐi¬m T£ng #W hi®n tÕi nªu ðem trao ð±i s¨ tß½ng ðß½ng #G10 #Yði¬m c¯ng hiªn Bang Hµi#W ho£c #G50 #Y#-02 #Who£c #G700 #YKim Nguyên Bäo#W.")
        
    EndEvent(sceneId)
        
    DispatchEventList(sceneId,selfId,targetId)
        
    end
        
    if GetNumText() == 110 or GetNumText() == 111 or GetNumText() == 112 or GetNumText() == 113 then
            x002059_AddMoneyByMoneyJZ
    sceneIdselfId );
        
    end
        
    if GetNumText() == 120 or GetNumText() == 121 or GetNumText() == 122 then
            x002059_AddMoneyByYuanBao
    sceneIdselfId );
        
    end
        
    if GetNumText() == 210 or GetNumText() == 211 or GetNumText() == 212 then
            x002059_AddZengDianByConTribPoint
    sceneIdselfId );
        
    end
        
    if GetNumText() == 220 or GetNumText() == 221 or GetNumText() == 222 then
            x002059_AddZengDianByMoney
    sceneIdselfId );
        
    end
        
    if GetNumText() == 230 or GetNumText() == 231 or GetNumText() == 232 then
            x002059_AddZengDianByYuanBao
    sceneIdselfId );
        
    end
        
    if GetNumText() == 100 then
            x002059_OnDefaultEvent
    sceneIdselfIdtargetId )
        
    end
    end
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_AddMoneyByYuanBaosceneIdselfId )
        
    local Sex GetSex(sceneId,selfId)
        if 
    Sex == 0 then
            Sex 
    "ti¬u muµi"
        
    else 
            
    Sex "ti¬u ð®"
        
    end
        
    if GetNumText() == 120 then
            
    if YuanBao(sceneId,selfId,targetId,2,14) < 1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G14 #YKim Nguyên Bäo #Wð¬ ð±i!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
            
    AddMoneysceneIdselfId1)
            
    YuanBao(sceneId,selfId,targetId,2,14)
            
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði #G14 #YKim Nguyên Bäo")
            
    end
        
    elseif GetNumText() == 121 then
            
    if YuanBao(sceneId,selfId,targetId,2,140) < 1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G140 #YKim Nguyên Bäo #Wð¬ ð±i!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
            
    AddMoneysceneIdselfId10)
            
    YuanBao(sceneId,selfId,targetId,2,140)
            
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði #G140 #YKim Nguyên Bäo")
            
    end
        
    elseif GetNumText() == 122 then
            
    if YuanBao(sceneId,selfId,targetId,2,1400) < 1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G1400 #YKim Nguyên Bäo #Wð¬ ð±i!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
            
    AddMoneysceneIdselfId100)
            
    YuanBao(sceneId,selfId,targetId,2,1400)
            
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði #G1400 #YKim Nguyên Bäo")
            
    end
        end
    end
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_AddMoneyByMoneyJZsceneIdselfId )
        
    local Sex GetSex(sceneId,selfId)
        if 
    Sex == 0 then
            Sex 
    "Cô nß½ng"
        
    else 
            
    Sex "Các hÕ"
        
    end
        
    if GetNumText() == 113 then
            local nMoneyJZ 
    GetMoneyJZ (sceneIdselfId)
            if 
    nMoneyJZ <= 0 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không còn #YVàng #-14 #Wð¬ ð±i!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            elseif 
    LuaFnCostMoneyWithPriority (sceneIdselfIdnMoneyJZ) == -1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Thao tác th¤t bÕi")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
                
    AddMoneysceneIdselfIdnMoneyJZ*0.9999 )
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,""..Sex.." ðã m¤t hªt Vàng #-14")
            
    end
        
    elseif GetNumText() == 110 then 
            
    if GetMoneyJZ (sceneIdselfId) < 10000 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G1 #-14 #Wð¬ ð±i! xem lÕi #YVàng #-14 #Wcüa mình có th¬ lña ch÷n mÑc ð±i th¤p h½n ðßþc không nhé, ho£c có th¬ ch÷n ð±i hªt!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            elseif 
    LuaFnCostMoneyWithPriority (sceneIdselfId10000) == -1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Thao tác th¤t bÕi")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
                
    AddMoneysceneIdselfId10000*0.9999 )
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,""..Sex.." ðã m¤t 1 #-14")
            
    end
        
    elseif GetNumText() == 111 then
            
    if GetMoneyJZ (sceneIdselfId) < 100000 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G10 #-14 #Wð¬ ð±i! xem lÕi #YVàng #-14 #Wcüa mình có th¬ lña ch÷n mÑc ð±i th¤p h½n ðßþc không nhé, ho£c có th¬ ch÷n ð±i hªt!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            elseif 
    LuaFnCostMoneyWithPriority (sceneIdselfId100000) == -1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Thao tác th¤t bÕi")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
                
    AddMoneysceneIdselfId100000*0.9999 )
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,""..Sex.." ðã m¤t 10 #-14")
            
    end
        
    elseif GetNumText() == 112 then
            local nMoneyJZ 
    GetMoneyJZ (sceneIdselfId)
            if 
    nMoneyJZ 1000000 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G100 #-14 #Wð¬ ð±i! xem lÕi #YVàng #-14 #Wcüa mình có th¬ lña ch÷n mÑc ð±i th¤p h½n ðßþc không nhé, ho£c có th¬ ch÷n ð±i hªt!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            elseif 
    LuaFnCostMoneyWithPriority (sceneIdselfId1000000) == -1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Thao tác th¤t bÕi")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
                
    AddMoneysceneIdselfId1000000*0.9999 )
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,""..Sex.." ðã m¤t 100 #-14")
            
    end
        end
    end
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_AddZengDianByConTribPointsceneIdselfId )
        
    local Sex GetSex(sceneId,selfId)
        if 
    Sex == 0 then
            Sex 
    "ti¬u muµi"
        
    else 
            
    Sex "ti¬u ð®"
        
    end
        local guildid 
    GetHumanGuildID(sceneIdselfId)
        if 
    guildid == -1 then
            BeginEvent
    sceneId )
                
    AddText(sceneId,"   Chßa gia nh§p Bang Hµi mà có ði¬m c¯ng hiªn ß!")
            
    EndEventsceneId )
            
    DispatchEventListsceneIdselfIdtargetId )
            return 
    0;
        elseif  
    GetNumText() == 210 then
            local guildPoint 
    CityGetAttr(sceneIdselfIdGUILD_CONTRIB_POINT);
            if 
    guildPoint 10 then
                BeginEvent
    (sceneId)
                    
    AddTextsceneId"   #YÐi¬m c¯ng hiªn Bang Hµi#W cüa "..Sex.." chßa ðü #G10 #Wði¬m r°i, không th¬ ð±i." )
                
    EndEvent(sceneId)
                
    DispatchEventListsceneIdselfIdtargetId )
                return 
    0;
            else
                
    CityChangeAttrsceneIdselfIdGUILD_CONTRIB_POINT, -10 )
                
    ZengDian(sceneId,selfId,targetId,1,1)
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Xin chúc m×ng "..Sex.." ðã nh§n ðßþc #G1 #YÐi¬m T£ng")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði 10 ði¬m c¯ng hiªn Bang Hµi")
            
    end
        
    elseif  GetNumText() == 211 then
            local guildPoint 
    CityGetAttr(sceneIdselfIdGUILD_CONTRIB_POINT);
            if 
    guildPoint 100 then
                BeginEvent
    (sceneId)
                    
    AddTextsceneId"   #YÐi¬m c¯ng hiªn Bang Hµi#W cüa "..Sex.." chßa ðü #G100 #Wði¬m, xem lÕi ði¬m c¯ng hiªn cüa mình có th¬ lña ch÷n mÑc ð±i th¤p h½n ðßþc không nhé!" )
                
    EndEvent(sceneId)
                
    DispatchEventListsceneIdselfIdtargetId )
                return 
    0;
            else
                
    CityChangeAttrsceneIdselfIdGUILD_CONTRIB_POINT, -100 )
                
    ZengDian(sceneId,selfId,targetId,1,10)
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Xin chúc m×ng "..Sex.." ðã nh§n ðßþc #G10 #YÐi¬m T£ng")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði 100 ði¬m c¯ng hiªn Bang Hµi")
            
    end
        
    elseif  GetNumText() == 212 then
            local guildPoint 
    CityGetAttr(sceneIdselfIdGUILD_CONTRIB_POINT);
            if 
    guildPoint 1000 then
                BeginEvent
    (sceneId)
                    
    AddTextsceneId"   #YÐi¬m c¯ng hiªn Bang Hµi #Wcüa "..Sex.." chßa ðü #G1000 #Wði¬m, xem lÕi ði¬m c¯ng hiªn cüa mình có th¬ lña ch÷n mÑc ð±i th¤p h½n ðßþc không nhé!" )
                
    EndEvent(sceneId)
                
    DispatchEventListsceneIdselfIdtargetId )
                return 
    0;
            else
                
    CityChangeAttrsceneIdselfIdGUILD_CONTRIB_POINT, -1000 )
                
    ZengDian(sceneId,selfId,targetId,1,100)
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Xin chúc m×ng "..Sex.." ðã nh§n ðßþc #G100 #YÐi¬m T£ng")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði 1000 ði¬m c¯ng hiªn Bang Hµi")
            
    end
        end
    end
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_AddZengDianByMoneysceneIdselfIdtargetId )
        
    local Sex GetSex(sceneId,selfId)
        if 
    Sex == 0 then
            Sex 
    "ti¬u muµi"
        
    else 
            
    Sex "ti¬u ð®"
        
    end
        
    if GetNumText() == 220 then
            local nMoney 
    GetMoney (sceneIdselfId)
            if 
    nMoney 500000 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Th§t ðáng tiªt, "..Sex.." chßa ðü #G50 #-02#W, không th¬ ...")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            elseif 
    LuaFnCostMoneyWithPriority (sceneIdselfId500000) == -1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Thao tác th¤t bÕi")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
                
    ZengDian(sceneId,selfId,targetId,1,1)
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Xin chúc m×ng "..Sex.." ðã nh§n ðßþc #G1 #YÐi¬m T£ng")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði 50 #-02")
            
    end
        
    elseif GetNumText() == 221 then
            local nMoney 
    GetMoney (sceneIdselfId)
            if 
    nMoney 5000000 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Th§t ðáng tiªt, "..Sex.." chßa ðü #G500 #-02#W, xem lÕi s¯ ti«n cüa mình có th¬ lña ch÷n mÑc ð±i th¤p h½n ðßþc không nhé!.")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            elseif 
    LuaFnCostMoneyWithPriority (sceneIdselfId5000000) == -1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Thao tác th¤t bÕi")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
                
    ZengDian(sceneId,selfId,targetId,1,10)
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Xin chúc m×ng "..Sex.." ðã nh§n ðßþc #G10 #YÐi¬m T£ng")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði 500 #-02")
            
    end
        
    elseif GetNumText() == 222 then
            local nMoney 
    GetMoney (sceneIdselfId)
            if 
    nMoney 50000000 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Th§t ðáng tiªt, "..Sex.." chßa ðü #G5000 #-02#W, xem lÕi s¯ ti«n cüa mình có th¬ lña ch÷n mÑc ð±i th¤p h½n ðßþc không nhé!.")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            elseif 
    LuaFnCostMoneyWithPriority (sceneIdselfId50000000) == -1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Thao tác th¤t bÕi")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
                
    ZengDian(sceneId,selfId,targetId,1,100)
                
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Xin chúc m×ng "..Sex.." ðã nh§n ðßþc #G100 #YÐi¬m T£ng")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
                
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði 5000 #-02")
            
    end
        end
    end
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_AddZengDianByYuanBaosceneIdselfId )
        
    local Sex GetSex(sceneId,selfId)
        if 
    Sex == 0 then
            Sex 
    "ti¬u muµi"
        
    else 
            
    Sex "ti¬u ð®"
        
    end
        
    if GetNumText() == 230 then
            
    if YuanBao(sceneId,selfId,targetId,2,700) < 1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G700 #YKim Nguyên Bäo #Wð¬ ð±i!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
            
    ZengDian(sceneId,selfId,targetId,1,1)
            
    YuanBao(sceneId,selfId,targetId,2,700)
            
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            
    x002059_NotifyFailTips(sceneId,selfId,"Xin chúc m×ng "..Sex.." ðã nh§n dßþc #G1 #YÐi¬m T£ng")
            
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði #G700 #YKim Nguyên Bäo")
            
    end
        
    elseif GetNumText() == 231 then
            
    if YuanBao(sceneId,selfId,targetId,2,7000) < 1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G7000 #YKim Nguyên Bäo #Wð¬ ð±i!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
            
    ZengDian(sceneId,selfId,targetId,1,10)
            
    YuanBao(sceneId,selfId,targetId,2,7000)
            
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            
    x002059_NotifyFailTips(sceneId,selfId,"Xin chúc m×ng "..Sex.." ðã nh§n dßþc #G10 #YÐi¬m T£ng")
            
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði #G7000 #YKim Nguyên Bäo")
            
    end
        
    elseif GetNumText() == 232 then
            
    if YuanBao(sceneId,selfId,targetId,2,70000) < 1 then
                BeginEvent
    sceneId )
                    
    AddText(sceneId,"   Không ðü #G70000 #YKim Nguyên Bäo #Wð¬ ð±i!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            else
            
    ZengDian(sceneId,selfId,targetId,1,100)
            
    YuanBao(sceneId,selfId,targetId,2,70000)
            
    LuaFnSendSpecificImpactToUnit(sceneIdselfIdselfIdselfId180)
                
    BeginEventsceneId )
                    
    AddText(sceneId,"   Chuy­n ð±i ngân lßþng thành công!")
                
    EndEventsceneId )
                
    DispatchEventListsceneIdselfIdtargetId )
            
    x002059_NotifyFailTips(sceneId,selfId,"Xin chúc m×ng "..Sex.." ðã nh§n dßþc #G100 #YÐi¬m T£ng")
            
    x002059_NotifyFailTips(sceneId,selfId,"Ðã m¤t ði #G70000 #YKim Nguyên Bäo")
            
    end
        end
    end
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    function 
    x002059_NotifyFailTips(sceneId,selfId,Tip)
        
    BeginEvent(sceneId)
            
    AddText(sceneId,Tip)
        
    EndEvent(sceneId)
        
    DispatchMissionTips(sceneId,selfId)
    end 
    Khách viếng thăm hãy cùng caovanthanh22 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. #17
    Super Moderator Sói Đẹp Trai's Avatar
    Ngày tham gia
    Apr 2011
    Đang ở
    地獄
    Bài viết
    3,991
    Thanks
    369
    Thanked 4,050 Times in 1,402 Posts

    Ðề: Hiển thị skill và ID ngoại hình

    Nó cũng simple như lập trình xử lý trên khung giao diện ứng dụng bình thường thôi. Có điều nếu script npc thì nó có khung sẵn rồi chỉ việc call nó bằng lệnh BeginEvent...DispatchEventList thôi. Việc nó cho cái NumText vào làm gì, nếu muốn hiểu sâu thì tham khảo XML trên Client, còn hiểu nôm na nó là giá trị trả về khi người dùng ấn vào cái lựa chọn chỉ định trong khung.
    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é!

  11. 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 !

    caovanthanh22 (03-01-17)

  12. #18
    Thành Viên caovanthanh22's Avatar
    Ngày tham gia
    Nov 2015
    Bài viết
    175
    Thanks
    77
    Thanked 49 Times in 23 Posts

    Ðề: Hiển thị skill và ID ngoại hình

    trải qua nhìu giờ ^^... mình Get được KNB rùi ^^... cám ơn ae nhiệt tình hướng dẫn... đa tạ cả nhà
    vậy là chỉ còn lại điểm môn phái thôi để dành thời gian rãnh lôi ra ngâm tiếp ^^...
    Khách viếng thăm hãy cùng caovanthanh22 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 
Trang 2 của 2 Đầu tiênĐầu tiên 1 2

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

  1. [JX] Lỗi skill Thiên ngoại luu tinh
    Bởi nguyenhuynhduc trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 16
    Bài viết cuối: 16-04-16, 03:25 PM
  2. [JX] Làm Sao Để Chỉnh Lại Skill Từ Luyện Skill Thành Tăng Skill
    Bởi hackervnk trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 1
    Bài viết cuối: 13-10-12, 07:50 PM
  3. [JX] Phân biệt skill ngoại và nội
    Bởi runkissbig trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 4
    Bài viết cuối: 02-09-12, 11:29 PM
  4. [MU] Thoát khỏi mu ra ngoài destop khi vào lại mất hết các skill
    Bởi traidailuc trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 4
    Bài viết cuối: 19-03-12, 11:54 PM
  5. [JX] Lỗi server cyber cầm vũ khí hoàng kim không đánh được skill ngoại công
    Bởi Learning trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 5
    Bài viết cuối: 13-02-12, 08:19 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à 05:19 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ệ.