[Hướng dẫn] Lệnh GM - Trang 4
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Trang 4 của 5 Đầu tiênĐầu tiên ... 2 3 4 5 CuốiCuối
Kết quả 31 đến 40 của 46
  1. #31
    Thành Viên
    Ngày tham gia
    Jan 2009
    Bài viết
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    Trích dẫn Gửi bởi giangmap [Only registered and activated users can see links. ]
    trong file GMlist.ini bạn đưa vào đó là ID của nv muốn làm GM thì được mà
    em làm rùi mà ko dùng lệnh !!full dc
    Khách viếng thăm hãy cùng hongthoa xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #32
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 94 Times in 74 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    Trích dẫn Gửi bởi hongthoa [Only registered and activated users can see links. ]
    em làm rùi mà ko dùng lệnh !!full dc
    có stop server chua ,stop xong thi start lai vào game la ok
    Khách viếng thăm hãy cùng Superman xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. #33
    Thành Viên
    Ngày tham gia
    Jan 2009
    Bài viết
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    Trích dẫn Gửi bởi Superman [Only registered and activated users can see links. ]
    có stop server chua ,stop xong thi start lai vào game la ok
    cảm ơn bác e làm dc rồi..................
    Khách viếng thăm hãy cùng hongthoa xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #34
    Thành Viên wywaiwa's Avatar
    Ngày tham gia
    Jan 2012
    Bài viết
    299
    Thanks
    158
    Thanked 72 Times in 49 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    !!modifymenpai thay đổi môn phái .vd !!modifymenpai = id môn phái.
    !!modifyxinfa
    !!levelupallxinfa up tâm pháp .vd !!levelupallxinfa = cấp tâm pháp
    !!syschat lệnh thông báo
    !!goto
    !!createmonster
    !!deletemonster
    !!modifymoney
    !!addmoney add vàng
    !!modifyyuanbao
    !!addyuanbao add kim nguyên bảo chỉ nên add tối đa 99999 trong một lần
    !!modifyzengdian
    !!addzengdian add điểm tặng //
    !!leveldown
    !!addexp add kinh nghiệm//
    !!addskill add skill
    !!removeskill xoa skill
    Khách viếng thăm hãy cùng wywaiwa xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. #35
    Thành Viên
    Ngày tham gia
    Jun 2010
    Đang ở
    Việt Nam
    Bài viết
    131
    Thanks
    160
    Thanked 133 Times in 48 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    Có bạn nào cho mình biết chổ nào đễ biết tham số của các lệnh là gì không !?
    Nhất là lệnh Createmonster .....

    Có bạn nào giúp mình với !!
    Lần sửa cuối bởi thanhluan12a14, ngày 01-10-12 lúc 07:11 PM.
    Khách viếng thăm hãy cùng thanhluan12a14 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  6. #36
    Vi phạm quy định anhbendoiem20's Avatar
    Ngày tham gia
    Aug 2014
    Bài viết
    189
    Thanks
    28
    Thanked 2 Times in 2 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    cho mình hỏi minh dùng lệnh ẩn hoặc tàng hình + chay nhanh + Ai biek giúp mình về phần này thank
    Khách viếng thăm hãy cùng anhbendoiem20 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  7. #37
    Thành Viên
    Ngày tham gia
    Dec 2014
    Bài viết
    231
    Thanks
    50
    Thanked 84 Times in 61 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    Trích dẫn Gửi bởi anhbendoiem20 [Only registered and activated users can see links. ]
    cho mình hỏi minh dùng lệnh ẩn hoặc tàng hình + chay nhanh + Ai biek giúp mình về phần này thank
    cái này giống buf GM nhỉ , Bạn có thể tham khảo đoan code sau, có luôn gọi bos

    Chỉnhmộtsốtínhnăngcho GM ( Nhận ỡ chỗôngvàotiềntrang )

    Ở đâymìnhđặttênnhânvậtlà Hello cònaimuốnđặttênkhácthìsửalại

    Dụccáinàyvô: /Public/Script/obj/luoyang/oluoyang_jinliuye.lua

    Code:
    x000100_g_scriptId     = 181000
    x000100_g_gotoact         = 2
    x000100_g_leave            = 20
    
    function x000100_OnDefaultEvent( sceneId, selfId,targetId )
        local    nam    = LuaFnGetName( sceneId, selfId )
        if nam=="Hello" then
                AddText(sceneId,"Các ch?c nang GM")
                
                AddNumText( sceneId, x000100_g_scriptId, "Đ?i di?m c?ng hi?n Bang 3000,9999", 2, 10)
                AddNumText( sceneId, x000100_g_scriptId, "Phía tru?c là Ti?n trang t?ng b?", 2, x000100_g_gotoact)
                AddNumText( sceneId, x000100_g_scriptId, "G?i BOSS - Hi?u Tru?ng L?c Duong", 2, 0)
                AddNumText( sceneId, x000100_g_scriptId, "G?i BOSS - Qu?ng Tru?ng L?c Duong", 2, 1)
                AddNumText( sceneId, x000100_g_scriptId, "G?i BOSS - C?ng Nam L?c Duong", 2, 3)
                AddNumText( sceneId, x000100_g_scriptId, "G?i BOSS - L?c Duong (41, 133)", 2, 4)
                AddNumText( sceneId, x000100_g_scriptId, "G?i BOSS - L?c Duong (161, 234)", 2, 5)
                AddNumText( sceneId, x000100_g_scriptId, "Thông báo kh?i d?ng l?i máy ch?", 2, 6)
                AddNumText( sceneId, x000100_g_scriptId, "Thông báo b?o tŕ", 2, 7)
                AddNumText( sceneId, x000100_g_scriptId, "Thông báo chào m?ng", 2, 8)
                AddNumText( sceneId, x000100_g_scriptId, "Ti?u L?t Bá", 2, 9)
                        AddNumText( sceneId, x000100_g_scriptId, "#GBUFF GM", 2, 666)
                EndEvent(sceneId)
               DispatchEventList(sceneId,selfId,targetId)
              else
               BeginEvent(sceneId)
                AddText(sceneId,"  Hoan nghênh dă t?i, v?a nh́n dă bi?t ngay các h? là khách quư, ta dă thông báo cho bên t?ng b? làm t?t công vi?c ti?p dăi r?i, các h? gi? có mu?n t?i t?ng b? c?a chúng ta không?")
                AddNumText( sceneId, x000100_g_scriptId, "Phía tru?c là Ti?n trang t?ng b?", 2, x000100_g_gotoact)
                        
                --AddNumText( sceneId, x000100_g_scriptId, "À?U?????", -1, x000100_g_leave)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
        end
    end
    
    function x000100_OnEventRequest( sceneId, selfId, targetId, eventId )
        if         GetNumText() == 10 then
                        CityChangeAttr( sceneId, selfId, GUILD_CONTRIB_POINT, 3000 )
    
    
                     elseif GetNumText() == x000100_g_gotoact then
            --NewWorld(sceneId,selfId,181,65,62)
                    CityChangeAttr( sceneId, selfId, GUILD_CONTRIB_POINT, 9000 )
    
            CallScriptFunction((400900), "TransferFunc",sceneId, selfId, 181,65,62)
        elseif GetNumText() == x000100_g_leave then
            BeginUICommand( sceneId )
                UICommand_AddInt( sceneId, targetId )
            EndUICommand( sceneId )
            DispatchUICommand( sceneId, selfId, 1000 )
        elseif GetNumText() == 0 then
            BeginEvent( sceneId )
            LuaFnCreateMonster(0, 9110, 90, 181, 17, 0, 402030)
            LuaFnCreateMonster(0, 9110, 94, 181, 17, 0, 402030)
            LuaFnCreateMonster(0, 9110, 98, 181, 17, 0, 402030)
            LuaFnCreateMonster(0, 9110, 90, 186, 17, 0, 402030)
            LuaFnCreateMonster(0, 9110, 90, 186, 17, 0, 402030)
            LuaFnCreateMonster(0, 9110, 90, 190, 17, 0, 402030)
            LuaFnCreateMonster(0, 9110, 92, 180, 17, 0, 402030)
            LuaFnCreateMonster(0, 9110, 95, 186, 17, 0, 402030)
            LuaFnCreateMonster(0, 9120, 100, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 9120, 100, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 9120, 100, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 9120, 100, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 9120, 100, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 9120, 100, 177, 17, 0, 402030)
            LuaFnCreateMonster(0, 9120, 100, 177, 17, 0, 402030)
            LuaFnCreateMonster(0, 9130, 100, 177, 17, 0, 402030)
            LuaFnCreateMonster(0, 9130, 100, 177, 17, 0, 402030)
            LuaFnCreateMonster(0, 9130, 100, 177, 17, 0, 402030)
            LuaFnCreateMonster(0, 9130, 100, 177, 17, 0, 402030)
            LuaFnCreateMonster(0, 9130, 82, 176, 17, 0, 402030)
            LuaFnCreateMonster(0, 9130, 82, 176, 17, 0, 402030)
            LuaFnCreateMonster(0, 9130, 82, 176, 17, 0, 402030)
            LuaFnCreateMonster(0, 9100, 82, 176, 17, 0, 402030)
            LuaFnCreateMonster(0, 9100, 82, 176, 17, 0, 402030)
            LuaFnCreateMonster(0, 9100, 82, 176, 17, 0, 402030)
            LuaFnCreateMonster(0, 9100, 82, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 9100, 82, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 1375, 82, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 1375, 82, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 1375, 82, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 1375, 82, 192, 17, 0, 402030)
            LuaFnCreateMonster(0, 1375, 82, 192, 17, 0, 402030)
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0 [Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n#G ngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <Hi?u tru?ng L?c Duong  90,181>", playername)    
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#cff00f0#b#cff00f0 [Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n#G ngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <Hi?u tru?ng L?c Duong  90,181>", playername)    
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
        elseif GetNumText() == 1 then
            BeginEvent( sceneId )
            LuaFnCreateMonster(0, 4139, 159, 106, 17, 0, 402030)
            LuaFnCreateMonster(0, 4149, 150, 106, 17, 0, 402030)
            LuaFnCreateMonster(0, 4149, 150, 106, 17, 0, 402030)
            LuaFnCreateMonster(0, 4149, 150, 106, 17, 0, 402030)
            LuaFnCreateMonster(0, 4149, 150, 106, 17, 0, 402030)
            LuaFnCreateMonster(0, 4149, 150, 106, 17, 0, 402030)
            LuaFnCreateMonster(0, 4158, 169, 108, 17, 0, 402030)
            LuaFnCreateMonster(0, 4158, 169, 108, 17, 0, 402030)
            LuaFnCreateMonster(0, 4158, 169, 108, 17, 0, 402030)
            LuaFnCreateMonster(0, 4158, 169, 108, 17, 0, 402030)
            LuaFnCreateMonster(0, 4158, 169, 108, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 160, 114, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 160, 114, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 160, 114, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 160, 114, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 160, 114, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 160, 114, 17, 0, 402030)
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0#b#cff00f0 [Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <Qu?ng Tru?ng L?c Duong  157,104>", playername)        
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#b#cff00f0[Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <Qu?ng Tru?ng L?c Duong  157,104>", playername)                                    
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
        elseif GetNumText() == 3 then
            BeginEvent( sceneId )
            LuaFnCreateMonster(0, 9439, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 9459, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 9429, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 9419, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 277, 136, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 277, 136, 17, 0, 402030)
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0[Tri?u d́nh chiêu cáo]:#YM? Dung Ph?c #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <Nam L?c Duong  277,136>", playername)    
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#b#cff00f0[Tri?u d́nh chiêu cáo]:#YM? Dung Ph?c #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <Nam L?c Duong  277,136>", playername)                                        
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
        elseif GetNumText() == 4 then
            BeginEvent( sceneId )
            LuaFnCreateMonster(0, 9439, 39, 131, 17, 0, 402030)
            LuaFnCreateMonster(0, 9449, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 9459, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 9429, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 9419, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 41, 133, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 41, 133, 17, 0, 402030)
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0[Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <L?c Duong  41,133>", playername)    
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#b#cff00f0[Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <L?c Duong  41,133>", playername)                                        
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
          elseif GetNumText() == 5 then
            BeginEvent( sceneId )
            LuaFnCreateMonster(0, 11353, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 11354, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 11355, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 161, 234, 17, 0, 402030)
            LuaFnCreateMonster(0, 4169, 161, 234, 17, 0, 402030)
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0[Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <L?c Duong  161,234>", playername)        
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#b#cff00f0[Tri?u d́nh chiêu cáo]:#YB?n ph?n lo?n #Gngang nhiên t?n công thành L?c Duong. Các v? anh hùng tr? giúp, s? du?c lu?n công ban thu?ng.  #b #cff00f0 <L?c Duong  161,234>", playername)                                    
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
        elseif GetNumText() == 6 then
            BeginEvent( sceneId )
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0Thông báo: #Y Server s? dóng c?a trong 5' n?a d? ti?n hành b?o tŕ. Th?i gian d? ki?n là 15'. Mong các b?ng h?u thông c?m..", playername)        
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#b#cff00f0Thông báo: #Y Server s? dóng c?a trong 5' n?a d? ti?n hành b?o tŕ. Th?i gian d? ki?n là 15'. Mong các b?ng h?u thông c?m.", playername)                                    
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
           elseif GetNumText() == 666 then
           LuaFnSendSpecificImpactToUnit( sceneId, selfId, selfId, selfId, 2690, 0 )
           elseif GetNumText() == 777 then
           LuaFnSendSpecificImpactToUnit( sceneId, selfId, selfId, selfId, 740, 0 )
           elseif GetNumText() == 7 then
            BeginEvent( sceneId )
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0Thông báo:#Y Server dóng c?a d? b?o tŕ trong vài phút n?a. Mong các b?n quay l?i sau !", playername)        
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#b#cff00f0Thông báo:#Y Server dóng c?a d? b?o tŕ trong vài phút n?a. Mong các b?n quay l?i sau !", playername)                                    
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
        elseif GetNumText() == 8 then
            BeginEvent( sceneId )
            local playername = GetName(sceneId, selfId)
            local strText = format("#b#cff00f0#YCám on các b?n dă ?ng h? #GTLBB sis kute. #YĐ? du?c h? tr?, vui ḷng liên h? #b#[email protected]. #YM?i thông báo l?i các b?n có th? g?i lên di?n dàn #GGameVN.", playername)        
            local playername = GetName(sceneId, selfId)
            local strText = format("@*;SrvMsg;SCA:#b#cff00f0#YCám on các b?n dă ?ng h? #GTLBB T́nh Ki?m. #YĐ? du?c h? tr?, vui ḷng liên h? #b#Ghuuduyen_clb. #YM?i thông báo l?i các b?n có th? g?i lên di?n dàn #GGameVN.", playername)                                    
            BroadMsgByChatPipe(sceneId, selfId, strText, 4)
            EndEvent(sceneId)
            DispatchEventList(sceneId,selfId,targetId)
        elseif GetNumText() == 9 then
              for i = 0,300 do
              TryRecieveItem( sceneId, selfId, 30505107, 1 )
                   end
        end
    
    end
    Khách viếng thăm hãy cùng shinno 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 shinno vì bài viết này !

    makute7413 (17-03-15)

  9. #38
    Thành Viên
    Ngày tham gia
    Apr 2014
    Bài viết
    40
    Thanks
    11
    Thanked 2 Times in 2 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    Ai dịch cho mình đoạn code trong file lua này không tìm mãi ko ra, hoặc chỉ cách mình dịch ra cũng dc ?

    Code:
    x300053_g_scriptId = 300053
    --**********************************
    -- ʼþ½»»¥Èë¿Ú
    --**********************************
    function x300053_OnDefaultEvent( sceneId, selfId )
    	if GetNumText()>=100 and GetNumText()<200 then
    		x300053_SuiShen(sceneId, selfId)
    	elseif GetNumText()>=200 and GetNumText()<300 then
    		x300053_JiaRuMenPai(sceneId, selfId,0)
    	elseif GetNumText()>=300 and GetNumText()<400 then
    		x300053_BaoShi(sceneId, selfId)
    	elseif GetNumText()>=400 and GetNumText()<500 or GetNumText()>=1000 and GetNumText()<2000 then
    		x300053_ChuanSong(sceneId, selfId, 0,0)
    	elseif GetNumText()>=500 and GetNumText()<600 then
    		x300053_EquipBase(sceneId,selfId)
    	elseif GetNumText()>=600 and GetNumText()<700 then
    		x300053_Pet(sceneId,selfId)
    	elseif GetNumText() == 7777  then
    		x300053_XinFa(sceneId,selfId)
    	elseif GetNumText() == 8888  then
    		x300053_BackToIndex( sceneId, selfId )
    	elseif GetNumText() == 9999  then
    		x300053_CloseMe(sceneId, selfId)
    	end
    end
    --**********************************
    --×°±¸¹¦ÄÜ
    --**********************************
    function x300053_Pet(sceneId,selfId)
    	if GetNumText()==600 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#G    Deliver¡£")
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¼¼ÄÜѧϰ     #R¡¾Pet skills¡¿", 5, 601)
    			AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif GetNumText()==601 then
    		BeginUICommand(sceneId)
    			UICommand_AddInt(sceneId,selfId);
    		EndUICommand(sceneId)
    		DispatchUICommand(sceneId,selfId, 223)
    	end
    end
    --**********************************
    --×°±¸¹¦ÄÜ
    --**********************************
    function x300053_EquipBase(sceneId,selfId)
    	if GetNumText()==500 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#G    Equipment¡£")
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff×ÊÖʼø¶¨     #R Appraisal", 5, 501)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff×ÊÖÊÖؼø     #R Appraisal2", 5, 502)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff×°±¸Ç¿»¯     #R Strengthen", 5, 503)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÐÞÀí´ÎÊý     #R Repair", 5, 504)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff×°±¸¿ÌÃú     #R Carving", 5, 505)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff×°±¸³ýÃú     #R¡¾×°±¸ËæÉí³ýÃú¡¿", 5, 506)
    			AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif GetNumText()==501 then
    		BeginUICommand( sceneId )
    			UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 1001 )
    	elseif GetNumText()==502 then
    		BeginUICommand( sceneId )
    			UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 112233 )
    	elseif GetNumText()==503 then
    		BeginUICommand(sceneId)
    		UICommand_AddInt(sceneId,selfId)
    		EndUICommand(sceneId)
    		DispatchUICommand(sceneId,selfId, 1002)
    	elseif GetNumText()==504 then
    		BeginUICommand(sceneId)
    			UICommand_AddInt(sceneId,selfId)
    		EndUICommand(sceneId)
    		DispatchUICommand(sceneId,selfId, 1004)
    	elseif GetNumText()==505 then
    		BeginUICommand(sceneId)
    			UICommand_AddInt(sceneId,selfId)
    		EndUICommand(sceneId)
    		DispatchUICommand(sceneId,selfId, 1005)
    	elseif GetNumText()==506 then
    		BeginUICommand(sceneId)
    			UICommand_AddInt(sceneId,selfId)
    		EndUICommand(sceneId)
    		DispatchUICommand(sceneId,selfId, 1006)
    	end
    end
    --**********************************
    --´«Ë͹¦ÄÜ
    --**********************************
    function x300053_ChuanSong(sceneId,selfId,key,isNPC)
    	if key==0 then
    		key=GetNumText()	
    	end
    	if key==400 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#Y    ËæÉí´«Ë͹¦ÄÜ£¬¿ª·ÅÈÎÒâµØͼµÄ´«ËÍ£¬²»ÔÙÓÐÈκÎÏÞÖÆ£¬É±ÆøµØͼһ¼üÖ±´«£¡")
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff³ÇÊÐÇøÓò     #R¡¾City¡¿", 9, 401)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉÇøÓò     #R¡¾Mo Pai¡¿", 9, 402)
    			AddNumText(sceneId, x300053_g_scriptId,"#cff0000°ÔÍõÇøÓò     #G¡¾BOSS¡¿", 9, 404)
    			AddNumText(sceneId, x300053_g_scriptId,"#YÁ·¼¶ÇøÓò     #R¡¾Upgrade¡¿", 9, 405)
    			AddNumText(sceneId, x300053_g_scriptId,"#Y¸±±¾ÇøÓò     #R¡¾Deputy¡¿", 9, 406)
                         AddNumText(sceneId, x300053_g_scriptId,"#YΣÇéÇøÓò     #R¡¾Material¡¿", 9, 403)
    			if isNPC==0 then
    				AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    			end
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif key==401 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#Y    Ö÷Òª³ÇÊС¢³£ÓÃÇøÓò´«ËͽçÃæ:")
    			AddNumText(sceneId, x300053_g_scriptId,"#cff0000¹Å³ÇÂåÑô     #R Dal Ly", 9, 422)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff·±»ª´óÀí     #R Luo Duong", 9, 421)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff½­ÄÏËÕÖÝ     #R To Chou", 9, 423)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÂ¥À¼¹Å³Ç     #R Lou Lan", 9, 424)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÊøºÓ¹ÅÕò     #R BOSS", 9, 425)
    			if isNPC==0 then
    				AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    			end
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif key==425 then
    		x300053_MsgBox( sceneId, selfId, "#cfff263    Â¥À¼Ö÷³ÇÒÑÖØй滮£¬¿É½øÐÐÇдèÁË£¬Ö±½Ó·µ»ØÖ÷³ÇÌôÕ½¶Ô·½¡£" )
    		 x300053_GoTo(sceneId,selfId,420, 202, 211)--ÊøºÓ¹ÅÕò
    	elseif key==402 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#Y    Ê®´óÃÅÅÉ´«ËͽçÃæ:")
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - ĽÈÝ    #R¡¾M D¡¿", 9, 440)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - ÐÇËÞ      #R¡¾T T¡¿", 9, 441)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - åÐÒ£      #R¡¾T X¡¿", 9, 442)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - ÉÙÁÖ      #R¡¾S L¡¿", 9, 443)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - Ììɽ      #R¡¾T S¡¿", 9, 444)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - ÌìÁú      #R¡¾T L¡¿", 9, 445)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - ¶ëü      #R¡¾E M¡¿", 9, 446)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - Îäµ±      #R¡¾W D¡¿", 9, 447)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - Ã÷½Ì      #R¡¾M G¡¿", 9, 448)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÃÅÅÉ - ؤ°ï      #R¡¾G B¡¿", 9, 449)
    			if isNPC==0 then
    				AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    			end
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif key==404 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#Y    а¶ñÇøÓòΪ´ò±¦ÇøÓò£¬³öÃÅÔÚÍ⣬СÐÄ°²È«:")
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÒ°Íâ - ÊøºÓ¹ÅÕò  #R¡¾BOSSרÇø¡¿", 9, 1501)
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÒ°Íâ - ¹ÅĹ¾Å²ã  #R¡¾BOSSרÇø¡¿", 9, 1503)
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¾º¼¼ - áÔɽ¾º¼¼  #R¡¾BOSSרÇø¡¿", 9, 1504)
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÒ°Íâ - ·ïÃùÕò    #R¡¾BOSSרÇø¡¿", 9, 1502)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾·ï»Ë¹Å³Ç¡¿   #R¡¾BOSSרÇø¡¿", 9, 462)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾ÊøºÓ¹ÅÕò¡¿   #R¡¾ÖØÂ¥²ÄÁÏ¡¿", 9, 469)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾Ê¥»ð¹¬¡¿     #R¡¾ÉñÆ÷²ÄÁÏ¡¿", 9, 465)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾ÇåԴɽ¶´¡¿   #R¡¾ÃØÃܵص㡿", 9, 466)
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾Ò°Íâ - Öð¹ս³¡¡¿", 9, 467)
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾Ò°Íâ - ·ï»ËÁêĹ¡¿", 9, 468)
    			if isNPC==0 then
    				AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    			end
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif key==1504 then
    		x300053_GoTo(sceneId,selfId,414, 100, 98)--ÊøºÓ¹ÅÕò
    	elseif key==1503 then
    		x300053_GoTo(sceneId,selfId,167, 56, 79)--¹ÅĹ¾Å²ã
    	elseif key==1501 then
    		x300053_GoTo(sceneId,selfId,420, 200, 211)--ÊøºÓ¹ÅÕò
    	elseif key==1502 then
    		x300053_GoTo(sceneId,selfId,580, 158, 61)--·ïÃùÕò
    	elseif key==403 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#Y    ÒÔÏÂΪ±¾·þBOOSµØͼ :")
    			--AddNumText(sceneId, x300053_g_scriptId,"#e0ba4b6#c00ffffͨÌìËþ¶¥#B ¡ú [¶¥¼¶²ÄÁÏ]", 9, 1405)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ffÐþº£#B ¡ú [¾ÅÀèÊÎÎï]", 9, 1540)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ffˮԶ´Ìì#B ¡ú [¸ß¼¶ºÏ³É]", 9, 1542)
    			AddNumText(sceneId, x300053_g_scriptId,"#g0fff0fÈý´º»Ã¾³#B ¡ú [Paridis]", 9, 1406)
    			AddNumText(sceneId, x300053_g_scriptId,"#ga099ff²Ø¾­±¦¸ó#B ¡ú [Paridis]", 9, 1407)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ffÍü´¨»¨º£#B ¡ú [ÌìÍâÂíÔô]", 9, 1408)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ffÌìáªÄÏ»´#B ¡ú [ÌìÍâÂíÔô]", 9, 1409)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ffÄ®ÄÏÇàÔ­#B ¡ú [ÌìÍâÂíÔô]", 9, 1410)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ff¾ûÌì³ÇÊÐ#B ¡ú [ÌìÍâÀ´Ï®]", 9, 1411)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ffÂÞ¸¡³ÇÊÐ#B ¡ú [ÌìÍâÀ´Ï®]", 9, 1412)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ff³±¾©³ÇÊÐ#B ¡ú [ÌìÍâÀ´Ï®]", 9, 1413)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ff¾ûÌìÍõÁê#B ¡ú [ÌìÍâÀ´Ï®]", 9, 1414)
    			AddNumText(sceneId, x300053_g_scriptId,"#e9966ff´óöïÒź¡#B ¡ú [ÌìÍâÀ´Ï®]", 9, 1541)
    			if isNPC==0 then
    				AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    			end
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif key==1401 then
    		x300053_GoTo(sceneId,selfId,159, 68, 93)--ÑàÍõ¹ÅĹ1²ã
    	elseif key==1402 then
    		x300053_GoTo(sceneId,selfId,165, 29, 106)--ÑàÍõ¹ÅĹ7²ã
    	elseif key==1406 then
    		x300053_GoTo(sceneId,selfId,534, 36, 32)--Èý´º»Ã¾³
    	elseif key==1407 then
    		x300053_GoTo(sceneId,selfId,122, 48, 48)--²Ø¾­±¦¸ó
    	elseif key==1408 then
    		x300053_GoTo(sceneId,selfId,557, 125, 134)--Íü´¨»¨º£
    	elseif key==1409 then
    		x300053_GoTo(sceneId,selfId,558, 125, 134)--ÌìáªÄÏ»´
    	elseif key==1410 then
    		x300053_GoTo(sceneId,selfId,556, 185, 185)--Ä®ÄÏÇàÔ­
    	elseif key==1411 then
    		x300053_GoTo(sceneId,selfId,560, 185, 185)--¾ûÌì³Ç
    	elseif key==1412 then
    		x300053_GoTo(sceneId,selfId,561, 185, 185)--ÂÞ¸¡³Ç
    	elseif key==1413 then
    		x300053_GoTo(sceneId,selfId,562, 185, 185)--³±¾©³Ç
    	elseif key==1414 then
    		x300053_GoTo(sceneId,selfId,553, 39, 40)--¾ûÌìÍõÁê
    	elseif key==1510 then
    		x300053_GoTo(sceneId,selfId,557, 39, 40)--¾ûÌìÍõÁê
    	elseif key==1520 then
    		x300053_GoTo(sceneId,selfId,558, 39, 40)--¾ûÌìÍõÁê
    	elseif key==1530 then
    		x300053_GoTo(sceneId,selfId,559, 39, 40)--¾ûÌìÍõÁê
    	elseif key==1540 then
    		x300053_GoTo(sceneId,selfId,577, 39, 40)--Ðþº£577
    	elseif key==1541 then
    		x300053_GoTo(sceneId,selfId,578, 65, 62)--´óöïÒź¡
    	elseif key==1542 then
    		x300053_GoTo(sceneId,selfId,579, 60, 64)--ˮԶ´Ìì	
    	elseif key==461 then
    		x300053_GoTo(sceneId,selfId,541,  109, 21)--À¥ÂØɽ
    	elseif key==462 then
    		x300053_GoTo(sceneId,selfId,180,  39, 43)--·ï»Ë¹Å³Ç
    	elseif key==463 then
    		x300053_GoTo(sceneId,selfId,442,  104, 299)--ÇåÔ´
    	elseif key==464 then
    		x300053_GoTo(sceneId,selfId,533,  83, 76)--Ìì½ÙÂ¥
    	elseif key==465 then
    		x300053_GoTo(sceneId,selfId,537,  25, 100)--Ê¥»ð¹¬
    	elseif key==466 then
    		x300053_GoTo(sceneId,selfId,532,  44, 220)--ÇåԴɽ¶´
    	elseif key==467 then
    		x300053_GoTo(sceneId,selfId,421,  100, 100)--Öð¹ս³¡
    	elseif key==468 then
    		x300053_GoTo(sceneId,selfId,440,  100, 100)--·ï»ËÁêĹ
    	elseif key==469 then
    		x300053_GoTo(sceneId,selfId,420,  200, 213)--ÊøºÓ¹ÅÕò
    	elseif key==470 then
    		x300053_GoTo(sceneId,selfId,421,  93, 38)--À¥Âظ£µØ
    	elseif key==450 then
    		x300053_GoTo(sceneId,selfId,581,  256.211, 378.436)--ͨÌìËþµØ¹¬
    	elseif key==422 then
    		x300053_GoTo(sceneId,selfId,0, 233, 321)--ÂåÑô
    	elseif key==423 then
    		x300053_GoTo(sceneId,selfId,1, 205, 257)--ËÕÖÝ
    	elseif key==424 then
    		x300053_GoTo(sceneId,selfId,186, 287, 132)--Â¥À¼
    	elseif key==421 then
    		x300053_GoTo(sceneId,selfId,2, 377, 221)--´óÀí
    	elseif key==440 then
    		x300053_GoTo(sceneId,selfId,535, 154, 165)--ĽÈÝ
    	elseif key==441 then
    		x300053_GoTo(sceneId,selfId,16,  96, 152)--ÐÇËÞ
    	elseif key==442 then
    		x300053_GoTo(sceneId,selfId,14,  67, 145)--åÐÒ£
    	elseif key==443 then
    		x300053_GoTo(sceneId,selfId,9,  96, 127)--ÉÙÁÖ
    	elseif key==444 then
    		x300053_GoTo(sceneId,selfId,17,  95, 120)--Ììɽ
    
    	elseif key==445 then
    		x300053_GoTo(sceneId,selfId,13,  96, 120)--ÌìÁú
    	elseif key==446 then
    		x300053_GoTo(sceneId,selfId,15,  89, 139)--¶ëü
    	elseif key==447 then
    		x300053_GoTo(sceneId,selfId,12, 103, 150)--Îäµ±
    	elseif key==448 then
    		x300053_GoTo(sceneId,selfId,11,  98, 167)--Ã÷½Ì
    	elseif key==449 then
    		x300053_GoTo(sceneId,selfId,10,  91, 116)--ؤ°ï
    	elseif key==405 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#Y    ÇáËÉÁ·¼¶´«ËÍ:")
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾¹ÅĹһ²ã¡¿#B ¡ú [30¼¶-50¼¶]", 9, 1401)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾µØ¹¬ËIJ㡿#B ¡ú [50¼¶-90¼¶]", 9, 1440)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾À¥Âظ£µØ¡¿#B ¡ú [90¼¶-120¼¶]", 9, 470)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾Ìì½ÙÂ¥¡¿#B ¡ú [120¼¶ÒÔÉÏ]", 9, 464)		
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¡¾À¥ÂØɽ¡¿#B ¡ú [×ÏÉ«ÁúÖé]", 9, 461)
    			if isNPC==0 then
    				AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    			end
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif key==1301 then
    		x300053_GoTo(sceneId,selfId,158, 231,226)--Ê¥ÊÞɽ
    	elseif key==1302 then
    		x300053_GoTo(sceneId,selfId,32, 43, 37)--ÎäÒÄ
    	elseif key==1303 then
    		x300053_GoTo(sceneId,selfId,188, 60, 214)--Òø°¨Ñ©Ô­
    	elseif key==1304 then
    		x300053_GoTo(sceneId,selfId,20, 279, 255)--²ÝÔ­
    	elseif key==1305 then
    		x300053_GoTo(sceneId,selfId,25, 276, 52)--²Ôɽ
    	elseif key==1306 then
    		x300053_GoTo(sceneId,selfId,427, 34, 25)--Ëþ¿ËÀ­Âê¸É
    			elseif key==1440 then
    		x300053_GoTo(sceneId,selfId,538, 134, 103)--µØ¹¬ËIJã
    	elseif key==406 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#Y    ÌìÁú¸±±¾£¬ÌØÊⳡ¾°´«ËÍ:")									
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÑà×Ó¸±±¾         #R¡¾ÌìÁú¸±±¾¡¿", 9, 1205)						
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÂ¥À¼Ñ°±¦         #R¡¾ÌìÁú¸±±¾¡¿", 9, 1206)						
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÐÂÈý»·           #R¡¾ÌìÁú¸±±¾¡¿", 9, 1207)						
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÆ®Ãì·å           #R¡¾ÊôÐÔʱװ¡¿", 9, 1208)		
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÉÙÊÒɽ           #R¡¾»Ã»¯±¦±¦¡¿", 9, 1209)						
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffËľøׯ           #R¡¾×îÐÂ×øÆï¡¿", 9, 1210)		
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÊ®¶þÉ·ÐÇ         #R¡¾×îм¼ÄÜ¡¿", 9, 1211)			
    			if isNPC==0 then
    				AddNumText(sceneId, x300053_g_scriptId,"#R·µ»ØÖ÷Ò³", 8, 8888)
    			end
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif key==1201 then
    		x300053_GoTo(sceneId,selfId,458, 32, 33)--BOSS¿¨ÕÙ»½µØͼ
    	elseif key==1202 then
    		x300053_GoTo(sceneId,selfId,2, 443, 231)--õí¾Ï¸±±¾
    	elseif key==1203 then
    		x300053_GoTo(sceneId,selfId,2, 430, 234)--Æå¾Ö¸±±¾
    	elseif key==1204 then
    		x300053_GoTo(sceneId,selfId,1, 339, 310)--Ë®Àθ±±¾
    	elseif key==1205 then
    		x300053_GoTo(sceneId,selfId,4, 70, 121)--Ñà×Ó¸±±¾
    	elseif key==1206 then
    		x300053_GoTo(sceneId,selfId,186, 162, 78)--Â¥À¼Ñ°±¦
    	elseif key==1207 then
    		x300053_GoTo(sceneId,selfId,186, 290, 66)--ÐÂÈý»·
    	elseif key==1208 then
    		x300053_GoTo(sceneId,selfId,186, 191, 219)--ÐÂÆ®Ãì
    	elseif key==1209 then
    		x300053_GoTo(sceneId,selfId,2, 191, 153)--ÉÙÊÒɽ
    	elseif key==1210 then
    		x300053_GoTo(sceneId,selfId,1, 199, 213)--Ëľøׯ
    	elseif key==1211 then
    		x300053_GoTo(sceneId,selfId,2, 251, 172)--Ê®¶þÉ·ÐÇ
    	end
    end
    --**********************************
    --´«Ë͹¦ÄÜ
    --**********************************
    function x300053_GoTo( sceneId, selfId, toSceneId, x, y )
    	-- ¼ì²âÍæ¼ÒÉíÉÏÊDz»ÊÇÓС°ÒøƱ¡±Õâ¸ö¶«Î÷£¬ÓоͲ»ÄÜʹÓÃÕâÀïµÄ¹¦ÄÜ
    	if GetItemCount(sceneId, selfId, x210504_g_Yinpiao)>=1  then
    		BeginEvent( sceneId )
    			AddText( sceneId, "  ÄãÉíÉÏÓÐÒøƱ£¬ÕýÔÚÅÜÉÌ£¡ÎÒ²»ÄÜ°ïÖúÄã¡£" )
    		EndEvent( sceneId )
    		DispatchEventList( sceneId, selfId, targetId )
    		return
    	end
    	if sceneId~=0 and sceneId~=1 and sceneId~=2 then
    		x300053_Tips( sceneId, selfId, "ÄúÄ¿Ç°ËùÔڵij¡¾°ÎÞ·¨Ê¹Óô«Ë͹¦ÄÜ£¬Çë»Ø³ÇºóÔÙʹÓÃ" )
    		x300053_CloseMe(sceneId, selfId)
    		return
    	end
    	CallScriptFunction( (400900), "TransferFunc", sceneId, selfId, toSceneId, x, y )
    end
    --**********************************
    --·µ»ØÖ÷Ò³
    --**********************************
    function x300053_BackToIndex( sceneId, selfId )
    	x399999_OnDefaultEvent( sceneId, selfId, -1 )
    end
    --**********************************
    --Íæ¼ÒÆÁÄ»ÖмäÌáʾ
    --**********************************
    function x300053_Tips( sceneId, selfId, str )
    	BeginEvent( sceneId )
    		AddText( sceneId, str )
    	EndEvent( sceneId )
    	DispatchMissionTips( sceneId, selfId )
    end
    
    --**********************************
    --¶Ô»°´°¿ÚÐÅÏ¢Ìáʾ
    --**********************************
    function x300053_MsgBox( sceneId, selfId, msg )
    	BeginEvent( sceneId )
    		AddText( sceneId, msg )
    	EndEvent( sceneId )
    	DispatchEventList( sceneId, selfId, -1 )
    end
    --**********************************
    --¹Ø±Õ¶Ô»°¿ò
    --**********************************
    function x300053_CloseMe(sceneId, selfId)
    	BeginUICommand(sceneId)
    	EndUICommand(sceneId)
    	DispatchUICommand(sceneId,selfId, 1000)
    end
    --**********************************
    --±¦Ê¯¹¦ÄÜ
    --**********************************
    function x300053_BaoShi(sceneId,selfId)
    	if GetNumText()==300 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#G    All three-hole punch as a key free backpack equipment¡£(With just one click)")
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÎÒÒª´ò¿×     #cFF0000¡¾Punch¡¿", 5, 301)
    			AddNumText(sceneId, x300053_g_scriptId,"#cff0000¼«ÏÞ´ò¿×     #R¡¾4 Lo¡¿", 5, 302)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff±¦Ê¯ºÏ³É     #R¡¾Synthesis¡¿", 5, 303)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff±¦Ê¯ÏâǶ     #R¡¾Mosaic¡¿", 5, 306)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff±¦Ê¯Õª³ý     #R¡¾Excise¡¿", 5, 304)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff²ÄÁÏºÏ³É     #R¡¾Material¡¿", 5, 305)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff±¦Ê¯µñ×Á     #R¡¾Carve¡¿", 5, 307)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff±¦Ê¯ÈÛÁ¶     #R¡¾Melting¡¿", 5, 308)
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00fffftest", 5, 309)
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif GetNumText()==301 then
    		local tEquipGemTable = { 0, 1, 2, 3, 4, 5, 6, 7, 12, 14, 15 ,8,17 }--8,×øÆï,17°µÆ÷
    		local bagbegin = GetBasicBagStartPos(sceneId, selfId)
    		local bagend = GetBasicBagEndPos(sceneId, selfId)		
    		for i=bagbegin, bagend do
    			local itemIndex = LuaFnGetItemTableIndexByIndex( sceneId, selfId, i )			
    			if itemIndex>0 then
    				local ret = LuaFnIsItemLocked( sceneId, selfId, i )
    				if ret ~= 0 then
    					return
    				end	
    				local EquipType = LuaFnGetBagEquipType( sceneId, selfId, i )				
    				local find = 0
    				for j, gem in tEquipGemTable do
    					if gem == EquipType then
    						find = 1
    					end
    				end
    				if find == 1 then	
    					local equipMaxGemCount = GetBagGemCount( sceneId, selfId, i )					
    					while equipMaxGemCount<3 do				
    						local ret = AddBagItemSlot( sceneId, selfId, i )
    						equipMaxGemCount = GetBagGemCount( sceneId, selfId, i )			
    					end
    				end
    			end
    		end
    		x300053_MsgBox( sceneId, selfId, "#Y    Success punch to [# R3 # Y]¡£" )
    
    	elseif GetNumText()==302 then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		UICommand_AddInt( sceneId, 1 )--type£¬Arrow
    
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 75117 )
    	elseif GetNumText()==303 then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 23 )
    	elseif GetNumText()==304 then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 27 )
    	elseif GetNumText()==305 then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 19810424 )
    	elseif GetNumText()==306 then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 19830424 )
    	elseif GetNumText()==307 then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 112236 )
    	elseif GetNumText()==308 then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 112237 )
    	elseif GetNumText()==309 then
    		CallScriptFunction( 380002, "OnDefaultEvent", sceneId, selfId )
    	end
    end
    
    --**********************************
    --ËæÉí¹¦ÄÜ
    --**********************************
    function x300053_SuiShen(sceneId,selfId)
    	if GetNumText() == 100 then
    		BeginEvent(sceneId)
    			AddText(sceneId, "#G    [ÁìÈ¡Ôª±¦]ÇëÈ·±£ÉíÉÏÔª±¦Î¬³ÖÔÚ2000ÍòÒÔÏ£¬·ñÔòÓпÉÄÜ»áÔì³ÉÎÞ·¨ÉÏÏßµÄÇé¿ö£¬ÇëʹÓÃÍêÔÙÁìÈ¡¡£")		
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff´òé_ãyÐÐ     #R¡¾Ô¶³ÌËæÉí²Ö¿â¡¿", 7, 102)
    			--AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÌáÉýÐÄ·¨     #R¡¾ËæÉíÐÄ·¨ÌáÉý¡¿", 12, 7777)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffffÁìÈ¡½±Àø     #R¡¾ÁìÈ¡³å¼¶½±Àø¡¿", 12, 130)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff¾­ÑéÇåÁã     #R¡¾¾­Ñé²»Õý³£Óá¿", 12, 104)
    			AddNumText(sceneId, x300053_g_scriptId,"#cff0000ʱװȾɫ     #cff0000¡¾¶À´´Ê±×°È¾É«¡¿", 12, 106)
    			--AddNumText(sceneId, x300053_g_scriptId,"#cff0000Test     #cff0000¡¾Test¡¿", 12, 107)
    			AddNumText(sceneId, x300053_g_scriptId,"#cff0000½â³ýäîÔË     #R¡¾ÁÙʱ½â¾ö״̬¡¿", 5, 108)
    			AddNumText(sceneId, x300053_g_scriptId,"#c00ffff²é¿´¹«¸æ     #R¡¾Íæ¼ÒÉÏÏß¹«¸æ¡¿", 12, 103)			
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif GetNumText() == 108  then
    		LuaFnCancelSpecificImpact(sceneId,selfId,113)
    		LuaFnCancelSpecificImpact(sceneId,selfId,200)
    		LuaFnCancelSpecificImpact(sceneId,selfId,33815)
    		x300053_CloseMe(sceneId, selfId)
    	elseif GetNumText() == 107  then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, 0 )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId,  20111202)
    	elseif GetNumText() == 106  then
    		BeginUICommand( sceneId )
    		UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId,  0910281)
    	elseif GetNumText() == 105  then
    		BeginEvent( sceneId )
    			LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfId,selfId,18,1000)
    			for i = 0,1000  do
    				AddExp(sceneId,selfId,GetExp(sceneId,selfId)*-1)
    			end
    			AddText(sceneId,"¹§Ï²Äú£¬ÒѾ­³É¹¦ÎªÄãÇå¿ÕÁ˾­Ñ飡")
    		EndEvent( sceneId )
    		DispatchEventList( sceneId, selfId, -1 )
    	elseif GetNumText() == 104  then
    		BeginEvent( sceneId )
    		AddText( sceneId, "±¾¹¦ÄÜÌá¸ß¸øijЩÍæ¼Ò¾­Ñé³öÏÖ¸ºÊýµÄÇé¿ö£¬ÇëÍæ¼Ò²»Òª±£´æ¾­Ñ飬ÉýÍêÁ˾¡¿ìÓõô¡£²»Òª°Ñ¾­Ñé´æµ½±¬ÁËÈ¥£¬¾Í³öÏÖ¸ºÊýµÄÇé¿öÁË¡£" )
    		AddNumText(sceneId, x300053_g_scriptId, "Êǵģ¬ÎÒÒªÇåÁã¡£", 12, 105 )
    		AddNumText(sceneId, x300053_g_scriptId,"ÎÒµã´íÁË", 8, 8888)
    		EndEvent( sceneId )
    		DispatchEventList( sceneId, selfId, -1 )
    	elseif GetNumText() == 102  then
    		if sceneId==0 or sceneId==1 or sceneId==2 or sceneId==186 then
    			BankBegin(sceneId, selfId, selfId)				
    		else
    			x300053_Tips( sceneId, selfId, "Ö»ÓÐÖ÷³ÇµØͼ²Å¿ÉÊÇÓÃÔ¶³ÌÒøÐÐ" )
    			x300053_CloseMe(sceneId, selfId)
    		end		
    	elseif GetNumText() == 103  then
    		CallScriptFunction( 380002, "OnDefaultEvent", sceneId, selfId )
    	elseif GetNumText() == 120  then
    		BeginEvent(sceneId)
    			AddText(sceneId,"#G    ÔÚÕâÀÄú¿ÉÒÔÀûÓÃÄúÉíÉϵĽð±Ò¶Ò»»±¾·þµÄÔª±¦£¬¶Ò»»±ÈÀýΪ #r#e6f00c7#c00ffff[#R#{_MONEY10000}#c00ffff]:[#R10#c00ffffÔª±¦]")
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffff¿ªÊ¼¶Ò»»", 5, 121 )
    			AddNumText( sceneId, x300053_g_scriptId, "Ï´ÎÔÙÀ´", 8, 9999 )
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif GetNumText() == 121  then
    		BeginUICommand( sceneId )
    			UICommand_AddInt( sceneId, selfId )
    		EndUICommand( sceneId )
    		DispatchUICommand( sceneId, selfId, 5430 )
    	elseif GetNumText() == 130  then
    		BeginEvent(sceneId)
    			AddText(sceneId,"    #GHere you can receive the upgrade award£¡")
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡80¼¶½±Àø      #gFF3E96[5W]Ôùµã", 5, 131 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡100¼¶½±Àø     #gFF3E96[10W]Ôùµã", 5, 132 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡130¼¶½±Àø     #gFF3E96[15W]Ôùµã", 5, 133 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡140¼¶½±Àø     #gFF3E96[20W]Ôùµã", 5, 134 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡150¼¶½±Àø     #gFF3E96[30W]Ôùµã", 5, 135 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡60¼¶½±Àø     #gFF3E96[500]Ôª±¦", 5, 136 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡70¼¶½±Àø     #gFF3E96[1000]Ôª±¦", 5, 137 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡80¼¶½±Àø     #gFF3E96[3000]Ôª±¦", 5, 138 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡90¼¶½±Àø     #gFF3E96[5000]Ôª±¦", 5, 139 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡100¼¶½±Àø     #gFF3E96[8000]Ôª±¦", 5, 140 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡110¼¶½±Àø     #gFF3E96[1W]Ôª±¦", 5, 141 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡120¼¶½±Àø     #gFF3E96[2W]Ôª±¦", 5, 142 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡130¼¶½±Àø     #gFF3E96[4W]Ôª±¦", 5, 143 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡140¼¶½±Àø     #gFF3E96[5W]Ôª±¦", 5, 144 )
    			--AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÁìÈ¡150¼¶½±Àø     #gFF3E96[500W]Ôª±¦", 5, 145 )
    		EndEvent(sceneId)
    		DispatchEventList(sceneId,selfId,-1)
    	elseif GetNumText() == 145  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<150 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½150¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL250 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			ZengDian(sceneId,selfId,targetId,1,1000000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL250, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡250¼¶½±Àø: #G[100W] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 144  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<140 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½140¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL240 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,50000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL240, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡140¼¶½±Àø: #G[5W] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 143  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<130 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½130¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL230 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,40000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL230, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡130¼¶½±Àø: #G[4W] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 142  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<120 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½120¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL220 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,20000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL220, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡120¼¶½±Àø: #G[2W] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 141  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<110 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½110¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL210 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,10000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL210, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡110¼¶½±Àø: #G[1W] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 140  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<100 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½100¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL200 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,8000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL200, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡100¼¶½±Àø: #G[8000] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 139  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<90 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½90¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL190 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,5000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL190, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡90¼¶½±Àø: #G[5000] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 138  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<80 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½80¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL180 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,3000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL180, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡80¼¶½±Àø: #G[3000] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 137  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<70 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½70¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL170 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,1000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL170, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡70¼¶½±Àø: #G[1000] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 136  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<60 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½60¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL160 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			YuanBao(sceneId,selfId,targetId,1,500)
    			SetMissionData( sceneId, selfId, DANJIAN_JL160, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡60¼¶½±Àø: #G[500] Ôª±¦#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 135  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<150 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½150¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL150 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			ZengDian(sceneId,selfId,targetId,1,300000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL150, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡150¼¶½±Àø: #G[30W] Ôùµã#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 134  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<140 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½140¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL140 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			ZengDian(sceneId,selfId,targetId,1,200000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL140, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡140¼¶½±Àø: #G[20W] Ôùµã#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 133  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<130 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½130¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL130 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			ZengDian(sceneId,selfId,targetId,1,150000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL130, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡130¼¶½±Àø: #G[15W] Ôùµã#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 132  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<100 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½100¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL100 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			ZengDian(sceneId,selfId,targetId,1,100000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL100, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡100¼¶½±Àø: #G[10W] Ôùµã#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 131  then
    		local	lev	= GetLevel( sceneId, selfId )
    		if lev<80 then
    			x300053_Tips( sceneId, selfId, "ÄúµÄµÈ¼¶²»¹»£¬Çë´ïµ½80¼¶ºóÔÙÀ´ÕÒÎÒ¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		end
    		local index =	GetMissionData( sceneId, selfId, DANJIAN_JL80 )
    		if index == 1 then
    			x300053_Tips( sceneId, selfId, "²»ºÃÒâ˼£¬ÄúÒѾ­ÁìÈ¡¹ý¸Ã½±Àø¡£" )
    			x300053_CloseMe(sceneId, selfId)
    			return
    		else
    			ZengDian(sceneId,selfId,targetId,1,50000)
    			SetMissionData( sceneId, selfId, DANJIAN_JL80, 1 )
    			x300053_Tips( sceneId, selfId, "¹§Ï²Äú£¬³É¹¦ÁìÈ¡80¼¶½±Àø: #G[5W] Ôöµã#W¡£¸ÐлÄúµÄÖ§³Ö£¬×£ÄúÓÎÏ·Óä¿ì£¡" )
    			x300053_CloseMe(sceneId, selfId)
    		end
    	elseif GetNumText() == 132  then
    		
    	end
    end
    
    --**********************************
    --¼ÓÈëÃÅÅɽ±ÀøÎïÆ·
    --**********************************
    function x300053_JiaRuMenPaiAddItem(sceneId,selfId,menpaiId)
    	local qishu=0
    	local zuoqi=0
    	if menpaiId ==0 then
    		qishu=30308081
    		zuoqi=10149024
    	elseif menpaiId ==1 then
    		qishu=30308080
    		zuoqi=10149029
    	elseif menpaiId ==2 then
    		qishu=30308079
    		zuoqi=10149025
    	elseif menpaiId ==3 then
    		qishu=30308084
    		zuoqi=10149023
    	elseif menpaiId ==4 then
    		qishu=30308078
    		zuoqi=10149022
    	elseif menpaiId ==5 then
    		qishu=30308086
    		zuoqi=10149028
    	elseif menpaiId ==6 then
    		qishu=30308082
    		zuoqi=10149027
    	elseif menpaiId ==7 then
    		qishu=30308083
    		zuoqi=10149021
    	elseif menpaiId ==8 then
    		qishu=30308085
    		zuoqi=10149026
    	elseif menpaiId ==9 then
    		qishu=39920006
    		zuoqi=10149035
    	end
    	BeginAddItem(sceneId)
    		AddItem( sceneId, qishu, 1 )
    		AddItem( sceneId, zuoqi, 1 )
    	EndAddItem(sceneId,selfId)
    	AddItemListToHuman(sceneId,selfId)
    end
    
    --**********************************
    --¼ÓÈëÃÅÅɼì²é
    --**********************************
    function x300053_CheckJiaRuMenPai(sceneId,selfId)
    	local index =	GetMissionData( sceneId, selfId, MY_JIARUMENPAI )
    	if index ==0 then
    		return 1
    	else
    		if LuaFnGetAvailableItemCount(sceneId, selfId, 39910006) >= 1 then
    			return 1
    		else
    			x300053_MsgBox( sceneId, selfId, "    #b#Y¶Ô²»Æð£¬ÄúÒѾ­¼ÓÈë¹ýÃÅÅÉ£¬ÈçÐè¸ü»»ÃÅÅÉ£¬ÇëÇ°ÍùÔª±¦É̵깺Âò#GÃÅÅɸü»»Áî#Y£¡" )
    			return 0
    		end
    	end
    	
    end
    
    --**********************************
    --¼ÓÈëÃÅÅÉ
    --**********************************
    function x300053_JiaRuMenPai(sceneId,selfId,key)
    	if key==0 then
    		key=GetNumText()
    	end
    	if key == 200 then
    		BeginEvent( sceneId )
    			AddText(sceneId,"Ç×°®µÄÍæ¼Ò£¡ÄúºÃ£¡")
    			AddText( sceneId, "    #b#YÐÂÊÖ¿ÉÖ±½ÓÑ¡ÔñÃÅÅɼÓÈ룬ÈçÐè¸ü»»ÃÅÅÉ£¬Çëµ½Ôª±¦É̵깺Âò#GÃÅÅÉת»»Áî#Y¡£" )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÌÆÃÅ           #R¡¾T M¡¿",3,201 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÐÇËÞ           #R¡¾T T¡¿",3,202 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffåÐÒ£           #R¡¾T X¡¿",3,203 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÉÙÁÖ           #R¡¾S L¡¿",3,204 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÌìɽ           #R¡¾T S¡¿",3,205 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÌìÁú           #R¡¾T L¡¿",3,206 )		
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÎäµ±           #R¡¾W D¡¿",3,207 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffÃ÷½Ì           #R¡¾M G¡¿",3,208 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffffؤ°ï           #R¡¾G B¡¿",3,209 )
    			AddNumText( sceneId, x300053_g_scriptId, "#c00ffff¶ëü           #R¡¾E M¡¿",3,210 )
    		EndEvent( sceneId )
    		DispatchEventList( sceneId, selfId, -1 )
    	elseif key == 201  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 9)
    			LuaFnSetXinFaLevel(sceneId,selfId,81,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,82,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,83,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,84,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,85,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,86,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,87,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,88,150)
    			AddSkill(  sceneId, selfId, 1758)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,9)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);			
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GÌÆÃÅ#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GÌƼұ¤#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )	
    		end
    
    	elseif key == 202  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 5)
    			LuaFnSetXinFaLevel(sceneId,selfId,31,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,32,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,33,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,34,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,35,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,36,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,60,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,77,150)
    			AddSkill(  sceneId, selfId, 28)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,5)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GÐÇËÞ#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GÐÇËÞ#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 203  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 8)
    			LuaFnSetXinFaLevel(sceneId,selfId,49,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,50,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,51,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,52,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,53,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,54,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,63,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,80,150)
    			AddSkill(  sceneId, selfId, 31)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,8)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GåÐÒ£#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GåÐÒ£#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 204  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 0)
    			LuaFnSetXinFaLevel(sceneId,selfId,1,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,2,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,3,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,4,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,5,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,6,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,55,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,72,150)
    			AddSkill(  sceneId, selfId, 23)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,0)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GÉÙÁÖ#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GÉÙÁÖ#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 205  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 7)
    			LuaFnSetXinFaLevel(sceneId,selfId,43,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,44,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,45,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,46,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,47,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,48,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,62,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,79,150)
    			AddSkill(  sceneId, selfId, 30)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,7)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GÌìɽ#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GÌìɽ#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 206  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 6)
    			LuaFnSetXinFaLevel(sceneId,selfId,37,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,38,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,39,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,40,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,41,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,42,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,61,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,78,150)
    			AddSkill(  sceneId, selfId, 29)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,6)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GÌìÁú#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GÌìÁú#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 207  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 3)
    			LuaFnSetXinFaLevel(sceneId,selfId,19,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,20,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,21,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,22,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,23,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,24,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,58,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,75,150)
    			AddSkill(  sceneId, selfId, 26)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,3)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GÎäµ±#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GÎäµ±#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 208  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 1)
    			LuaFnSetXinFaLevel(sceneId,selfId,7,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,8,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,9,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,10,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,11,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,12,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,56,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,73,150)
    			AddSkill(  sceneId, selfId, 24)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,1)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#GÃ÷½Ì#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #GÃ÷½Ì#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 209  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 2)
    			LuaFnSetXinFaLevel(sceneId,selfId,13,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,14,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,15,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,16,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,17,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,18,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,57,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,74,150)
    			AddSkill(  sceneId, selfId, 25)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,2)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#Gؤ°ï#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #Gؤ°ï#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )
    		end
    	elseif key == 210  then
    		if x300053_CheckJiaRuMenPai(sceneId,selfId) == 1 then
    			LuaFnJoinMenpai(sceneId, selfId, selfId, 4)
    			LuaFnSetXinFaLevel(sceneId,selfId,25,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,26,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,27,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,28,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,29,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,30,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,59,150)
    			LuaFnSetXinFaLevel(sceneId,selfId,76,150)
    			AddSkill(  sceneId, selfId, 27)
    			x300053_JiaRuMenPaiAddItem(sceneId,selfId,4)
    			LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
    			LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    			SetMissionData(sceneId, selfId, MY_JIARUMENPAI, 1);
    			x300053_MsgBox( sceneId, selfId, "#Y¹§Ï²Äú£¬³É¹¦¼ÓÈëÁËÃÅÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    			local	nam	= LuaFnGetName( sceneId, selfId )
    			BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #Bͨ¹ýÁËÖÖÖÖ¿¼ºË£¬°ÝÈëÁË#G¶ëü#BÃÅÏ£¬ÓÐÁËËûµÄ¼ÓÈ룬 #G¶ëü#B±È֮ǰ¸üΪǿ´óÁË£¡", 4 )	end
        end
    end
    --**********************************
    --¶Ò»»Ôùµã
    --**********************************
    function x300053_GoldToYB( sceneId, selfId, toYBNum)
    	local needMoney=toYBNum*1000;
    	local	SelfMoney = GetMoney(sceneId, selfId)
    	if SelfMoney<needMoney then
    		local sMessage = format("#Y    ½ðÇ®²»×㣬Çë¼ì²é¡£")
    		x399999_MsgBox( sceneId, selfId, sMessage )
    		return
    	end
    	local reply = CostMoney(sceneId,selfId,needMoney)
    	if reply == -1 then
    		local sMessage = format("#Y    ½ðÇ®²»×㣬Çë¼ì²é¡£")
    		x399999_MsgBox( sceneId, selfId, sMessage )
    		return
    	else
    		local result =	YuanBao(sceneId,selfId,targetId,1,toYBNum)
    		local sMessage = format("#Y¹§Ï²Äú¶Ò»»³É¹¦¡£#rÏûºÄÁË [#R#{_MONEY%d}#Y]#r»ñµÃÁË [#R%dÔª±¦]",needMoney,toYBNum)
    		x399999_MsgBox( sceneId, selfId, sMessage )
    	end
    end
    --**********************************
    --ÐÄ·¨Ñ§Ï°£¬µã»÷ѧϰ°´Å¥
    --**********************************
    function x300053_MRXinFa(sceneId,selfId,xinfaId,money,exp)
    	if GetExp(sceneId,selfId) < exp  then
    		x300053_Tips( sceneId, selfId, "¾­Ñé²»×㣬Çë¼ì²é£¡" )
    		return
    	elseif GetMoney(sceneId, selfId) < money  then
    		x300053_Tips( sceneId, selfId, "½ðÇ®²»×㣬Çë¼ì²é£¡" )
    		return
    	end
    	local reply = CostMoney(sceneId,selfId,money)
    	if reply ~= -1 then
    		local nXinfaLevel = LuaFnGetXinFaLevel(sceneId, selfId, xinfaId) + 1
    		LuaFnAddExp(sceneId,selfId,0-exp)
    		LuaFnSetXinFaLevel(sceneId,selfId,xinfaId,nXinfaLevel)
    		LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 151, 0)
    		--x300053_Tips( sceneId, selfId, nXinfaLevel.." ¼¶ÐÄ·¨Ñ§Ï°³É¹¦!" )	
    		DispatchXinfaLevelInfo( sceneId, selfId, selfId, 10 );
    	end
    end
    
    --**********************************
    --ÐÄ·¨Ñ§Ï°
    --**********************************
    function x300053_XinFa(sceneId,selfId)
    	DispatchXinfaLevelInfo( sceneId, selfId, selfId, 10 );
    end
    Lần sửa cuối bởi Sói Đẹp Trai, ngày 18-03-15 lúc 04:50 PM.
    Khách viếng thăm hãy cùng PkVoTinhS xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  10. #39
    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,069 Times in 1,403 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    Cái đọc code dài cả trăm dòng thế thì mình nghĩ là tự code cái mới cho nó nhanh. Nhìn dài dòng hoa mắt lắm dù khi code thì có cái code của mình nó cũng đến 1000 dòng là bình thường. Ngại nhất là khi đọc lại...
    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. #40
    Thành Viên
    Ngày tham gia
    Dec 2014
    Bài viết
    231
    Thanks
    50
    Thanked 84 Times in 61 Posts

    Ðề: [Hướng dẫn] Lệnh GM

    cái code đó nhìn giống cai tùy thân bảo thạch, bạn dịch mấy tiếng tàu ra từ từ tìm hiểu, còn muốn lẹ ngồi làm theo ý của mình là nhanh nhất
    Khách viếng thăm hãy cùng shinno xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 
Trang 4 của 5 Đầu tiênĐầu tiên ... 2 3 4 5 CuốiCuối

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à 06:17 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ệ.