function xMob_115_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) if math.random (5) == 1 then local drop = {} drop[1] = {4900391} drop[2] = {4900397} drop[3] = {4900399} local r = math.random(1,3) role.AddRoleItem(MapID, InstanceID, RoleID, drop[r][1], 1, -1, 8, 420) end end aux.RegisterCreatureEvent(9010629, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010630, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010631, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010632, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010633, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010634, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010635, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010625, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010626, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010627, 4, "xMob_115_Cnag") aux.RegisterCreatureEvent(9010628, 4, "xMob_115_Cnag") function xMob_112_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) if math.random (5) == 1 then local drop = {} drop[1] = {4900395} drop[2] = {4900401} drop[3] = {6900414} drop[4] = {6900413} local r = math.random(1,4) role.AddRoleItem(MapID, InstanceID, RoleID, drop[r][1], 1, -1, 8, 420) end end aux.RegisterCreatureEvent(1070101, 4, "xMob_112_Cnag") aux.RegisterCreatureEvent(1070102, 4, "xMob_112_Cnag") aux.RegisterCreatureEvent(1070103, 4, "xMob_112_Cnag") aux.RegisterCreatureEvent(1070104, 4, "xMob_112_Cnag") aux.RegisterCreatureEvent(1070105, 4, "xMob_112_Cnag") aux.RegisterCreatureEvent(1070106, 4, "xMob_112_Cnag") function Idyxui1_GiftBag(MapID, InstanceID, TypeID, TargetID) local voin = {} voin[1] = {8010071} voin[2] = {8010072} voin[3] = {8010073} voin[4] = {8010074} voin[5] = {8010075} voin[6] = {8010076} voin[7] = {8010077} voin[8] = {8010078} voin[9] = {8010079} voin[10] = {8010080} voin[11] = {8010081} voin[12] = {8010077} voin[13] = {8010071} voin[14] = {8010072} voin[15] = {8010073} voin[16] = {8010074} voin[17] = {8010075} voin[18] = {8010076} voin[19] = {8010077} voin[20] = {8010078} voin[21] = {8010079} voin[22] = {8010080} voin[23] = {8010081} local lyk = {} lyk[1] = {8010082} lyk[2] = {8010083} lyk[3] = {8010084} lyk[4] = {8010085} lyk[5] = {8010086} lyk[6] = {8010087} lyk[7] = {8010088} lyk[8] = {8010089} lyk[9] = {8010090} lyk[10] = {8010091} lyk[11] = {8010092} lyk[12] = {8010092} lyk[13] = {8010082} lyk[14] = {8010083} lyk[15] = {8010084} lyk[16] = {8010085} lyk[17] = {8010086} lyk[18] = {8010087} lyk[19] = {8010088} lyk[20] = {8010089} lyk[21] = {8010090} lyk[22] = {8010091} lyk[23] = {8010092} local mag = {} mag[1] = {8010093} mag[2] = {8010094} mag[3] = {8010095} mag[4] = {8010096} mag[5] = {8010097} mag[6] = {8010098} mag[7] = {8010099} mag[8] = {8010100} mag[9] = {8010101} mag[10] = {8010102} mag[11] = {8010103} mag[12] = {8010093} mag[13] = {8010094} mag[14] = {8010095} mag[15] = {8010096} mag[16] = {8010097} mag[17] = {8010098} mag[18] = {8010099} mag[19] = {8010100} mag[20] = {8010101} mag[21] = {8010102} mag[22] = {8010103} mag[23] = {8010099} local bard = {} bard[1] = {8010114} bard[2] = {8010104} bard[3] = {8010105} bard[4] = {8010106} bard[5] = {8010107} bard[6] = {8010108} bard[7] = {8010109} bard[8] = {8010110} bard[9] = {8010111} bard[10] = {8010112} bard[11] = {8010113} bard[12] = {8010114} bard[13] = {8010104} bard[14] = {8010105} bard[15] = {8010106} bard[16] = {8010107} bard[17] = {8010108} bard[18] = {8010109} bard[19] = {8010110} bard[20] = {8010111} bard[21] = {8010112} bard[22] = {8010113} bard[23] = {8010114} local r = math.random(1,23) local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, voin[r][1], 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, lyk[r][1], 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, bard[r][1], 1, 6, 8, 420) end end aux.RegisterItemEvent(3010146, 1, "Idyxui1_GiftBag") function Idyxui27_GiftBag(MapID, InstanceID, TypeID, TargetID) local voin = {} voin[1] = {9151035} voin[2] = {8010027} voin[3] = {8010028} voin[4] = {8010029} voin[5] = {8010030} voin[6] = {8010031} voin[7] = {8010032} voin[8] = {8010037} voin[9] = {8010033} voin[10] = {8010034} voin[11] = {8010035} voin[12] = {8010036} voin[13] = {9151035} voin[14] = {8010027} voin[15] = {8010028} voin[16] = {8010029} voin[17] = {8010030} voin[18] = {8010031} voin[19] = {8010032} voin[20] = {8010037} voin[21] = {8010033} voin[22] = {8010034} voin[23] = {8010035} voin[24] = {8010036} local lyk = {} lyk[1] = {9151036} lyk[2] = {8010038} lyk[3] = {8010039} lyk[4] = {8010040} lyk[5] = {8010041} lyk[6] = {8010042} lyk[7] = {8010043} lyk[8] = {8010044} lyk[9] = {8010045} lyk[10] = {8010046} lyk[11] = {8010047} lyk[12] = {8010048} lyk[13] = {9151036} lyk[14] = {8010038} lyk[15] = {8010039} lyk[16] = {8010040} lyk[17] = {8010041} lyk[18] = {8010042} lyk[19] = {8010043} lyk[20] = {8010044} lyk[21] = {8010045} lyk[22] = {8010046} lyk[23] = {8010047} lyk[24] = {8010048} local mag = {} mag[1] = {9151037} mag[2] = {8010049} mag[3] = {8010050} mag[4] = {8010051} mag[5] = {8010052} mag[6] = {8010053} mag[7] = {8010054} mag[8] = {8010055} mag[9] = {8010056} mag[10] = {8010057} mag[11] = {8010058} mag[12] = {8010059} mag[13] = {9151037} mag[14] = {8010049} mag[15] = {8010050} mag[16] = {8010051} mag[17] = {8010052} mag[18] = {8010053} mag[19] = {8010054} mag[20] = {8010055} mag[21] = {8010056} mag[22] = {8010057} mag[23] = {8010058} mag[24] = {8010059} local bard = {} bard[1] = {9151038} bard[2] = {8010060} bard[3] = {8010061} bard[4] = {8010062} bard[5] = {8010063} bard[6] = {8010064} bard[7] = {8010065} bard[8] = {8010066} bard[9] = {8010067} bard[10] = {8010068} bard[11] = {8010069} bard[12] = {8010070} bard[13] = {9151038} bard[14] = {8010060} bard[15] = {8010061} bard[16] = {8010062} bard[17] = {8010063} bard[18] = {8010064} bard[19] = {8010065} bard[20] = {8010066} bard[21] = {8010067} bard[22] = {8010068} bard[23] = {8010069} bard[24] = {8010070} local r = math.random(1,24) local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, voin[r][1], 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, lyk[r][1], 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, bard[r][1], 1, 6, 8, 420) end end aux.RegisterItemEvent(6900487, 1, "Idyxui27_GiftBag") function Idyxui7f_GiftBag(MapID, InstanceID, TypeID, TargetID) --- Эгида 95 local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, 8039007, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039008, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039015, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039019, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110922, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110923, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039023, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039027, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039031, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039035, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039039, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039043, 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, 8039009, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039010, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039016, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039020, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110924, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110925, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039024, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039028, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039032, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039036, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039040, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039044, 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, 8039011, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039012, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039017, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039021, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110926, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110927, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039025, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039029, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039033, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039037, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039041, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039045, 1, 6, 8, 420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, 8039013, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039014, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039018, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039022, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110928, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8110929, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039026, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039030, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039034, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039038, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039042, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039046, 1, 6, 8, 420) end end aux.RegisterItemEvent(6900521, 1, "Idyxui7f_GiftBag") function Idyxui5_GiftBag(MapID, InstanceID, TypeID, TargetID) --- 110 шмот local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, 8039048, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039048, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039049, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039050, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039051, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039052, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039053, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039054, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039055, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039056, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039057, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039058, 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, 8039059, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039059, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039060, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039061, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039062, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039063, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039064, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039065, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039066, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039067, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039068, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039069, 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, 8039070, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039071, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039072, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039073, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039074, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039075, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039076, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039077, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039078, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039079, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039080, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039080, 1, 6, 8, 420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, 8039081, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039082, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039083, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039084, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039085, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039086, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039087, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039088, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039089, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039090, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039091, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8039091, 1, 6, 8, 420) end end aux.RegisterItemEvent(6303215, 1, "Idyxui5_GiftBag") function Idyxui15_GiftBag(MapID, InstanceID, TypeID, TargetID) --- 120 шмот local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, 8139048, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139048, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139049, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139050, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139051, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139052, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139053, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139054, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139055, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139056, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139057, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139058, 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, 8139059, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139059, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139060, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139061, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139062, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139063, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139064, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139065, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139066, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139067, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139068, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139069, 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, 8139070, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139071, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139072, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139073, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139074, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139075, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139076, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139077, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139078, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139079, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139080, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139080, 1, 6, 8, 420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, 8139081, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139082, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139083, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139084, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139085, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139086, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139087, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139088, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139089, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139090, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139091, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8139091, 1, 6, 8, 420) end end aux.RegisterItemEvent(6303216, 1, "Idyxui15_GiftBag") function Idyxui7_GiftBag(MapID, InstanceID, TypeID, TargetID) --- 115 шмот local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, 8099335, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099336, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099337, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099338, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099339, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099340, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099341, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099342, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099343, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099344, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099345, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099346, 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, 8099347, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099348, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099349, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099350, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099351, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099352, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099353, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099354, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099355, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099356, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099357, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099358, 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, 8099359, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099360, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099361, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099362, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099363, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099364, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099365, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099366, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099367, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099368, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099369, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099370, 1, 6, 8, 420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, 8099370, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099371, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099372, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099373, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099374, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099375, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099376, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099377, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099378, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099379, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099380, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8099381, 1, 6, 8, 420) end end aux.RegisterItemEvent(7602102, 1, "Idyxui7_GiftBag") function Idyxuf33_GiftBag(MapID, InstanceID, TypeID, TargetID) role.AddRoleItem(MapID, InstanceID, TargetID, 9151035, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010027, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010028, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010029, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010030, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010031, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010032, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010037, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010033, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010034, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010035, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010036, 1, 6, 8, 420) end aux.RegisterItemEvent(6950522, 1, "Idyxuf33_GiftBag") function Idyxuf36_GiftBag(MapID, InstanceID, TypeID, TargetID) role.AddRoleItem(MapID, InstanceID, TargetID, 9151036, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010038, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010039, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010040, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010041, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010042, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010043, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010044, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010045, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010046, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010047, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010048, 1, 6, 8, 420) end aux.RegisterItemEvent(6950523, 1, "Idyxuf36_GiftBag") function Idyxuf35_GiftBag(MapID, InstanceID, TypeID, TargetID) role.AddRoleItem(MapID, InstanceID, TargetID, 9151037, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010049, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010050, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010051, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010052, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010053, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010054, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010055, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010056, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010057, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010058, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010059, 1, 6, 8, 420) end aux.RegisterItemEvent(6950524, 1, "Idyxuf35_GiftBag") function Idyxuf34_GiftBag(MapID, InstanceID, TypeID, TargetID) role.AddRoleItem(MapID, InstanceID, TargetID, 9151038, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010060, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010061, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010062, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010063, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010064, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010065, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010066, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010067, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010068, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010069, 1, 6, 8, 420) role.AddRoleItem(MapID, InstanceID, TargetID, 8010070, 1, 6, 8, 420) end aux.RegisterItemEvent(6950525, 1, "Idyxuf34_GiftBag") --ЙП№Еµдј® function x7602201_GiftBag(MapID, InstanceID, TypeID, TargetID) local level = role.GetRoleLevel(MapID, InstanceID, TargetID) if level < 110 then role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) role.AddRoleExp(MapID, InstanceID, TargetID, 2147483647) elseif level >=120 and level < 120 then end end aux.RegisterItemEvent(7602201, 1, "x7602201_GiftBag") function YabOne_GiftBag(MapID, InstanceID, TypeID, TargetID) role.IncBagYuanBao(MapID, InstanceID, TargetID, 50,300) end aux.RegisterItemEvent(7602202, 1, "YabOne_GiftBag") function Idyxui2_GiftBag(MapID, InstanceID, TypeID, TargetID) local fizi = {} fizi[1] = {8099682} fizi[2] = {8099683} fizi[3] = {8099684} fizi[4] = {8099685} fizi[5] = {8099686} fizi[6] = {8099687} fizi[7] = {8099688} fizi[8] = {8099689} local mag = {} mag[1] = {8099690} mag[2] = {8099691} mag[3] = {8099692} mag[4] = {8099693} mag[5] = {8099694} mag[6] = {8099695} mag[7] = {8099696} mag[8] = {8099697} local bard = {} bard[1] = {8099698} bard[2] = {8099699} bard[3] = {8099700} bard[4] = {8099701} bard[5] = {8099702} bard[6] = {8099703} bard[7] = {8099704} local r1 = math.random(1,7) local r = math.random(1,8) local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, bard[r1][1], 1, 6, 8, 420) end end aux.RegisterItemEvent(6602044, 1, "Idyxui2_GiftBag") function Idyxui2a_GiftBag(MapID, InstanceID, TypeID, TargetID) local fizi = {} fizi[1] = {8099754} fizi[2] = {8099755} fizi[3] = {8099756} fizi[4] = {8099757} fizi[5] = {8099758} fizi[6] = {8099759} fizi[7] = {8099760} fizi[8] = {8099761} local mag = {} mag[1] = {8099763} mag[2] = {8099764} mag[3] = {8099765} mag[4] = {8099766} mag[5] = {8099767} mag[6] = {8099768} mag[7] = {8099769} mag[8] = {8099762} local bard = {} bard[1] = {8099771} bard[2] = {8099772} bard[3] = {8099773} bard[4] = {8099774} bard[5] = {8099775} bard[6] = {8099776} bard[7] = {8099770} local r1 = math.random(1,7) local r = math.random(1,8) local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, bard[r1][1], 1, 6, 8, 420) end end aux.RegisterItemEvent(6602067, 1, "Idyxui2a_GiftBag") function Idyxui2b_GiftBag(MapID, InstanceID, TypeID, TargetID) local fizi = {} fizi[1] = {8099785} fizi[2] = {8099786} fizi[3] = {8099787} fizi[4] = {8099788} fizi[5] = {8099789} fizi[6] = {8099790} fizi[7] = {8099791} fizi[8] = {8099792} local mag = {} mag[1] = {8099793} mag[2] = {8099794} mag[3] = {8099795} mag[4] = {8099796} mag[5] = {8099797} mag[6] = {8099798} mag[7] = {8099799} mag[8] = {8099800} local bard = {} bard[1] = {8099801} bard[2] = {8099802} bard[3] = {8099803} bard[4] = {8099804} bard[5] = {8099805} bard[6] = {8099806} bard[7] = {8099807} local r1 = math.random(1,7) local r = math.random(1,8) local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, bard[r1][1], 1, 6, 8, 420) end end aux.RegisterItemEvent(6602068, 1, "Idyxui2b_GiftBag") function Idyxui2d_GiftBag(MapID, InstanceID, TypeID, TargetID) local fizi = {} fizi[1] = {8099933} fizi[2] = {8099934} fizi[3] = {8099935} fizi[4] = {8099936} fizi[5] = {8099937} fizi[6] = {8099938} fizi[7] = {8099939} fizi[8] = {8099940} local mag = {} mag[1] = {8099941} mag[2] = {8099942} mag[3] = {8099943} mag[4] = {8099944} mag[5] = {8099945} mag[6] = {8099946} mag[7] = {8099947} mag[8] = {8099948} local bard = {} bard[1] = {8099949} bard[2] = {8099950} bard[3] = {8099951} bard[4] = {8099952} bard[5] = {8099953} bard[6] = {8099954} bard[7] = {8099955} local r1 = math.random(1,7) local r = math.random(1,8) local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, fizi[r][1], 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, bard[r1][1], 1, 6, 8, 420) end end aux.RegisterItemEvent(6602070, 1, "Idyxui2d_GiftBag") function xMob_MW_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 6900599, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900598, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900520, 1, -1, 8, 420) end aux.RegisterCreatureEvent(3040040, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040041, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040042, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040043, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040046, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040047, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040049, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040050, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040051, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040052, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040053, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040054, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040055, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040058, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040059, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040060, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040061, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040062, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040063, 4, "xMob_MW_Cnag") aux.RegisterCreatureEvent(3040064, 4, "xMob_MW_Cnag") function xMob_ZT_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 4900403, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 4900473, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900480, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900529, 1, -1, 8, 420) end aux.RegisterCreatureEvent(3040070, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040071, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040072, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040073, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040074, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040079, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040080, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040081, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040082, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040083, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040084, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040085, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040090, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040091, 4, "xMob_ZT_Cnag") aux.RegisterCreatureEvent(3040092, 4, "xMob_ZT_Cnag") function xMob_morok_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 6900529, 1, -1, 8, 420) end aux.RegisterCreatureEvent(9010001, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010002, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010003, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010004, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010021, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010022, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010023, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010024, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010025, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010026, 4, "xMob_morok_Cnag") aux.RegisterCreatureEvent(9010027, 4, "xMob_morok_Cnag") function xMob_ZH_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) if math.random (2) == 1 then local drop = {} drop[1] = {6900591} drop[2] = {6900592} drop[3] = {6900594} local r = math.random(1,3) role.AddRoleItem(MapID, InstanceID, RoleID, drop[r][1], 1, -1, 8, 420) end end aux.RegisterCreatureEvent(3040130, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040131, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040132, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040133, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040134, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040135, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040136, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040137, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040138, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040139, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040144, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040145, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040146, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040147, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040148, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040149, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040155, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040156, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040157, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040158, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040159, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040160, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040161, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040162, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040163, 4, "xMob_ZH_Cnag") aux.RegisterCreatureEvent(3040152, 4, "xMob_ZH_Cnag") function xMob_uhi_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 2610024, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 4900394, 1, -1, 8, 420) end aux.RegisterCreatureEvent(1100196, 4, "xMob_uhi_Cnag") aux.RegisterCreatureEvent(1100197, 4, "xMob_uhi_Cnag") aux.RegisterCreatureEvent(1100198, 4, "xMob_uhi_Cnag") aux.RegisterCreatureEvent(1100199, 4, "xMob_uhi_Cnag") function xMob_GM_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 2610025, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900596, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900529, 1, -1, 8, 420) end aux.RegisterCreatureEvent(9010576, 4, "xMob_GM_Cnag") aux.RegisterCreatureEvent(9010578, 4, "xMob_GM_Cnag") aux.RegisterCreatureEvent(9010579, 4, "xMob_GM_Cnag") aux.RegisterCreatureEvent(9010580, 4, "xMob_GM_Cnag") aux.RegisterCreatureEvent(9010590, 4, "xMob_GM_Cnag") function xMob_BW_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 6900529, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 2610021, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900412, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900520, 1, -1, 8, 420) end aux.RegisterCreatureEvent(3040201, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040202, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040203, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040204, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040205, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040206, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040207, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040209, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040210, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040211, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040212, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040213, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040214, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040215, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040220, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040221, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040222, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040223, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040224, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040225, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040226, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040227, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040229, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040230, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040231, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040233, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040234, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040235, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040236, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040237, 4, "xMob_BW_Cnag") aux.RegisterCreatureEvent(3040248, 4, "xMob_BW_Cnag") function xMob_Loki_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 3100282, 1, -1, 8, 420) end aux.RegisterCreatureEvent(1070032, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1070033, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1070034, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1070035, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1060012, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1060013, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1060014, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1050013, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1050014, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1050015, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1050016, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1040015, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1040016, 4, "xMob_Loki_Cnag") aux.RegisterCreatureEvent(1040017, 4, "xMob_Loki_Cnag") --function xMob_ztZa_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) -- --role.AddRoleItem(MapID, InstanceID, RoleID, 7100590, 1, -1, 8, 420) --end -- --aux.RegisterCreatureEvent(6010033, 4, "xMob_ztZa_Cnag") -- function xMob_enot_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 6600979, 10, -1, 8, 420) end aux.RegisterCreatureEvent(1086225, 4, "xMob_enot_Cnag") function xMob_zamokADA_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 6900478, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900590, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 6900520, 1, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 4900402, 1, -1, 8, 420) end aux.RegisterCreatureEvent(3040100, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040101, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040102, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040104, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040105, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040106, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040107, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040110, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040111, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040112, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040113, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040114, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040115, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040117, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040118, 4, "xMob_zamokADA_Cnag") aux.RegisterCreatureEvent(3040121, 4, "xMob_zamokADA_Cnag") function xMob_pasha22_Cnag(MapID, InstanceID, TargetID, TargetTypeID, RoleID) role.AddRoleItem(MapID, InstanceID, RoleID, 3500212, 20, -1, 8, 420) role.AddRoleItem(MapID, InstanceID, RoleID, 4510020, 20, -1, 8, 420) role.AddRoleYuanBao(MapID, InstanceID, RoleID, 20,300) end aux.RegisterCreatureEvent(9010059, 4, "xMob_pasha22_Cnag") function Idyxui16_GiftBag(MapID, InstanceID, TypeID, TargetID) local voin = {} voin[1] = {9151035} voin[2] = {8010027} voin[3] = {8010028} voin[4] = {8010029} voin[5] = {8010030} voin[6] = {8010031} voin[7] = {8010032} voin[8] = {8010037} voin[9] = {8010033} voin[10] = {8010034} voin[11] = {8010035} voin[12] = {8010036} local lyk = {} lyk[1] = {9151036} lyk[2] = {8010038} lyk[3] = {8010039} lyk[4] = {8010040} lyk[5] = {8010041} lyk[6] = {8010042} lyk[7] = {8010043} lyk[8] = {8010044} lyk[9] = {8010045} lyk[10] = {8010046} lyk[11] = {8010047} lyk[12] = {8010048} local mag = {} mag[1] = {9151037} mag[2] = {8010049} mag[3] = {8010050} mag[4] = {8010051} mag[5] = {8010052} mag[6] = {8010053} mag[7] = {8010054} mag[8] = {8010055} mag[9] = {8010056} mag[10] = {8010057} mag[11] = {8010058} mag[12] = {8010059} local bard = {} bard[1] = {8010060} bard[2] = {8010061} bard[3] = {8010062} bard[4] = {8010063} bard[5] = {8010064} bard[6] = {8010065} bard[7] = {8010066} bard[8] = {8010067} bard[9] = {8010068} bard[10] = {8010069} bard[11] = {8010070} bard[12] = {9151038} local r = math.random(1,12) local class = role.GetRoleClass(TargetID) if class==1 or class==2 or class==6 or class==7 then --- Воин role.AddRoleItem(MapID, InstanceID, TargetID, voin[r][1], 1, 6, 8, 420) elseif class==3 or class==8 or class==9 then --- Лук role.AddRoleItem(MapID, InstanceID, TargetID, lyk[r][1], 1, 6, 8, 420) elseif class==4 or class==10 or class==11 then --- Маг role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) elseif class==5 or class==12 or class==13 then --- Бард role.AddRoleItem(MapID, InstanceID, TargetID, bard[r][1], 1, 6, 8, 420) end end aux.RegisterItemEvent(3010151, 1, "Idyxui16_GiftBag") --function Idyxui17_GiftBag(MapID, InstanceID, TypeID, TargetID) --local voin = {} --voin[1] = {8010116} --voin[2] = {8010117} --voin[3] = {8010124} --voin[4] = {8010125} --voin[5] = {8010132} --voin[6] = {8010133} --voin[7] = {8010140} --voin[8] = {8010141} --voin[9] = {8010148} --voin[10] = {8010149} --voin[11] = {8010756} --voin[12] = {8010757} --voin[13] = {8010164} --voin[14] = {8010165} --voin[15] = {8010166} --voin[16] = {8010167} --voin[17] = {8010168} --voin[18] = {8010169} --voin[19] = {8010170} --voin[20] = {8010171} -- --local lyk = {} --lyk[1] = {8010118} --lyk[2] = {8010119} --lyk[3] = {8010126} --lyk[4] = {8010127} --lyk[5] = {8010134} --lyk[6] = {8010135} --lyk[7] = {8010142} --lyk[8] = {8010143} --lyk[9] = {8010150} --lyk[10] = {8010151} --lyk[11] = {8010758} --lyk[12] = {8010759} --lyk[13] = {8010172} --lyk[14] = {8010173} --lyk[15] = {8010174} --lyk[16] = {8010175} --lyk[17] = {8010176} --lyk[18] = {8010177} --lyk[19] = {8010178} --lyk[20] = {8010179} -- --local mag = {} --mag[1] = {8010120} --mag[2] = {8010121} --mag[3] = {8010128} --mag[4] = {8010129} --mag[5] = {8010136} --mag[6] = {8010137} --mag[7] = {8010144} --mag[8] = {8010145} --mag[9] = {8010152} --mag[10] = {8010153} --mag[11] = {8010760} --mag[12] = {8010761} --mag[13] = {8010180} --mag[14] = {8010181} --mag[15] = {8010182} --mag[16] = {8010183} --mag[17] = {8010184} --mag[18] = {8010185} --mag[19] = {8010186} --mag[20] = {8010187} -- --local bard = {} --bard[1] = {8010122} --bard[2] = {8010123} --bard[3] = {8010130} --bard[4] = {8010131} --bard[5] = {8010138} --bard[6] = {8010139} --bard[7] = {8010146} --bard[8] = {8010147} --bard[9] = {8010154} --bard[10] = {8010155} --bard[11] = {8010762} --bard[12] = {8010763} --bard[13] = {8010188} --bard[14] = {8010189} --bard[15] = {8010190} --bard[16] = {8010191} --bard[17] = {8010192} --bard[18] = {8010193} --bard[19] = {8010194} --bard[20] = {8010195} -- --local r = math.random(1,20) --local class = role.GetRoleClass(TargetID) -- if class==1 or class==2 or class==6 or class==7 then --- Воин -- role.AddRoleItem(MapID, InstanceID, TargetID, voin[r][1], 1, 6, 8, 420) -- elseif class==3 or class==8 or class==9 then --- Лук -- role.AddRoleItem(MapID, InstanceID, TargetID, lyk[r][1], 1, 6, 8, 420) -- elseif class==4 or class==10 or class==11 then --- Маг -- role.AddRoleItem(MapID, InstanceID, TargetID, mag[r][1], 1, 6, 8,420) -- elseif class==5 or class==12 or class==13 then --- Бард -- role.AddRoleItem(MapID, InstanceID, TargetID, bard[r][1], 1, 6, 8, 420) -- end --end -- --aux.RegisterItemEvent(6900487, 1, "Idyxui17_GiftBag")