[TLBB] Giúp Đỡ Viết Thêm
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 5 của 5
  1. #1
    Thành Viên vinhthamthao's Avatar
    Ngày tham gia
    Aug 2014
    Đang ở
    Hà Nội
    Bài viết
    944
    Thanks
    145
    Thanked 524 Times in 335 Posts

    Giúp Đỡ Viết Thêm

    Như Tiêu đề, . Mọi Người Giúp Mình Viết Nốt 1 đoạn code Nhận Pét trong fife dưới . đây ạ
    và mọi người viết giúp hộ 1 file . đổi vật phẩm . lấy điểm Tiềm năng ạ

    --ËÕÖÝNPC
    --ÿÈÕÔùµãÁìÈ¡Ô±
    --Ò»°ã
    x002095_g_ScriptId = 002095


    --**********************************
    --ʼþ½»»¥Èë¿Ú
    --**********************************
    function x002095_OnDefaultEvent( sceneId, selfId,targetId )
    local nam = LuaFnGetName( sceneId, selfId )
    local lev = GetLevel( sceneId, selfId )
    BeginEvent(sceneId)

    AddText(sceneId," #c00ff00Chào m×ng bÕn ðªn v¾i Thiên Long Bát Bµ. !#W")
    AddNumText( sceneId, x002095_g_ScriptId, "#gFF8C00Nh§n Tâm Pháp 150",8,14 )
    if lev >= 120 then
    --AddNumText( sceneId, x002095_g_ScriptId, "ÐÞ¸´ÃÅÅɼ¼Äܼ°150¼¶ÐÄ·¨",5,88 88 )
    end
    AddNumText( sceneId, x002095_g_ScriptId, "#gFF8C00Nâng level t× 149 lên 150",8,3333 )
    AddNumText( sceneId, x002095_g_ScriptId, "#b#K#c993366Nh§n Vàng",5,10 )
    --AddNumText( sceneId, x002093_g_ScriptId, "#gFF7F00Nh§n buff",8,100 )
    AddNumText( sceneId, x002093_g_ScriptId, "#b#cFF0000Nh§n hi®u Ñng trùng lâu",5,101 )
    AddNumText( sceneId, x002093_g_ScriptId, "#cFF0000Lînh th¥y trò tình thâm",5,102 )
    AddNumText( sceneId, x002093_g_ScriptId, "#b#cFF0000# tên ð« bäng vàng #",5,103 )
    AddNumText( sceneId, x002095_g_ScriptId, "#gFF7F00Nh§n 500k KNB",8,6666 )
    AddNumText( sceneId, x002095_g_scriptId, "#cffcc00Phøc h°i Khí Huyªt", 5, 5555 )
    AddNumText( sceneId, x002095_g_scriptId, "#31#gffff00Nh§n 12 kî nång", 5, 4242)
    AddNumText( sceneId, x002095_g_ScriptId, "Chuy¬n Sinh",5,5555 )
    AddNumText( sceneId, x002095_g_ScriptId, "#gFAFAD2SØa L²i Kinh Nghi®m",6,11 )
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)

    end


    function x002095_OnEventRequest( sceneId, selfId, targetId, eventId )
    local key = GetNumText()
    if key == 100 then


    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30160, 0)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 5929, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 5985, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30134, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30170, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30180, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30186, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30005, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 8051, 0)
    --LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 8052, 0)
    BeginEvent(sceneId)
    AddText(sceneId,"Nh§n BUFF thành công !")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end
    if key == 101 then
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30186, 0)
    end
    if key == 102 then
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30160, 0)
    end
    if key == 103 then
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 5960, 0)
    end
    if key == 10 then
    AddMoney( sceneId, selfId, 10000000 )

    BeginEvent(sceneId)
    AddText(sceneId,"#gffff00Chúc m×ng "..nam.." ðã nh§n 10000 #-02 thành công !")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end
    if key == 6666 then
    YuanBao(sceneId,selfId,targetId,1,1000000)

    BeginEvent(sceneId)
    AddText(sceneId,"BÕn ðã nh§n ðßþc 1000000 KNB")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end
    if key == 11 then
    x002095_Level12(sceneId, selfId, targetId)
    end
    if key == 18 then

    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 30150, 0)
    BeginEvent(sceneId)
    AddText(sceneId,"Nh§n BUFF thành công.")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end
    if key == 4242 then
    BeginAddItem(sceneId)
    AddItem( sceneId,30308044,1)
    AddItem( sceneId,30308042,1)
    AddItem( sceneId,30308033,1)
    AddItem( sceneId,30308032,1)
    AddItem( sceneId,30308031,1)
    AddItem( sceneId,30308030,1)
    AddItem( sceneId,30308029,1)
    AddItem( sceneId,30308028,1)
    AddItem( sceneId,30308034,1)
    AddItem( sceneId,30308060,1)
    AddItem( sceneId,30308026,1)
    AddItem( sceneId,30308027,1)
    EndAddItem(sceneId,selfId)
    AddItemListToHuman(sceneId,selfId)
    BroadMsgByChatPipe(sceneId, selfId, "@*;SrvMsg;DBD:Nh§n kÛ nång thành công.", 0)
    end
    if key == 3333 then
    BeginEvent( sceneId )
    AddText( sceneId, "#gF4F4F4BÕn mu¯n nâng c¤p t× 149 lên 150 ?" )
    AddNumText(sceneId, x181003_g_scriptId, "#gF4F4F4Có, tôi mu¯n.", 7, 4444 )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 4444 then
    x002095_Shengji( sceneId, selfId, targetId )
    end
    if key == 5555 then
    BeginEvent( sceneId )
    AddText( sceneId, "#gF4F4F4BÕn có ch¡c là mu¯n chuy¬n sinh ?#r Yêu c¥u c¤p ðµ: #G149 #r#WSau khi chuy¬n sinh giæ nguyên t¤t cä. #GSau khi chuy¬n sinh c¤p ðµ tr· v« 30." )
    AddNumText(sceneId, x181003_g_scriptId, "#gF4F4F4Có, tôi mu¯n chuy¬n sinh", 7, 5566 )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 5566 then
    x002095_Restore_hpmp( sceneId, selfId, targetId )
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
    BeginEvent(sceneId)
    AddText(sceneId,"ÖÎÁƳɹ¦£¬×£ÄúÓÎ� �·Óä¿ì¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end

    if key == 12 then

    BeginEvent(sceneId)
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬ÇëÑ¡ÔñÄúÒªÁì� �¡µÄ±¦±¦¡£#GÿÈËÏÞÁìÒ»Ö»¡£B OSSΪ4000+×ÊÖʵijèÎï" )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡BOSS³è-½ð¸Õ95¼¶Ð¯´ø",5,50 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡BOSS³è-±ù»ê95¼¶Ð¯´ø",5,51 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡BOSS³è-С°×95¼¶Ð¯´ø",5,52 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡BOSS³è-¸òó¡95¼¶Ð¯´ø",5,53 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡³¬¼¶³èÎï-95¼¶±äÒìÇîÆæ",5,54 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡±¦±¦-¼âѹҰÖíÍõ",5,55 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡±¦±¦-±äÒìÁú¹ê",5,56 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡±¦±¦-Î޵зÉÌìè",5,57 )
    AddNumText( sceneId, x002095_g_ScriptId, "ÁìÈ¡±¦±¦-¿ñ±©Áú",5,58 )
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end
    if key == 50 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 9110, 1, 0);
    TryRecieveItem( sceneId, selfId, 30607001, 1 )
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦ÁìÈ¡BOSS³èÎï¡£", 4 )
    str= "#YÄã»ñµÃÁË#WBOSS³èÎï,#GBOSS³èÎï£ ¬¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ¡£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 51 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 9120, 1, 0);
    TryRecieveItem( sceneId, selfId, 30607001, 1 )
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦ÁìÈ¡BOSS³èÎï¡£", 4 )
    str= "#YÄã»ñµÃÁË#WBOSS³èÎï,#GBOSS³èÎï£ ¬¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ¡£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 52 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 9130, 1, 0);
    TryRecieveItem( sceneId, selfId, 30607001, 1 )
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦ÁìÈ¡BOSS³èÎï¡£", 4 )
    str= "#YÄã»ñµÃÁË#WBOSS³èÎï,#GBOSS³èÎï£ ¬¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ¡£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 53 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 9100, 1, 0);
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦ÁìÈ¡BOSS³èÎï¡£", 4 )
    str= "#YÄã»ñµÃÁË#WBOSS³èÎï,#GBOSS³èÎï£ ¬¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ¡£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 54 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 22068, 1, 0);
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò #B"..nam.."#G³É¹¦ÁìÈ¡³¬¼¶³èÎ9 5¼¶±äÒìÇîÆæ¡£", 4 )
    str= "#YÄã»ñµÃÁË#W³¬¼¶³èÎ95¼¶±� �ÒìÇîÆæ¡£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 55 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 33810, 1, 0);
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#G¹§Ï² "..nam.."³É¹¦ÁìÈ¡»áԱרÓó衣" , 4 )
    str= "#YÄã»ñµÃÁË#WG MרÓóèÎï,#GG M³èÎ¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ� �£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 56 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 3311, 1, 0);
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦»ñµÃ±äÒìÁú¹ê¡£" , 4 )
    str= "#YÄã»ñµÃÁË#W±äÒìÁú¹ê,#G±äÒìÁ ú¹ê£¬¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ¡£ "
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 57 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 3832, 1, 0);
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦ÁìÈ¡Î޵зÉÌìè¡£" , 4 )
    str= "#YÄã»ñµÃÁË#WÎ޵зÉÌì,#GÎ޵з ÉÌì裬¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ ¡£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 58 then
    local index = GetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET)
    if index == 1 then
    BeginEvent(sceneId)
    AddText(sceneId, "ÄúÒѾ­ÁìÈ¡¹ý¸ÃÏî½±Àø£¬²»� �ÜÔÙÁìÁË¡£#G»áÔ±³èÎ¿ÉÔÚ� �­ºþÓÎÒ½´¦»ØѪ¡£")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return 0
    end

    local createPetRet, retGUID_H, retGUID_L = LuaFnCreatePetToHuman(sceneId, selfId, 33829, 1, 0);
    if createPetRet and createPetRet == 1 then
    SetMissionFlag( sceneId, selfId, MF_LINGQUYUANBAOPET, 1 )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦ÁìÈ¡¿ñ±©Áú¡£", 4 )
    str= "#YÄã»ñµÃÁË#W¿ñ±©Áú,#G¿ñ±©Áú£ ¬¿ÉÔÚ½­ºþÓÎÒ½´¦»ØѪ¡£"
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end
    end
    if key == 13 then
    local CurTime = GetHourTime();
    local iTime = GetMissionData( sceneId, selfId, MF_LINGQUYUANBAOEXP );
    if iTime+1 >= CurTime then
    BeginEvent( sceneId )
    AddText( sceneId, "×𾴵ĻáÔ±£¬Äú1СʱÄÚÖ»ÄÜ ÁìÈ¡Ò»´Î¾­Ñé¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    else
    for i = 0,300 do
    AddExp(sceneId,selfId,700000)
    end

    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOEXP, CurTime);
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#gFF7F24¹§Ï²Íæ¼Ò "..nam.."³É¹¦ÁìÈ¡200Íò¾­Ñé½±Àø¡ £", 4 )
    BeginEvent( sceneId )
    AddText( sceneId, "ÁìÈ¡³É¹¦£¬Äú³É¹¦µÄÁìÈ¡ÁË2 00Íò¾­Ñé¡£×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    end
    if key == 14 then
    local MemPai=GetMenPai(sceneId, selfId)
    if MemPai ~=9 then
    BeginEvent(sceneId)
    AddText(sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này.")
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    return
    else
    BeginEvent( sceneId )
    AddText( sceneId, "Hãy ch÷n môn phái bÕn mu¯n gia nh§p. #r#YLßu ý: Nªu các hÕ ðã chuy¬n sinh r°i mà sØ døng chÑc nång này s¯ ði¬m ti«m nång s¨ m¤t." )
    AddNumText( sceneId, x002095_g_ScriptId, "Tinh Túc",3,20 )
    AddNumText( sceneId, x002095_g_ScriptId, "Tiêu Dao",3,21 )
    AddNumText( sceneId, x002095_g_ScriptId, "Thiªu Lâm",3,22 )
    AddNumText( sceneId, x002095_g_ScriptId, "Thiên S½n",3,23 )
    AddNumText( sceneId, x002095_g_ScriptId, "Thiên Long",3,24 )
    AddNumText( sceneId, x002095_g_ScriptId, "Nga My",3,25 )
    AddNumText( sceneId, x002095_g_ScriptId, "Võ Ðang",3,26 )
    AddNumText( sceneId, x002095_g_ScriptId, "Minh Giáo",3,27 )
    AddNumText( sceneId, x002095_g_ScriptId, "Cái Bang",3,28 )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    end
    if key == 8888 then
    BeginEvent( sceneId )
    AddText( sceneId, "Ç×°®µÄÍæ¼Ò£¬ÓÉÓÚºÏÇøÔì³É� �IJ¿·ÖÍæ¼ÒÃÅÅɼ¼Äܼ°ÐÄ·¨¿� �²»µ½µÄÏÖÏó£¬ÌØÍƳö´ËÐÞ¸´� �¦ÄÜ£¬½«ÐÞ¸´¸÷ÃÅÅÉ8±¾ÐÄ·¨Ö Á150¼¶£¬Í¬Ê±¸ø´ó¼ÒÒýÆðµÄ²»� �㣬ÎÒÃÇÉî¸Ð±§Ç¸£¡" )
    AddNumText( sceneId, x002095_g_ScriptId, "Tinh Túc",3,8820 )
    AddNumText( sceneId, x002095_g_ScriptId, "Tiêu Dao",3,8821 )
    AddNumText( sceneId, x002095_g_ScriptId, "Thiªu Lâm",3,8822 )
    AddNumText( sceneId, x002095_g_ScriptId, "Thiên S½n",3,8823 )
    AddNumText( sceneId, x002095_g_ScriptId, "Thiên Long",3,8824 )
    AddNumText( sceneId, x002095_g_ScriptId, "Nga My",3,8825 )
    AddNumText( sceneId, x002095_g_ScriptId, "Võ Ðang",3,8826 )
    AddNumText( sceneId, x002095_g_ScriptId, "Minh Giáo",3,8827 )
    AddNumText( sceneId, x002095_g_ScriptId, "Cái Bang",3,8828 )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 20 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Tinh Túc !", 4 )

    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 21 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Tiêu Dao !", 4 )


    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 22 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Thiªu Lâm !", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 23 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Thiên S½n !", 4 )

    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 24 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Thiên Long !", 4 )

    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 25 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Nga My !", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 26 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Võ Ðang !", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 27 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Minh Giáo !", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 28 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "Chào bÕn, hôm nay bÕn ðã sØ døng chÑc nång này. M²i ngày chï ðßþc dùng chÑc nång này mµt l¥n. #rHãy quay lÕi vào hôm sau." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#GChúc m×ng "..nam.." ðã nh§n tâm pháp phái Cái Bang !", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GBÕn ðã nh§n BUFF tâm pháp thành công. Chúc bÕn ch½i vui v¨ !" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8820 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÐÞ¸´ÁËÐÇËÞ¼¼Äܼ°150 ¼¶ÐÄ·¨£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8821 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#GåÐÒ£ÅÉ¡£", 4 )


    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �ÁËåÐÒ£ÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8822 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 0)
    LuaFnSetXinFaLevel(sceneId,selfId,1,150)
    LuaFnSetXinFaLevel(sceneId,selfId,2,150)
    LuaFnSetXinFaLevel(sceneId,selfId,3,150)
    LuaFnSetXinFaLevel(sceneId,selfId,4,140)
    LuaFnSetXinFaLevel(sceneId,selfId,5,150)
    LuaFnSetXinFaLevel(sceneId,selfId,6,150)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#GÉÙÁÖË¡£", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �ÁËÉÙÁÖÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8823 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#GÌìɽÅÉ¡£", 4 )

    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �ÁËÌìɽÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8824 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#GÌìÁúË¡£", 4 )

    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �ÁËÌìÁúÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8825 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#G¶ëüÅÉ¡£", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �Á˶ëüÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8826 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#GÎ䵱ɽ¡£", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �ÁËÎäµ±ÅÉ£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8827 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#GÃ÷½Ì¡£", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �ÁËÃ÷½Ì£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 8828 then
    local day = GetDayTime();
    local lastDay = GetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1);
    if lastDay == day then
    BeginEvent( sceneId )
    AddText( sceneId, "×ð¾´µÄÍæ¼Ò£¬Äú½ñÌìÁìÈ¡¹ý� �Ä·¨ÁË£¬Ò»ÌìÖ»ÄÜÁìÈ¡Ò»´Î¡� �" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return
    end
    LuaFnJoinMenpai(sceneId, selfId, targetId, 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)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#B¹§Ï²Íæ¼Ò #Y"..nam.." #B³É¹¦ÁìÈ¡°Ë±¾150¼¶ÐÄ·¨²¢¼Ó� �ëÁË#Gؤ°ï¡£", 4 )
    SetMissionData(sceneId, selfId, MF_LINGQUYUANBAOMP1, day);
    BeginEvent( sceneId )
    AddText( sceneId, "#GÄú³É¹¦ÁìÈ¡ÁËÐÄ·¨²¢ÇÒ¼ÓÈ� �ÁËؤ°ï£¬×£ÄúÓÎÏ·Óä¿ì¡£" )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end

    if key == 15 then
    local NameM = GetName( sceneId, ObjIDM )
    AwardShiTuTitle( sceneId, selfId, NameM .. "Ю tØ" )
    DispatchAllTitle( sceneId, selfId )
    LuaFnAwardSpouseTitle( sceneId, selfId, "VIP" )
    DispatchAllTitle( sceneId, selfId )
    BeginEvent( sceneId )
    AddText( sceneId, "#GXin chúc m×ng bÕn ðã nh§n thành công danh hi®u." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    if key == 16 then
    TryRecieveItem( sceneId, selfId, 30900016, 1 )
    Msg2Player( sceneId, selfId, "BÕn ðã nh§n thành công 500 ði¬m các ng÷c quí.", MSG2PLAYER_PARA )
    end

    if key == 181 then

    local nam= LuaFnGetName( sceneId, selfId )

    local lastDayTime1 = GetMissionData( sceneId, selfId, MF_LINGQUYUANBAOMP2)

    local CurDayTime1 = GetDayTime()

    if CurDayTime1 > lastDayTime1 then

    BeginEvent(sceneId)

    --for i = 0,30 do

    -- TryRecieveItem( sceneId, selfId, 30505107, 1 )

    -- end
    TryRecieveItem( sceneId, selfId, 10113054, 1 )
    TryRecieveItem( sceneId, selfId, 10113054, 1 )
    TryRecieveItem( sceneId, selfId, 10113054, 1 )
    SetMissionData( sceneId, selfId, MF_LINGQUYUANBAOMP2, CurDayTime1 )

    str = "#cffffccXin chúc m×ng <#c00ff00"..nam.."#cffffcc>ðã nh§n thành công danh hi®u."

    BroadMsgByChatPipe(sceneId, selfId, str, 4)

    AddText(sceneId,"Hãy quay lÕi vào ngày mai. ")

    EndEvent(sceneId)

    DispatchEventList(sceneId,selfId,targetId)

    else

    BeginEvent(sceneId)
    AddText(sceneId," Hãy quay lÕi vào ngày mai.");
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)


    end
    if key == 19 then
    TryRecieveItem( sceneId, selfId, 10113054, 1 )
    BeginEvent(sceneId)

    AddText(sceneId,"Thành công.");
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end


    end

    end

    --**********************************
    --ת»»¾­Ñé
    --**********************************
    function x002095_Level12 (sceneId, selfId, targetId)
    if GetExp(sceneId,selfId) < 0 then
    BeginEvent( sceneId )
    LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfI d,selfId,18,1000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    LuaFnAddExp(sceneId,selfId,700000)
    AddText(sceneId,"¼ÌÐøµãÎÒ°É£¬µã10´� �Ó¦¸Ã¾Í½â¾öÉý¼¶ÎÊÌ⣡£¡£¡. ..")
    EndEvent( sceneId )
    else

    BeginEvent( sceneId )
    AddText(sceneId,"ʧ°Ü,Ö»Óдò¹Ö»ñµÃ ²»Á˾­ÑéµÄÍæ¼Ò²ÅÄÜʹÓô˹ ¦ÄÜ!!...")
    EndEvent( sceneId )

    end


    DispatchEventList( sceneId, selfId, targetId )

    end

    function x002095_ZhuanSheng( sceneId, selfId, targetId )
    local zhuanshengTimes = GetMissionData(sceneId, selfId, MD_ZHUANSHENG)
    local ZS = zhuanshengTimes+1
    if zhuanshengTimes > 100 then
    x002095_NotifyTip( sceneId, selfId, "Gi¾i hÕn chª 100 l¥n chuy¬n sinh." )
    x002095_MsgBox( sceneId, selfId, targetId, "Gi¾i hÕn 100 l¥n chuy¬n sinh." )
    return
    end
    local mppoint = GetHumanMenpaiPoint(sceneId, humanObjId)
    local lev = GetLevel( sceneId, selfId )
    if lev < 149 then
    BeginEvent( sceneId )
    AddText( sceneId, "ÐÆng c¤p nhö h½n #G149#W. Hãy quay lÕi khi ðÕt c¤p ðµ #G149#W. " )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return -1
    end

    SetLevel( sceneId, selfId, 35)
    --YuanBao(sceneId,selfId,targetId,1,10000)
    --ZengDian(sceneId,selfId,targetId,1,100000)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 150, 0)
    SetMissionData(sceneId, selfId, MD_ZHUANSHENG, zhuanshengTimes+1 )

    BeginEvent(sceneId)
    AddText(sceneId,"Chúc m×ng, chuy¬n sinh l¥n thÑ "..nCS.." thành công, nh§n ðßþc 10000#-02!")
    EndEvent(sceneId)
    DispatchMissionTips(sceneId,selfId)
    BeginEvent( sceneId )
    AddText( sceneId, "#WBÕn ðã chuy¬n sinh l¥n thÑ "..nCS.." !." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#48#gFFFF00Chúc m×ng "..nam.." ðã chuy¬n sinh thành công ! #48", 4 )
    end

    function x002095_Shengji (sceneId, selfId, targetId)
    local lev = GetLevel( sceneId, selfId )
    if lev < 149 then
    BeginEvent( sceneId )
    AddText( sceneId, "C¤p ðµ chßa ðü #G149#W. Hãy quay lÕi khi ðÕt c¤p ðµ #G149#W. " )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    return -1
    end
    SetLevel( sceneId, selfId, 150)
    LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 147, 0)
    BeginEvent(sceneId)
    AddText(sceneId,"Chúc m×ng, thành công.!")
    EndEvent(sceneId)
    DispatchMissionTips(sceneId,selfId)
    BeginEvent( sceneId )
    AddText( sceneId, "Thång c¤p 150 thành công." )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    local nam = LuaFnGetName( sceneId, selfId )
    BroadMsgByChatPipe( sceneId, selfId, "#48#eaf0000Chúc m×ng "..nam.." ðã thång lên 150 c¤p !!#48", 4 )
    end


    --**********************************
    -- ¶Ô»°´°¿ÚÐÅÏ¢Ìáʾ
    --**********************************
    function x002095_NotifyFailBox( sceneId, selfId, targetId, msg )
    BeginEvent( sceneId )
    AddText( sceneId, msg )
    EndEvent( sceneId )
    DispatchEventList( sceneId, selfId, targetId )
    end
    --**********************************
    --ÏûÏ¢Ìáʾ
    --**********************************
    function x002095_MsgBox( sceneId, selfId, str )
    BeginEvent( sceneId )
    AddText( sceneId, str )
    EndEvent( sceneId )
    DispatchMissionTips( sceneId, selfId )
    end

    --**********************************
    --¶Ô»°Ìáʾ
    --**********************************
    function x002095_TalkMsg( sceneId, selfId, targetId, str )
    BeginEvent(sceneId)
    AddText(sceneId, str)
    EndEvent(sceneId)
    DispatchEventList(sceneId,selfId,targetId)
    end

    --**********************************
    --»Ö¸´ÑªºÍÆø
    --**********************************
    function x002095_Restore_hpmp( sceneId, selfId, targetId )
    RestoreHp( sceneId, selfId )
    RestoreMp( sceneId, selfId )
    RestoreRage( sceneId, selfId )
    end



    Lần sửa cuối bởi vinhthamthao, ngày 19-04-15 lúc 09:02 AM.
    Khách viếng thăm hãy cùng vinhthamthao 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 vinhthamthao vì bài viết này !

    TLBBVN (16-11-15)

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

    Ðề: Giúp Đỡ Viết Thêm

    [Only registered and activated users can see links. ]

    Này của Sói k nhớ ở đâu, bạn dựa vào nhé
    Khách viếng thăm hãy cùng shinno xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  4. #3
    Dev Jx2 ookurooo's Avatar
    Ngày tham gia
    May 2011
    Đang ở
    Biện Kinh
    Bài viết
    728
    Thanks
    221
    Thanked 161 Times in 129 Posts

    Ðề: Giúp Đỡ Viết Thêm

    code add exp làm gì mà cả 1 hàng dài vậy thím, ko gom chung lại đc à???
    hóng được share jx2

  5. #4
    Thành Viên s2bac95's Avatar
    Ngày tham gia
    Nov 2011
    Bài viết
    220
    Thanks
    55
    Thanked 73 Times in 51 Posts

    Ðề: Giúp Đỡ Viết Thêm

    sao mà code nó kinh dị vậy
    Khách viếng thăm hãy cùng s2bac95 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  6. #5
    Thành Viên vinhthamthao's Avatar
    Ngày tham gia
    Aug 2014
    Đang ở
    Hà Nội
    Bài viết
    944
    Thanks
    145
    Thanked 524 Times in 335 Posts

    Ðề: Giúp Đỡ Viết Thêm

    Trích dẫn Gửi bởi s2bac95 [Only registered and activated users can see links. ]
    sao mà code nó kinh dị vậy
    đã làm xong rồi. cảm ơn MN . close top tip
    Khách viếng thăm hãy cùng vinhthamthao xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

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

    TLBBVN (16-11-15)

 

 

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:16 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ệ.