PHP Code:
--[Thăng Chức 1]
function MissIon18(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
elseif CzId==2 then
if Player.Player_Level < 10 then
return
end
SetPlayerTransfer(UserWorldId,0,1)
SetQigong(UserWorldId,5)
UpHpMpSp(UserWorldId)
UpGongFu(UserWorldId)
Player.Player_Money=Player.Player_Money+500000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Chức Lần 2 Chính Phái]
function MissIon11(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level < 35 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level < 35 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
SetPlayerTransfer(UserWorldId,1,2)
SetQigong(UserWorldId,6)
UpGongFu(UserWorldId)
UpYzbItme(UserWorldId)
Player.Player_Money=Player.Player_Money+1000000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Chức Lần 2 Tà Phái]
function MissIon12(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level < 35 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level < 35 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
SetPlayerTransfer(UserWorldId,2,2)
SetQigong(UserWorldId,6)
UpGongFu(UserWorldId)
UpYzbItme(UserWorldId)
Player.Player_Money=Player.Player_Money+1000000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Chức Lần 3 Chính Phái]
function MissIon45(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level < 60 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level < 60 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
SetPlayerTransfer(UserWorldId,Player.Player_Zx,3)
SetQigong(UserWorldId,7)
UpGongFu(UserWorldId)
Player.Player_Money=Player.Player_Money+2000000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Chức Lần 3 Tà Phái]
function MissIon46(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level < 60 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level < 60 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
SetPlayerTransfer(UserWorldId,Player.Player_Zx,3)
SetQigong(UserWorldId,7)
UpGongFu(UserWorldId)
Player.Player_Money=Player.Player_Money+2000000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Chức Lần 4 Chính Phái]
function MissIon73(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level < 80 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level < 80 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
SetPlayerTransfer(UserWorldId,Player.Player_Zx,4)
SetQigong(UserWorldId,8)
SetQigong(UserWorldId,9)
UpGongFu(UserWorldId)
Player.Player_Money=Player.Player_Money+3000000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Chức Lần 4 Tà Phái]
function MissIon74(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level < 80 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level < 80 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
SetPlayerTransfer(UserWorldId,Player.Player_Zx,4)
SetQigong(UserWorldId,8)
SetQigong(UserWorldId,9)
UpGongFu(UserWorldId)
Player.Player_Money=Player.Player_Money+3000000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Chức Lần 5]
function MissIon178(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level < 100 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level < 100 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
SetPlayerTransfer(UserWorldId,Player.Player_Zx,5)
SetQigong(UserWorldId,10)
AddSkill(UserWorldId,0,25)
AddSkill(UserWorldId,0,26)
AddSkill(UserWorldId,0,27)
UpGongFu(UserWorldId)
Player.Player_Money=Player.Player_Money+4000000
UpMoney(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Thiên 1]
function MissIon300(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level<115 or Player.Player_WuXun < 15000 then
SendSysMsg(UserWorldId,"Diem Vo Huan chua dat 15000!", 20, "He thong")
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level<115 or Player.Player_WuXun < 15000 then
SendSysMsg(UserWorldId,"Diem Vo Huan chua dat 15000!", 20, "He thong")
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
local weiz=GetPackage(UserWorldId)
if weiz==-1 then
SendSysMsg(UserWorldId,"Khong du o trong", 9, "He thong")
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
return
end
AddSkillBook6(UserWorldId,weiz);
SetPlayerTransfer(UserWorldId,Player.Player_Zx,6)
Player.Player_Money=Player.Player_Money+5000000
UpGongFu(UserWorldId)
UpMoney(UserWorldId)
UpExp(UserWorldId)
UpYzbItme(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Thiên 2]
function MissIon301(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level<120 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level<120 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
local weiz=GetPackage(UserWorldId)
if weiz==-1 then
SendSysMsg(UserWorldId,"Khong du o trong", 9, "He thong")
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
return
end
AddSkillBook7(UserWorldId,weiz);
SetPlayerTransfer(UserWorldId,Player.Player_Zx,7)
Player.Player_Money=Player.Player_Money+6000000
UpGongFu(UserWorldId)
UpMoney(UserWorldId)
UpExp(UserWorldId)
UpYzbItme(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end
--[Thăng Thiên 3]
function MissIon254(UserWorldId,QuestId, CzId, RwJdId)
local Player = GetPlayer(UserWorldId)
if CzId==1 then
if Player.Player_Level<130 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
else
SendMissionMsg(UserWorldId,QuestId, 11, RwJdId)
end
elseif CzId==2 then
if Player.Player_Level<130 then
SendMissionMsg(UserWorldId,QuestId, 12, RwJdId)
return
end
local weiz=GetPackage(UserWorldId)
if weiz==-1 then
SendSysMsg(UserWorldId,"Khong du o trong!", 9, "He thong")
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
return
end
AddSkillBook8(UserWorldId,weiz);
SetPlayerTransfer(UserWorldId,Player.Player_Zx,8)
Player.Player_Money=Player.Player_Money+7000000
UpGongFu(UserWorldId)
UpMoney(UserWorldId)
UpExp(UserWorldId)
UpYzbItme(UserWorldId)
AddQuest(UserWorldId,QuestId,1)
SendMissionMsg(UserWorldId,QuestId, 21, 1)
elseif CzId==3 then
SendMissionMsg(UserWorldId,QuestId, 31, RwJdId)
elseif CzId==5 then
SendMissionMsg(UserWorldId,QuestId, 51, RwJdId)
end
end