Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------------------------------------
- -- Name: No buffing --
- -- Description: It stops players from --
- -- buffing friendly targets. --
- -- Part of the Iron Man Challenge Scripts --
- -- Copyright Thunderofnl 2014 --
- ------------------------------------------------------------------
- require "functions"
- local function OnSpellCast(event, player, spell, skipCheck)
- local target = spell:GetTarget()
- local prohibitedSpells = {
- -- Racials
- -- Death Knight
- 57330, -- Horn of Winter R1
- 57623, -- Horn of Winter R2
- 61999, -- Raise Ally
- 12299, -- Toughness R1
- 12761, -- Toughness R2
- 12762, -- Toughness R3
- 12763, -- Toughness R4
- 12764, -- Toughness R5
- -- Druid
- 8946, -- Cure Poison
- 2893, -- Abolish Poison
- 29166, -- Innervate
- 467, -- Thorns R1
- 782, -- Thorns R2
- 1075, -- Thorns R3
- 8914, -- Thorns R4
- 9756, -- Thorns R5
- 9910, -- Thorns R6
- 26992, -- Thorns R7
- 53307, -- Thorns R8
- 21849, -- Gift of the Wild R1
- 21850, -- Gift of the Wild R2
- 26991, -- Gift of the Wild R3
- 48470, -- Gift of the Wild R4
- 5185, -- Healing Touch R1
- 5186, -- Healing Touch R2
- 5187, -- Healing Touch R3
- 5188, -- Healing Touch R4
- 5189, -- Healing Touch R5
- 6778, -- Healing Touch R6
- 8903, -- Healing Touch R7
- 9758, -- Healing Touch R8
- 9888, -- Healing Touch R9
- 9889, -- Healing Touch R10
- 25297, -- Healing Touch R11
- 26978, -- Healing Touch R12
- 26979, -- Healing Touch R13
- 48377, -- Healing Touch R14
- 48378, -- Healing Touch R15
- 33763, -- Lifebloom R1
- 48450, -- Lifebloom R2
- 48451, -- Lifebloom R3
- 1126, -- Mark of the Wild R1
- 5232, -- Mark of the Wild R2
- 6756, -- Mark of the Wild R3
- 5234, -- Mark of the Wild R4
- 8907, -- Mark of the Wild R5
- 9884, -- Mark of the Wild R6
- 9885, -- Mark of the Wild R7
- 26990, -- Mark of the Wild R8
- 48469, -- Mark of the Wild R9
- 50464, -- Nourish
- 20484, -- Rebirth R1
- 20739, -- Rebirth R2
- 20742, -- Rebirth R3
- 20747, -- Rebirth R4
- 20748, -- Rebirth R5
- 26994, -- Rebirth R6
- 48477, -- Rebirth R7
- 8936, -- Regrowth R1
- 8938, -- Regrowth R2
- 8939, -- Regrowth R3
- 8940, -- Regrowth R4
- 8941, -- Regrowth R5
- 9750, -- Regrowth R6
- 9856, -- Regrowth R7
- 9857, -- Regrowth R8
- 9858, -- Regrowth R9
- 26980, -- Regrowth R10
- 48442, -- Regrowth R11
- 48443, -- Regrowth R12
- 774, -- Rejuvenation R1
- 1058, -- Rejuvenation R2
- 1430, -- Rejuvenation R3
- 2090, -- Rejuvenation R4
- 2091, -- Rejuvenation R5
- 3627, -- Rejuvenation R6
- 8910, -- Rejuvenation R7
- 9839, -- Rejuvenation R8
- 9840, -- Rejuvenation R9
- 9841, -- Rejuvenation R10
- 25299, -- Rejuvenation R11
- 26981, -- Rejuvenation R12
- 26982, -- Rejuvenation R13
- 48440, -- Rejuvenation R14
- 48441, -- Rejuvenation R15
- 2782, -- Remove Curse
- 50769, -- Revive R1
- 50768, -- Revive R2
- 50767, -- Revive R3
- 50766, -- Revive R4
- 50765, -- Revive R5
- 50764, -- Revive R6
- 50763, -- Revive R7
- 48438, -- Wild Growth R1
- 53248, -- Wild Growth R2
- 53249, -- Wild Growth R3
- 53251, -- Wild Growth R4
- 18562, -- Swiftmend
- 740, -- Tranquility R1
- 8918, -- Tranquility R2
- 9862, -- Tranquility R3
- 9863, -- Tranquility R4
- 26983, -- Tranquility R5
- 48446, -- Tranquility R6
- 48447, -- Tranquility R7
- -- Hunter
- -- None
- -- Mage
- 1008, -- Amplify Magic R1
- 8455, -- Amplify Magic R2
- 10169, -- Amplify Magic R3
- 10170, -- Amplify Magic R4
- 27130, -- Amplify Magic R5
- 33946, -- Amplify Magic R6
- 43017, -- Amplify Magic R7
- 23028, -- Arcane Brilliance R1
- 27127, -- Arcane Brilliance R2
- 43002, -- Arcane Brilliance R3
- 1459, -- Arcane Intellect R1
- 1460, -- Arcane Intellect R2
- 1461, -- Arcane Intellect R3
- 10156, -- Arcane Intellect R4
- 10157, -- Arcane Intellect R5
- 28126, -- Arcane Intellect R6
- 42995, -- Arcane Intellect R7
- 61316, -- Dalaran Brilliance R3
- 61024, -- Dalaran Intellect
- 604, -- Dampen Magic R1
- 8450, -- Dampen Magic R2
- 8451, -- Dampen Magic R3
- 10173, -- Dampen Magic R4
- 10174, -- Dampen Magic R5
- 33944, -- Dampen Magic R6
- 43015, -- Dampen Magic R7
- 54646, -- Focus Magic
- 54628, -- Focus Magic
- 130, -- Slow Fall
- 475, -- Remove Curse
- -- Paladin
- 19742, -- Blessing of Wisdom R1
- 19850, -- Blessing of Wisdom R2
- 19852, -- Blessing of Wisdom R3
- 19853, -- Blessing of Wisdom R4
- 19854, -- Blessing of Wisdom R5
- 25290, -- Blessing of Wisdom R6
- 27142, -- Blessing of Wisdom R7
- 48935, -- Blessing of Wisdom R8
- 48936, -- Blessing of Wisdom R9
- 53563, -- Beacon of Light
- 4987, -- Cleanse
- 19750, -- Flash of Light R1
- 19939, -- Flash of Light R2
- 19940, -- Flash of Light R3
- 19941, -- Flash of Light R4
- 19942, -- Flash of Light R5
- 19943, -- Flash of Light R6
- 27137, -- Flash of Light R7
- 48784, -- Flash of Light R8
- 48785, -- Flash of Light R9
- 635, -- Holy Light R1
- 639, -- Holy Light R2
- 647, -- Holy Light R3
- 1026, -- Holy Light R4
- 1042, -- Holy Light R5
- 3472, -- Holy Light R6
- 10328, -- Holy Light R7
- 10329, -- Holy Light R8
- 25292, -- Holy Light R9
- 27135, -- Holy Light R10
- 27136, -- Holy Light R11
- 48781, -- Holy Light R12
- 48782, -- Holy Light R13
- 64891, -- Holy Mending
- 25914, -- Holy Shock R1
- 25913, -- Holy Shock R2
- 25903, -- Holy Shock R3
- 27175, -- Holy Shock R4
- 33074, -- Holy Shock R5
- 48820, -- Holy Shock R6
- 48821, -- Holy Shock R7
- 53601, -- Sacred Shield
- 1152, -- Purify
- 20217, -- Blessing of Kings
- 633, -- Lay on Hands R1
- 2800, -- Lay on Hands R2
- 10310, -- Lay on Hands R3
- 27154, -- Lay on Hands R4
- 48788, -- Lay on Hands R5
- 1044, -- Hand of Freedom
- 31789, -- Righteous Defence
- 19740, -- Blessing of Might R1
- 19834, -- Blessing of Might R2
- 19835, -- Blessing of Might R3
- 19836, -- Blessing of Might R4
- 19837, -- Blessing of Might R5
- 19838, -- Blessing of Might R6
- 25291, -- Blessing of Might R7
- 27140, -- Blessing of Might R8
- 48931, -- Blessing of Might R9
- 48932, -- Blessing of Might R10
- -- Priest
- 14752, -- Divine Spirit R1
- 14818, -- Divine Spirit R2
- 14819, -- Divine Spirit R3
- 27841, -- Divine Spirit R4
- 25312, -- Divine Spirit R5
- 48073, -- Divine Spirit R6
- 527, -- Dispel Magic R1
- 988, -- Dispel Magic R2
- 33206, -- Pain Suppression
- 47666, -- Penance R1
- 52998, -- Penance R2
- 52999, -- Penance R3
- 53000, -- Penance R4
- 10060, -- Power Infusion
- 1243, -- Power Word: Fortitude R1
- 1244, -- Power Word: Fortitude R2
- 1245, -- Power Word: Fortitude R3
- 2791, -- Power Word: Fortitude R4
- 10937, -- Power Word: Fortitude R5
- 10938, -- Power Word: Fortitude R6
- 25389, -- Power Word: Fortitude R7
- 48161, -- Power Word: Fortitude R8
- 17, -- Power Word: Shield R1
- 592, -- Power Word: Shield R2
- 600, -- Power Word: Shield R3
- 3743, -- Power Word: Shield R4
- 6065, -- Power Word: Shield R5
- 6066, -- Power Word: Shield R6
- 10898, -- Power Word: Shield R7
- 19899, -- Power Word: Shield R8
- 10900, -- Power Word: Shield R9
- 10901, -- Power Word: Shield R10
- 25217, -- Power Word: Shield R11
- 25218, -- Power Word: Shield R12
- 48065, -- Power Word: Shield R13
- 48066, -- Power Word: Shield R14
- 552, -- Abolish Disease
- 32546, -- Binding Heal R1
- 48119, -- Binding Heal R2
- 48120, -- Binding Heal R3
- 528, -- Cure Disease
- 2061, -- Flash Heal R1
- 9472, -- Flash Heal R2
- 9473, -- Flash Heal R3
- 9474, -- Flash Heal R4
- 10915, -- Flash Heal R5
- 10916, -- Flash Heal R6
- 10917, -- Flash Heal R7
- 25233, -- Flash Heal R8
- 25235, -- Flash Heal R9
- 48070, -- Flash Heal R10
- 48071, -- Flash Heal R11
- 2060, -- Greater Heal R1
- 10963, -- Greater Heal R2
- 10964, -- Greater Heal R3
- 10965, -- Greater Heal R4
- 25314, -- Greater Heal R5
- 25210, -- Greater Heal R6
- 25213, -- Greater Heal R7
- 48062, -- Greater Heal R8
- 48063, -- Greater Heal R9
- 47788, -- Guardian Spirit
- 2054, -- Heal R1
- 2055, -- Heal R2
- 6063, -- Heal R3
- 6064, -- Heal R4
- 2050, -- Lesser Heal R1
- 2052, -- Lesser Heal R2
- 2053, -- Lesser Heal R3
- 596, -- Prayer of Healing R1
- 996, -- Prayer of Healing R2
- 10960, -- Prayer of Healing R3
- 10961, -- Prayer of Healing R4
- 25316, -- Prayer of Healing R5
- 25308, -- Prayer of Healing R6
- 48072, -- Prayer of Healing R7
- 139, -- Renew R1
- 6074, -- Renew R2
- 6075, -- Renew R3
- 6076, -- Renew R4
- 6077, -- Renew R5
- 6078, -- Renew R6
- 10927, -- Renew R7
- 10928, -- Renew R8
- 10929, -- Renew R9
- 25315, -- Renew R10
- 25221, -- Renew R11
- 25222, -- Renew R12
- 48067, -- Renew R13
- 48068, -- Renew R14
- 2006, -- Resurrection R1
- 2010, -- Resurrection R2
- 10880, -- Resurrection R3
- 10881, -- Resurrection R4
- 20770, -- Resurrection R5
- 25435, -- Resurrection R6
- 48171, -- Resurrection R7
- -- Rogue
- -- Shaman
- 131, -- Water Breathing
- 546, -- Water Walking
- 2008, -- Ancestral Spirit R1
- 20609, -- Ancestral Spirit R2
- 20610, -- Ancestral Spirit R3
- 20776, -- Ancestral Spirit R4
- 20777, -- Ancestral Spirit R5
- 25590, -- Ancestral Spirit R6
- 49277, -- Ancestral Spirit R7
- 1064, -- Chain Heal R1
- 10622, -- Chain Heal R2
- 10623, -- Chain Heal R3
- 25422, -- Chain Heal R4
- 25423, -- Chain Heal R5
- 55458, -- Chain Heal R6
- 55459, -- Chain Heal R7
- 51886, -- Cleanse Spirit
- 526, -- Cure Toxins
- 974, -- Earth Shield R1
- 32593, -- Earth Shield R2
- 32594, -- Earth Shield R3
- 49283, -- Earth Shield R4
- 49284, -- Earth Shield R5
- 331, -- Healing Wave R1
- 332, -- Healing Wave R2
- 547, -- Healing Wave R3
- 913, -- Healing Wave R4
- 939, -- Healing Wave R5
- 959, -- Healing Wave R6
- 8005, -- Healing Wave R7
- 10395, -- Healing Wave R8
- 10396, -- Healing Wave R9
- 25357, -- Healing Wave R10
- 25391, -- Healing Wave R11
- 25396, -- Healing Wave R12
- 49272, -- Healing Wave R13
- 49273, -- Healing Wave R14
- 8004, -- Lesser Healing Wave R1
- 8008, -- Lesser Healing Wave R2
- 8010, -- Lesser Healing Wave R3
- 10466, -- Lesser Healing Wave R4
- 10467, -- Lesser Healing Wave R5
- 10468, -- Lesser Healing Wave R6
- 25420, -- Lesser Healing Wave R7
- 49275, -- Lesser Healing Wave R8
- 49276, -- Lesser Healing Wave R9
- 21169, -- Reincarnation
- 61295, -- Riptide R1
- 61299, -- Riptide R2
- 61300, -- Riptide R3
- 61301, -- Riptide R4
- -- Warlock
- -- Warrior
- -- Items
- 746, -- First Aid Bandages
- 1159, -- First Aid Bandages
- 3267, -- First Aid Bandages
- 3268, -- First Aid Bandages
- 7926, -- First Aid Bandages
- 7927, -- First Aid Bandages
- 10838, -- First Aid Bandages
- 10839, -- First Aid Bandages
- 18608, -- First Aid Bandages
- 18610, -- First Aid Bandages
- 23696, -- First Aid Bandages
- 27030, -- First Aid Bandages
- 27031, -- First Aid Bandages
- 45543, -- First Aid Bandages
- 45544, -- First Aid Bandages
- 51803, -- First Aid Bandages
- 51827, -- First Aid Bandages
- }
- --Actual code begins here
- if (target ~= nil) then
- if (in_table(spell:GetEntry(), prohibitedSpells)) then
- local message = "|cffFF0000[WARNING] |cffFFF200This is the Ironman Challenge. You may not help other players."
- if (player:IsAlliance()) then
- if (target:IsAlliance() and target:GetName() ~= player:GetName()) then
- player:SendBroadcastMessage(message)
- player:SendAreaTriggerMessage(message)
- spell:Cancel()
- end
- end
- if (player:IsHorde()) then
- if (target:IsHorde() and target:GetName() ~= player:GetName() ) then
- player:SendBroadcastMessage(message)
- player:SendAreaTriggerMessage(message)
- spell:Cancel()
- end
- end
- end
- end
- end
- function in_table(Var, Table)
- for _,v in pairs(Table) do
- if (v==Var) then
- return true
- end
- end
- return false
- end
- RegisterPlayerEvent(5, OnSpellCast)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement