This goes in functions.lua:
function CheckEquipmentSet(Player, Head, Body, Glove, Shoes, Neck, RHand, LHand, Ring1, Ring2)
if Head ~= 0 then
if GetItemID(GetChaItem(Player, 1, 0))~= Head then
if GetItemAttr(GetChaItem(Player, 1, 0), ITEMATTR_VAL_FUSIONID)~= Head then
return 0
end
end
end
if Body ~= 0 then
if GetItemID(GetChaItem(Player, 1, 2))~= Body then
if GetItemAttr(GetChaItem(Player, 1, 2), ITEMATTR_VAL_FUSIONID)~= Body then
return 0
end
end
end
if Glove ~= 0 then
if GetItemID(GetChaItem(Player, 1, 3))~= Glove then
if GetItemAttr(GetChaItem(Player, 1, 3), ITEMATTR_VAL_FUSIONID)~= Glove then
return 0
end
end
end
if Shoes ~= 0 then
if GetItemID(GetChaItem(Player, 1, 4))~= Shoes then
if GetItemAttr(GetChaItem(Player, 1, 4), ITEMATTR_VAL_FUSIONID)~= Shoes then
return 0
end
end
end
if Neck ~= 0 then
if GetItemID(GetChaItem(Player, 1, 5))~= Neck then
return 0
end
end
if RHand ~= 0 then
if GetItemID(GetChaItem(Player, 1, 9))~= RHand then
if GetItemAttr(GetChaItem(Player, 1, 9), ITEMATTR_VAL_FUSIONID)~= RHand then
return 0
end
end
end
if LHand ~= 0 then
if GetItemID(GetChaItem(Player, 1, 6))~= LHand then
if GetItemAttr(GetChaItem(Player, 1, 6), ITEMATTR_VAL_FUSIONID)~= LHand then
return 0
end
end
end
if Ring1 ~= 0 then
if GetItemID(GetChaItem(Player, 1, 7))~= Ring1 then
return 0
end
end
if Ring2 ~= 0 then
if GetItemID(GetChaItem(Player, 1, 8))~= Ring2 then
return 0
end
end
return 1
end
Then add this there as well:
function Set_KylinEquipment(Player)
if CheckEquipmentSet(Player, 0, <BODY_ID>, <GLOVE_ID>, <BOOTS_ID>, 0, 0, 0, 0, 0) == 1 then
return 1
end
return 0
end
Then just add this anywhere you want to do anything you need.
if Set_KylinEquipment(Player) == 1 then
if math.random(1, 100) <= 10 then
-- <CODE_HERE>
end
end
@Gamez Pirates has given you the default go-to function from server files, you can use that and do it without learning more.
What I gave you is a better function so you can easily add more requirements, of course if you learn how to modify it (everything is simple and explained within the functions). This takes the load off of repeating every time, now you just add a single function and it will do the check for you, whether the equipment is fused or not.