View Full Version : [JX] Xin Hàm Set Vòng Sáng và Máu Tân Thủ
 
 
Nhờ MOD CLOSE TOPIC dùm vì đã code được rồi :)
Vòng sáng tân thủ
function vongsangtanthu()
	if GetLevel()<150 then
		AddSkillState(512,20,1,60*60*18)
		AddSkillState(527,5,1,60*60*18)
		AddSkillState(313,5,1,60*60*18)
		AddSkillState(314,12,1,60*60*18)
		AddSkillState(546,1,1,60*60*18)
		Talk(1, "", "B¹n sÏ ®îc nhËn hæ trî kü n¨ng nµy ®Õn cÊp 150");
		Msg2Player( "B¹n ®· nhËn thµnh c«ng <color=yellow>Kü n¨ng Hç Trî T©n Thñ !<color>" );
		tbAwardTemplet:GiveAwardByList(tbItem, "PhÇn thëng t©n thñ");
	end
end
Nhận máu 
unction nhanmau()
	if CalcFreeItemCellCount() < 10 then
		Say("H·y cÊt bít vËt phÈm ®Ó ®¶m b¶o cã 10 « trèng råi h·y më.",0);
		return 1;
	end
	if GetLevel()<180 then
		local tbItem = {szName="Ngò Hoa Ngäc Lé Hoµn", tbProp={1, 2, 0, 5, 0, 0}, nCount = 10, nExpiredTime = 10080, nBindState = -2}
		Talk(1, "", "B¹n nhËn ®îc hæ trî nµy ®Õn cÊp 180");
		tbAwardTemplet:GiveAwardByList(tbItem, "PhÇn thëng t©n thñ");
	end
end
Tự add đi bác
Vòng sáng tân thủ
function vongsangtanthu()
	if GetLevel()<150 then
		AddSkillState(512,20,1,60*60*18)
		AddSkillState(527,5,1,60*60*18)
		AddSkillState(313,5,1,60*60*18)
		AddSkillState(314,12,1,60*60*18)
		AddSkillState(546,1,1,60*60*18)
		Talk(1, "", "B¹n sÏ ®îc nhËn hæ trî kü n¨ng nµy ®Õn cÊp 150");
		Msg2Player( "B¹n ®· nhËn thµnh c«ng <color=yellow>Kü n¨ng Hç Trî T©n Thñ !<color>" );
		tbAwardTemplet:GiveAwardByList(tbItem, "PhÇn thëng t©n thñ");
	end
end
Nhận máu 
unction nhanmau()
	if CalcFreeItemCellCount() < 10 then
		Say("H·y cÊt bít vËt phÈm ®Ó ®¶m b¶o cã 10 « trèng råi h·y më.",0);
		return 1;
	end
	if GetLevel()<180 then
		local tbItem = {szName="Ngò Hoa Ngäc Lé Hoµn", tbProp={1, 2, 0, 5, 0, 0}, nCount = 10, nExpiredTime = 10080, nBindState = -2}
		Talk(1, "", "B¹n nhËn ®îc hæ trî nµy ®Õn cÊp 180");
		tbAwardTemplet:GiveAwardByList(tbItem, "PhÇn thëng t©n thñ");
	end
end
Tự add đi bác
Cảm ơn ạ :D
30charrrrrrrrrrrrrrrrrr
 
Powered by vBulletin® Version 4.2.0 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.