toantuanh
28-07-15, 10:29 AM
chép vào \mylua\quangongneng.lua
-- Gia nhap mon phai
x900000_g_scriptId = 900000
x900000_g_XinfaLV = 1
x900000_Pet ={6062,8132,6262, 6642, 7502,7572,7782,7852,8272, 7992}
x900000_g_MenpaiBuff = {
15123,15163,
15423,15473,
15713,15753,
15953,15993,
16203,16223,
16493,16523,
16763,16793,
16773,16813,
17033,17063,
17283,17313,
21315,21363,
12028,12032,
13223,13175
}
--**********************************
--Main
--**********************************
function x900000_OnDefaultEvent( sceneId, selfId, targetId )
BeginEvent( sceneId )
AddText(sceneId,"#c66ffff[ Môn phái ð£c sÑ ] ")
AddText(sceneId,"#cFF0000 Hoan nghênh các hÕ ðªn v¾i #YThiên Long Bát Bµ#cFF0000 phiên bän cüa #GTi Nguyn")
AddText(sceneId,"Ta có th¬ giúp ngß½i #Hgia nh§p môn phái #Who£c #Ythay ð±i môn phái")
AddText(sceneId,"Ngoài ra ta còn có 1 ít #Gph¥n thß·ng #Wdành cho ngß½i")
AddText(sceneId,"#G[ Chúc các hÕ ch½i game vui vë! ]")
AddNumText( sceneId, x900000_g_scriptId, "#Y Gia nh§p môn phái", 6, 600)
AddNumText( sceneId, x900000_g_scriptId, "#Y Th¡ng c¤p tâm pháp", 6, 700)
if GetLevel(sceneId,selfId) >= 80 then
AddNumText( sceneId, x900000_g_scriptId, "#cFF0000 Thång c¤p nh§n thß·ng", 7, 999)
end
if GetLevel(sceneId,selfId) >= 10 then
AddNumText( sceneId, x900000_g_scriptId, "#G Thay ð±i môn phái",6,120 )
end
AddNumText( sceneId, x900000_g_scriptId, "#cffcc00 H°i phøc khí huyªt", 6, 860 )
AddNumText( sceneId, x900000_g_scriptId, " Kinh nghi®m thanh linh", 6, 100)
AddNumText( sceneId, x900000_g_scriptId, " #43 Bäo ThÕch Toái Phiªn бi CCHTP", 6, 914)
AddNumText( sceneId, x900000_g_scriptId, " #224 Cäi Lão Hoàn аng", 6, 00001)
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
--**********************************
-- Danh sách sñ ki®n b§c 1
--**********************************
function x900000_OnEventRequest( sceneId, selfId, targetId, eventId )
if GetNumText() == 700 then
if GetLevel(sceneId,selfId) < 10 then
x900000_NotifyFailTips( sceneId, selfId, "Ngß½i chßa gia nh§p môn phái mà !" )
return
end
if LuaFnGetMenPai(sceneId,selfId) == 9 then
x900000_NotifyFailTips( sceneId, selfId, "Ngß½i chßa gia nh§p môn phái mà !" )
return
end
DispatchXinfaLevelInfo( sceneId, selfId, targetId, LuaFnGetMenPai(sceneId,selfId) );
end
if GetNumText() == 914 then
BeginEvent( sceneId )
AddText(sceneId,"#c66ffff[ Môn phái ð£c sÑ ] ")
AddText(sceneId,"#cFF0000 Hoan nghênh các hÕ ðªn v¾i #YThiên Long Bát Bµ#cFF0000 phiên bän #GTình Trong Giang H°")
AddText(sceneId,"Thu th§p ðü 72 mänh #YBäo ThÕch Toái Phiªn #Wb¤t kÏ có th¬ ð±i l¤y 1 cái #GCao C¤p Bäo ThÕch Hþp Thành Phù")
AddNumText( sceneId, x900000_g_scriptId, " #43 Bäo ThÕch Toái Phiªn бi CCHTP", 6, 915)
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 00001 then
BeginEvent(sceneId)
AddText(sceneId,"Ta là #GTi Nguyn#W.")
AddText(sceneId,"#GTuyªt Bång Phong#W lÕnh l¨o vô cùng, ai ðã ðªn ðßþc n½i này hÆn dûng khí không h« nhö. Các hÕ ðã ðªn ðây thì ta sÇn sàng tiªp ðón.")
AddText(sceneId,"Chï c¥n các hÕ ðÕt ðªn c¤p ðµ #G120#W thì có th¬ ðªn ch² tÕi hÕ tiªn hành #GCäi lão hoàn ð°ng#W. Sau khi #Gcäi lão hoàn ð°ng#W, t¤t cä thuµc tính #Gkhông thay ð±i#W, các hÕ s¨ tr· v« #Gc¤p 40#W!")
AddText(sceneId,"#GCäi lão hoàn ð°ng#W càng nhi«u l¥n thì s¯ ði¬m thuµc tính càng l¾n!")
AddNumText(sceneId,x900000_g_ScriptId,"#GCäi lão hoàn ð°ng",2,11111)
AddNumText(sceneId,x900000_g_ScriptId,"Xem s¯ l¥n #GCäi lão hoàn ð°ng",2,22222)
AddNumText(sceneId,x900000_g_ScriptId,"Nh§n danh hi®u",2,33333)
AddNumText(sceneId,x900000_g_ScriptId,"V« #Gcäi lão hoàn ð°ng#W",11,44444)
EndEvent(senceId)
DispatchEventList(sceneId,selfId,targetId)
end
if GetNumText() == 11111 then
BeginEvent(sceneId)
AddText(sceneId,"Sau khi #Gcäi lão hoàn ð°ng#W, các hÕ s¨ tr· v« c¤p ðµ 40!")
AddText(sceneId,"Các hÕ xác nh§n #Gcäi lão hoàn ð°ng#W?")
AddNumText(sceneId,x900000_g_ScriptId,"Cäi lão hoàn ð°ng",2,10001)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
if GetNumText() == 10001 then
if GetLevel(sceneId,selfId) < 120 then
BeginEvent(sceneId)
AddText(sceneId,"Chï có th¬ #Gcäi lão hoàn ð°ng#W sau khi ðÕt c¤p #G120#W tr· lên!")
AddText(sceneId,"Hãy ði tu luy®n thêm, khi nào ðÕt #Gc¤p 120#W lÕi ðªn ch² ta tiªn hành #Gcäi lão hoàn ð°ng#W nhé!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
elseif num>200 then
BeginEvent(sceneId)
AddText(sceneId,"Chï có th¬ #Gcäi lão hoàn ð°ng#W t¯i ða #G200#W l¥n!")
AddText(sceneId,"Các hÕ ðã #Gcäi lão hoàn ð°ng#W ðÕt ðªn ngßÞng này r°i thì ðã #GThiên hÕ vô ð¸ch#W, không c¥n #Gcäi lão hoàn ð°ng#W thêm næa!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
SetLevel(sceneId,selfId,40)
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
SetMissionData(sceneId,selfId,MD_ZHUANSHENG,num+1)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ ðã #Gcäi lão hoàn ð°ng#W thành công. C¤p ðµ hi®n tÕi cüa các hÕ là #GC¤p 40#W!")
AddText(sceneId,"S¯ l¥n các hÕ #Gcäi lão hoàn ð°ng#W tính ðªn hi®n tÕi là #G"..num.." l¥n#W!")
AddText(sceneId,"Hãy ði tu luy®n thêm, khi nào ðÕt #Gc¤p 120#W lÕi ðªn ch² ta tiªn hành #Gcäi lão hoàn ð°ng#W nhé!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 22222 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
BeginEvent(sceneId)
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ tính t¾i hi®n tÕi là: #G"..num.." l¥n#W!")
AddText(sceneId,"T¯i ða còn lÕi "..(200-num).." l¥n #Gcäi lão hoàn ð°ng#W næa!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
--*****************--
if GetNumText() == 33333 then
BeginEvent(sceneId)
AddText(sceneId,"Các hÕ mu¯n ð±i danh hi®u nào?")
AddNumText(sceneId,x900000_g_ScriptId,"#W#bSiêu Phàm Hi Ký",11,55555)
AddNumText(sceneId,x900000_g_ScriptId,"#G#bXu¤t Tr¥n Kinh H°ng",11,66666)
AddNumText(sceneId,x900000_g_ScriptId,"#G#bLång Tuy®t Vø Änh",11,77777)
AddNumText(sceneId,x900000_g_ScriptId,"#c00ff00#bNgñ Không Phùng Hß",11,88888)
AddNumText(sceneId,x900000_g_ScriptId,"#c00ff00#bH²n Thiên Tr¤n Nguyên",11,99999)
AddNumText(sceneId,x900000_g_ScriptId,"#c00ff00#bS° Phßþng Linh Vû",11,10222)
AddNumText(sceneId,x900000_g_ScriptId,"#Y#bTi«m Long Ngâm Uyên",11,11222)
AddNumText(sceneId,x900000_g_ScriptId,"#Y#bChí Tôn Truy«n Thuyªt",11,12222)
AddNumText(sceneId,x900000_g_ScriptId,"#cFF0000#bVô Song Vß½ng Giä",11,13222)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
--*****************--
if GetNumText() == 44444 then
BeginEvent(sceneId)
AddText(sceneId,"Sau khi #Gcäi lão hoàn ð°ng#W, các thuµc tính #Gtâm pháp môn phái#W không thay ð±i!")
AddText(sceneId,"#GCäi lão hoàn ð°ng#W càng nhi«u l¥n, sÑc mÕnh cüa các hÕ càng tång!")
AddText(sceneId,"Sau khi ðÕt mµt s¯ m¯c v« s¯ l¥n #Gcäi lão hoàn ð°ng#W c¯ ð¸nh, có th¬ lînh nh§n danh hi®u cao quý vô cùng!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
if GetNumText() == 55555 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 1 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GSiêu Phàm Hi Ký#W c¥n #G1 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G1 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#W#bSiêu Phàm Hi Ký")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #W#bSiêu Phàm Hi Ký#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 66666 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 10 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GXu¤t Tr¥n Kinh H°ng#W c¥n #G10 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G10 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#G#bXu¤t Tr¥n Kinh H°ng")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #G#bXu¤t Tr¥n Kinh H°ng#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 77777 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 20 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GLång Tuy®t Vø Änh#W c¥n #G20 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G20 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#G#bLång Tuy®t Vø Änh")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #G#bLång Tuy®t Vø Änh#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 88888 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 40 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GNgñ Không Phùng Hß#W c¥n #G40 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G40 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#c00ff00#bNgñ Không Phùng Hß")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #c00ff00#bNgñ Không Phùng Hß#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 99999 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 60 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GH²n Thiên Tr¤n Nguyên#W c¥n #G60 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G60 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#c00ff00#bH²n Thiên Tr¤n Nguyên")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #c00ff00#bH²n Thiên Tr¤n Nguyên#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 10222 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 90 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GS° Phßþng Linh Vû#W c¥n #G90 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G90 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#c00ff00#bS° Phßþng Linh Vû")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #c00ff00#bS° Phßþng Linh Vû#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 11222 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 120 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GTi«m Long Ngâm Uyên#W c¥n #G120 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G120 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#Y#bTi«m Long Ngâm Uyên")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #Y#bTi«m Long Ngâm Uyên#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 12222 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 150 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GChí Tôn Truy«n Thuyªt#W c¥n #G150 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G150 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#Y#bChí Tôn Truy«n Thuyªt")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #Y#bChí Tôn Truy«n Thuyªt#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
--*****************--
if GetNumText() == 13222 then
num = GetMissionData(sceneId,selfId,MD_ZHUANSHENG)
if num < 200 then
BeginEvent(sceneId)
AddText(sceneId,"бi danh hi®u #GVô Song Vß½ng Giä#W c¥n #G200 l¥n#W thành công #Gcäi lão hoàn ð°ng#W!")
AddText(sceneId,"S¯ l¥n #Gcäi lão hoàn ð°ng#W cüa các hÕ hi®n tÕi là "..num..", vçn chßa ðü #G200 l¥n#W, không th¬ nh§n danh hi®u!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
else
LuaFnAwardSpouseTitle(sceneId,selfId,"#cFF0000#bVô Song Vß½ng Giä")
DispatchAllTitle(sceneId,selfId)
BeginEvent(sceneId)
AddText(sceneId,"Chúc m×ng các hÕ nh§n thành công danh hi®u #cFF0000#bVô Song Vß½ng Giä#W!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 915 then
end
if GetNumText() == 860 then
x900000_Restore_hpmp( sceneId, selfId, targetId )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
BeginEvent(sceneId)
AddText(sceneId,"Tr¸ li®u thành công!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
if GetNumText() == 100 then
BeginEvent( sceneId )
AddText( sceneId, "Trong quá trình ch½i game nªu b¸ l²i âm kinh nghi®m ho£c không th¬ thång c¤p hãy ðªn tìm ta!" )
AddNumText(sceneId, x900000_g_scriptId, "SØa l²i kinh nghi®m", 6, 1002 )
AddNumText(sceneId, x900000_g_scriptId, "R¶i ði", 6, 1001 )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 1001 then
BeginUICommand( sceneId )
UICommand_AddInt( sceneId, targetId )
EndUICommand( sceneId )
DispatchUICommand( sceneId, selfId, 1000 )
return
end
if GetNumText() == 1002 then
if GetExp(sceneId,selfId) < 0 then
BeginEvent( sceneId )
LuaFnSendSpecificImpactToUnit(sceneId,selfId,selfI d,selfId,18,1000)
for i = 0,1000 do
AddExp(sceneId,selfId,GetExp(sceneId,selfId)*-1)
end
AddText(sceneId,"Süa l²i thành công!")
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
else
BeginEvent( sceneId )
AddText(sceneId,"Trong quá trình ch½i game nªu b¸ l²i âm kinh nghi®m ho£c không th¬ thång c¤p hãy ðªn tìm ta")
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
end
if GetNumText() == 600 then
local uiPoint = GetHumanJuqingPoint(sceneId, selfId)
if GetLevel(sceneId,selfId) < 1 then
x900000_TalkMsg( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü 10 không th¬ sØ døng chÑc nång này" )
return
end
if uiPoint > 0 then
x900000_TalkMsg( sceneId, selfId, targetId, " Ngß½i ðã gia nh§p môn phái r°i mà!" )
return
end
local MemPai_1=GetMenPai(sceneId, selfId)
local MemPai=GetMissionData( sceneId, selfId, MYMENPAIID )
if (MemPai_1==9 and MemPai==0) or (MemPai_1==9 and MemPai==9) then
BeginEvent( sceneId )
AddText( sceneId, "Xin vui lòng ch÷n môn phái c¥n #Ygia nh§p#W, sau khi gia nh§p môn phái s¨ ðÕt #Gtâm pháp c¤p "..x900000_g_XinfaLV )
AddNumText( sceneId, x900000_g_scriptId, "Ð߶ng môn", 6, 29)
AddNumText( sceneId, x900000_g_scriptId, "Mµ dung", 6, 30)
AddNumText( sceneId, x900000_g_scriptId, "Tinh túc", 6, 20)
AddNumText( sceneId, x900000_g_scriptId, "Tiêu dao", 6, 21)
AddNumText( sceneId, x900000_g_scriptId, "Thi¬u lâm", 6, 22)
AddNumText( sceneId, x900000_g_scriptId, "Thiên s½n", 6, 23)
AddNumText( sceneId, x900000_g_scriptId, "Thiên long", 6, 24)
AddNumText( sceneId, x900000_g_scriptId, "Nga mi", 6, 25)
AddNumText( sceneId, x900000_g_scriptId, "Võ ðang", 6, 26)
AddNumText( sceneId, x900000_g_scriptId, "Minh giáo", 6, 27)
AddNumText( sceneId, x900000_g_scriptId, "Cái bang", 6, 28)
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "Ngß½i ðã gia nh§p môn phái r°i mà, nªu mu¯n thay ð±i môn phái hãy mua #GMôn Phái Chuy¬n Hoán L®nh")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
return
end
end
if GetNumText() == 30 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 10)
LuaFnSetXinFaLevel(sceneId,selfId,64,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,65,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,66,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,67,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,68,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,69,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,70,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,71,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 10 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 29 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 11)
LuaFnSetXinFaLevel(sceneId,selfId,81,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,82,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,83,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,84,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,85,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,86,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,87,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,88,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 11 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 20 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 5)
LuaFnSetXinFaLevel(sceneId,selfId,31,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,32,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,33,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,34,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,35,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,36,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,60,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,77,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 5 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 21 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 8)
LuaFnSetXinFaLevel(sceneId,selfId,49,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,50,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,51,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,52,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,53,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,54,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,63,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,80,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 8 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 22 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 0)
LuaFnSetXinFaLevel(sceneId,selfId,1,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,2,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,3,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,4,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,5,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,6,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,55,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,72,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 0 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 23 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 7)
LuaFnSetXinFaLevel(sceneId,selfId,43,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,44,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,45,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,46,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,47,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,48,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,62,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,79,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 7 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 24 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 6)
LuaFnSetXinFaLevel(sceneId,selfId,37,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,38,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,39,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,40,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,41,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,42,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,61,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,78,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 6 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 25 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 4)
LuaFnSetXinFaLevel(sceneId,selfId,25,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,26,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,27,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,28,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,29,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,30,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,59,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,76,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 4 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 26 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 3)
LuaFnSetXinFaLevel(sceneId,selfId,19,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,20,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,21,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,22,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,23,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,24,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,58,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,75,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 3 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 27 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 1)
LuaFnSetXinFaLevel(sceneId,selfId,7,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,8,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,9,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,10,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,11,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,12,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,56,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,73,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 1 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 28 then
local day = GetDayTime();
local lastDay = GetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME);
if lastDay == day then
BeginEvent( sceneId )
AddText( sceneId, "M²i ngày chï có th¬ dùng chÑc nång này mµt l¥n!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
return
end
LuaFnJoinMenpai(sceneId, selfId, targetId, 2)
LuaFnSetXinFaLevel(sceneId,selfId,13,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,14,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,15,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,16,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,17,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,18,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,57,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,74,x900000_g_Xin faLV)
x900000_DoNewMenpai( sceneId, selfId, 2 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633 Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 thành công gia nh§p môn phái!", 4 )
SetMissionData(sceneId, selfId, MD_SHUANGXIANGPAO_LASTTIME, day);
BeginEvent( sceneId )
AddText( sceneId, "#b#u#c993366 Gia nh§p môn phái thành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 120 then
local nam = LuaFnGetName( sceneId, selfId )
if LuaFnGetAvailableItemCount(sceneId, selfId, 39910006) >= 1 then
BeginEvent( sceneId )
AddText( sceneId, "Vui lòng ch÷n môn phái c¥n ð±i" )
AddNumText( sceneId, x002095_g_ScriptId, "Ð߶ng môn",3,130 )
AddNumText( sceneId, x002095_g_ScriptId, "Mµ dung",3,131 )
AddNumText( sceneId, x002095_g_ScriptId, "Tinh túc",3,121 )
AddNumText( sceneId, x002095_g_ScriptId, "Tiêu dao",3,122 )
AddNumText( sceneId, x002095_g_ScriptId, "Thiªu lâm",3,123 )
AddNumText( sceneId, x002095_g_ScriptId, "Thiên s½n",3,124 )
AddNumText( sceneId, x002095_g_ScriptId, "Thiên long",3,125 )
AddNumText( sceneId, x002095_g_ScriptId, "Nga mi",3,126 )
AddNumText( sceneId, x002095_g_ScriptId, "Võ ðang",3,127 )
AddNumText( sceneId, x002095_g_ScriptId, "Minh giáo",3,128 )
AddNumText( sceneId, x002095_g_ScriptId, "Cái bang",3,129 )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "Ngß½i không có #GMôn Phái Chuy¬n Hoán L®nh")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 121 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 5)
x900000_DoNewMenpai( sceneId, selfId, 5 )
LuaFnSetXinFaLevel(sceneId,selfId,31,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,32,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,33,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,34,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,35,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,36,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,60,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,77,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 5 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 122 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 8)
x900000_DoNewMenpai( sceneId, selfId, 8 )
LuaFnSetXinFaLevel(sceneId,selfId,49,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,50,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,51,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,52,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,53,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,54,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,63,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,80,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 8 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 123 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 0)
x900000_DoNewMenpai( sceneId, selfId, 0 )
LuaFnSetXinFaLevel(sceneId,selfId,1,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,2,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,3,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,4,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,5,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,6,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,55,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,72,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 0 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 124 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 7)
x900000_DoNewMenpai( sceneId, selfId, 7 )
LuaFnSetXinFaLevel(sceneId,selfId,43,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,44,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,45,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,46,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,47,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,48,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,62,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,79,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 7 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 125 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 6)
x900000_DoNewMenpai( sceneId, selfId, 6 )
LuaFnSetXinFaLevel(sceneId,selfId,37,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,38,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,39,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,40,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,41,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,42,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,61,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,78,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 6 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 126 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 4)
x900000_DoNewMenpai( sceneId, selfId, 4 )
LuaFnSetXinFaLevel(sceneId,selfId,25,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,26,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,27,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,28,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,29,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,30,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,59,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,76,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 4 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 127 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 3)
x900000_DoNewMenpai( sceneId, selfId, 3 )
LuaFnSetXinFaLevel(sceneId,selfId,19,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,20,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,21,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,22,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,23,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,24,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,58,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,75,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 3 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 128 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
LuaFnJoinMenpai(sceneId, selfId, targetId, 1)
x900000_DoNewMenpai( sceneId, selfId, 1 )
LuaFnSetXinFaLevel(sceneId,selfId,7,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,8,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,9,x900000_g_Xinf aLV)
LuaFnSetXinFaLevel(sceneId,selfId,10,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,11,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,12,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,56,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,73,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 1 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 131 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
--LuaFnJoinMenpai(sceneId, selfId, targetId, 0)
x900000_DoNewMenpai( sceneId, selfId, 10 )
LuaFnJoinMenpai(sceneId, selfId, targetId, 10)
LuaFnSetXinFaLevel(sceneId,selfId,64,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,65,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,66,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,67,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,68,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,69,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,70,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,71,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 10 )
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 130 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
--LuaFnJoinMenpai(sceneId, selfId, targetId, 0)
x900000_DoNewMenpai( sceneId, selfId, 11 )
LuaFnJoinMenpai(sceneId, selfId, targetId, 11)
LuaFnSetXinFaLevel(sceneId,selfId,81,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,82,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,83,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,84,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,85,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,86,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,87,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,88,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
x900000_DoNewMenpai( sceneId, selfId, 11 )
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 16, 0)
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 129 then
if LuaFnDelAvailableItem(sceneId, selfId, 39910006) >= 1 then
x900000_DoNewMenpai( sceneId, selfId, 2 )
LuaFnJoinMenpai(sceneId, selfId, targetId, 2)
LuaFnSetXinFaLevel(sceneId,selfId,13,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,14,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,15,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,16,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,17,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,18,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,57,x900000_g_Xin faLV)
LuaFnSetXinFaLevel(sceneId,selfId,74,x900000_g_Xin faLV)
LuaFnDelAvailableItem(sceneId,selfId,39910006,1)
for i, temp in x900000_g_MenpaiBuff do
LuaFnCancelSpecificImpact(sceneId, selfId, temp)
end
LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 148, 0)
local nam = LuaFnGetName( sceneId, selfId )
--BroadMsgByChatPipe( sceneId, selfId, "#u#cff6633Chúc m×ng ðÕi hi®p #G["..nam.."]#u#cff6633 chuy¬n môn phái thành công!", 4 )
BeginEvent( sceneId )
AddText( sceneId, "Chuy¬n #Ymôn phái #Wthành công!" )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
else
BeginEvent(sceneId)
AddText(sceneId, "#G Kh¤u tr× v§t ph¦m th¤t bÕi, vui lòng ki¬m tra lÕi!!")
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
end
if GetNumText() == 999 then
local msgStr = format( "#Y Khi ðÕt t¾i ðÆng c¤p yêu c¥u hãy t¾i ch² ta nh§n l¤y ph¥n thß·ng")
BeginEvent(sceneId)
AddText(sceneId,msgStr)
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard0 ) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 80 [2000 kim t®]", 5, 1111 )
end
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard1) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 90 [4000 kim t®]", 5, 1112 )
end
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard2 ) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 95 [5000 t£ng ði¬m]", 5, 1113 )
end
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard3 ) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 100 [5000 t£ng ði¬m]", 5, 1114 )
end
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard4 ) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 105 [5000 t£ng ði¬m]", 5, 1115 )
end
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard5 ) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 110 [10000 t£ng ði¬m]", 5, 1116 )
end
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard6 ) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 115 [10000 t£ng ði¬m]", 5, 1117 )
end
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard7 ) then
AddNumText( sceneId, x900000_g_ScriptId, "#gFF3E96Nh§n ph¥n thß·ng c¤p 125 [10000 t£ng ði¬m]", 5, 1118 )
end
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 1111 then
local lev = GetLevel( sceneId, selfId )
if lev<80 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard0 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
AddMoney( sceneId, selfId, 20000000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard0, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000 [Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 2000 kim t®", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1112 then
local lev = GetLevel( sceneId, selfId )
if lev<90 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard1 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
AddMoney( sceneId, selfId, 40000000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard1, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000 [Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 4000 kim t®", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1113 then
local lev = GetLevel( sceneId, selfId )
if lev<95 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard2 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
ZengDian(sceneId,selfId,targetId,1,5000)
AddMoney( sceneId, selfId, 300000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard2, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000[Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 5000 ði¬m t£ng", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1114 then
local lev = GetLevel( sceneId, selfId )
if lev<100 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard3 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
ZengDian(sceneId,selfId,targetId,1,5000)
AddMoney( sceneId, selfId, 400000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard3, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000[Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 5000 ði¬m t£ng", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1115 then
local lev = GetLevel( sceneId, selfId )
if lev<105 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard4 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
ZengDian(sceneId,selfId,targetId,1,5000)
AddMoney( sceneId, selfId, 500000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard4, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000[Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 5000 ði¬m t£ng", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1116 then
local lev = GetLevel( sceneId, selfId )
if lev<110 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard5 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
ZengDian(sceneId,selfId,targetId,1,10000)
AddMoney( sceneId, selfId, 700000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard5, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000[Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 10000 ði¬m t£ng", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1117 then
local lev = GetLevel( sceneId, selfId )
if lev<115 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard6 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
ZengDian(sceneId,selfId,targetId,1,10000)
AddMoney( sceneId, selfId, 1000000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard6, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000[Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 10000 ði¬m t£ng", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1118 then
local lev = GetLevel( sceneId, selfId )
if lev<125 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " ÐÆng c¤p chßa ðü không th¬ nh§n thß·ng!" )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard7 )
if index == 1 then
x900000_NotifyFailBox( sceneId, selfId, targetId, " Ngß½i ðã nh§n ph¥n thß·ng này" )
return
else
ZengDian(sceneId,selfId,targetId,1,10000)
AddMoney( sceneId, selfId, 3000000 )
SetMissionData( sceneId, selfId, MF_GetNewUserCard7, 1 )
x900000_NotifyFailBox( sceneId, selfId, targetId, " Nh§n thß·ng thành công! #45" )
local str = format("#cFF0000[Ph¥n thß·ng thång c¤p] #cff99cc#{_INFOUSR%s} tÕi #G ÐÕi Lý#cff99cc nh§n thß·ng thång c¤p ðßþc 10000 ði¬m t£ng", GetName(sceneId,selfId) )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
end
end
--**********************************
--¶Ô»°Ìáʾ
--**********************************
function x900000_TalkMsg( sceneId, selfId, targetId, str )
BeginEvent(sceneId)
AddText(sceneId, str)
EndEvent(sceneId)
DispatchEventList(sceneId,selfId,targetId)
end
--**********************************
-- ÆÁÄ»ÖмäÐÅÏ¢Ìáʾ
--**********************************
function x900000_NotifyFailTips( sceneId, selfId, Tip )
BeginEvent( sceneId )
AddText( sceneId, Tip )
EndEvent( sceneId )
DispatchMissionTips( sceneId, selfId )
end
--**********************************
--»Ö¸´ÑªºÍÆø
--**********************************
function x900000_Restore_hpmp( sceneId, selfId, targetId )
RestoreHp( sceneId, selfId )
RestoreMp( sceneId, selfId )
RestoreRage( sceneId, selfId )
end
--**********************************
-- ¶Ô»°´°¿ÚÐÅÏ¢Ìáʾ
--**********************************
function x900000_NotifyFailBox( sceneId, selfId, targetId, msg )
BeginEvent( sceneId )
AddText( sceneId, msg )
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
--**********************************
-- ÐÂÃÅÅÉ´¦Àí
--**********************************
function x900000_DoNewMenpai( sceneId, selfId, menpaiId )
-- LuaFnCancelSpecificImpact(sceneId, selfId, 15)
-- LuaFnCancelSpecificImpact(sceneId, selfId, 16)
-- SetMissionData(sceneId, selfId, MYMENPAIID, menpaiId);
LuaFnCreatePetToHuman(sceneId, selfId, x900000_Pet[random(10)], 10, 0);
if menpaiId==0 then
AddSkill( sceneId, selfId, 304)--diet thu trieu thuc
AddSkill( sceneId, selfId, 305)--dieu ho li son
AddSkill( sceneId, selfId, 301)--dich can kinh
elseif menpaiId==1 then
AddSkill( sceneId, selfId, 331)--
AddSkill( sceneId, selfId, 334)--
elseif menpaiId==2 then
AddSkill( sceneId, selfId, 361)--
AddSkill( sceneId, selfId, 364)--
elseif menpaiId==3 then
AddSkill( sceneId, selfId, 391)--
AddSkill( sceneId, selfId, 394)--
elseif menpaiId==4 then
AddSkill( sceneId, selfId, 421)--
AddSkill( sceneId, selfId, 424)--
AddSkill( sceneId, selfId, 423)--
elseif menpaiId==5 then
AddSkill( sceneId, selfId, 451)--
AddSkill( sceneId, selfId, 454)--
elseif menpaiId==6 then
AddSkill( sceneId, selfId, 481)--
AddSkill( sceneId, selfId, 484)--
elseif menpaiId==7 then
AddSkill( sceneId, selfId, 511)--
AddSkill( sceneId, selfId, 514)--
AddSkill( sceneId, selfId, 515)--
elseif menpaiId==8 then
AddSkill( sceneId, selfId, 541)--
AddSkill( sceneId, selfId, 544)--
end
return
end
--**********************************
-- ¿Í»§¶Ë»ñÈ¡ÃÅÅÉID
--**********************************
function x900000_GetMyMenpaiIdByName( sceneId, selfId, flag )
if flag==1 then
local myMenpaiId ={9,9,9,9,9,9}
local TeammateCount = GetTeamMemberCount( sceneId, selfId )
for i=0, TeammateCount-1 do
local memGuid = GetTeamMemberGuid(sceneId, selfId, i);
local objId = LuaFnGuid2ObjId(sceneId, memGuid);
--x900000_NotifyFailTips( sceneId, selfId, objId )
myMenpaiId[i]=GetMissionData( sceneId, objId, MYMENPAIID )
end
BeginUICommand(sceneId)
UICommand_AddInt(sceneId,myMenpaiId[0])
UICommand_AddInt(sceneId,myMenpaiId[1])
UICommand_AddInt(sceneId,myMenpaiId[2])
UICommand_AddInt(sceneId,myMenpaiId[3])
UICommand_AddInt(sceneId,myMenpaiId[4])
UICommand_AddInt(sceneId,myMenpaiId[5])
EndUICommand(sceneId)
DispatchUICommand(sceneId,selfId, 2014033001)
end
-- local myMenpaiId=9
-- local nHumanCount = LuaFnGetCopyScene_HumanCount(sceneId)
-- for i=0, nHumanCount-1 do
-- local nHumanId = LuaFnGetCopyScene_HumanObjId(sceneId, i)
-- local tmpName=GetName( sceneId, nHumanId )
-- if tmpName==name then
-- myMenpaiId=GetMissionData( sceneId, nHumanId, MYMENPAIID )
-- break
-- end
-- end
-- local uicommand=2014033000
-- uicommand=uicommand+flag
-- BeginUICommand(sceneId)
-- UICommand_AddInt(sceneId,myMenpaiId)
-- EndUICommand(sceneId)
-- DispatchUICommand(sceneId,selfId, uicommand)
end
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.