function sVoinnew_Cast(MapID, InstanceID, SkillID, OwnerID) local heal = role.IsLearnedSkill(OwnerID, 10206) or 0 local kaffa1 = role.IsLearnedSkill(OwnerID, 25002) or 0 local kaffa2 = role.IsLearnedSkill(OwnerID, 25003) or 0 if kaffa1 > 0 then unit.AddBuff(MapID, InstanceID, OwnerID, 3900200 + kaffa1, OwnerID) end if kaffa2 > 0 then unit.AddBuff(MapID, InstanceID, OwnerID, 3900300 + kaffa2, OwnerID) end local healrescrtion = role.IsRoleHaveBuff(MapID, InstanceID, OwnerID, 10206) local r = math.random(4) if heal >= 1 and healrescrtion == true and r == 1 then unit.AddBuff(MapID, InstanceID, OwnerID, 1020700 + heal, OwnerID) end end aux.RegisterSkillEvent(1020401, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020402, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020403, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020404, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020405, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020406, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020407, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020408, 1, "sVoinnew_Cast") aux.RegisterSkillEvent(1020409, 1, "sVoinnew_Cast") function s2101501_Cast(MapID, InstanceID, SkillID, OwnerID) unit.CancelBuff(MapID, InstanceID,OwnerID,1200001) end aux.RegisterSkillEvent(2101501, 1, "s2101501_Cast") function sGuildResh_Cast(MapID, InstanceID, SkillID, OwnerID, TargetID) local skilllevel = role.IsLearnedSkill (OwnerID, 40008) if skilllevel >=1 then unit.AddBuff (MapID, InstanceID, OwnerID, 1060300+skillLevel, OwnerID) end end aux.RegisterSkillEvent(400081 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400082 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400083 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400084 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400085 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400086 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400087 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400088 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(400089 , 1, "sGuildResh_Cast") aux.RegisterSkillEvent(4000810 , 1, "sGuildResh_Cast")