ok guys here it is, the VERY FIRST (that ive seen) *ALMOST* Exact replica of the retail Headless Horseman script. STILL WORKING OUT A FEW BUGS
Features:
All the real spells
--*Most* of the things he says in retail
--Disoriented for 48 seconds when fighting the head changes faction to unattackable and uses the whirlwind spell like in retail (IDK if this works because my server gives me error 132 for some spells)
--Spawns Pumpkin fiend minions to fight at his aid and says what he should say when summoning them
Bugs:
--sometimes he will say something hes not suppose to when he dies. *FIXED*
--he doesn't summon his head to fight *WILL BE FIXED IN 2.0*
--Sometimes he doesn't summon the pumpkin fiends *FIXED*
Here it is. SQL included.
.npc sp 900108 -- Head of the Horseman *a little different because the real one is invis*%Included%
.npc sp 23545 -- Pumpkin Fiend (If you spawn him and hes level 1 friendly with 1/1 hp then u need to change faction to 123 hp to 10k level to 70 and damage 650 all info is found WoW Wiki - Pumpkin Fiend) %Included%
.npc sp 23682 -- Headless Horseman (If you spawn him and hes level 1 friendly with 1/1 hp then u need to change faction to 123 hp to 100k level to 70 and damage 3k-4k all info is found WoW Wiki - WoW: Headless Horseman) NOT INCLUDED COMMING IN V2.0
V2.0 will be out WHEN ALL BUGS ARE WORKED OUT
Fight Script
Code:
--Scripted by Shadowheals, Admin of WoW-Knights.25u.com
--This script is still being worked out. Please report any bugs to me via email at [email protected]. Thank you
local VERSION = "1.5"
local SERVER_NAME = "WoW Knights" --Change to your server name
function Horseman_OnSpawned(Unit, Event)
Unit:RegisterEvent("Horseman_Sound1", 1000, 1)
end
function Horseman_DuringBattle(Unit, Event)
Unit:RegisterEvent("Horseman_Sound2", 30000, 1)
Unit:RegisterEvent("Horseman_Cleave", 40000, 1)
Unit:RegisterEvent("Horseman_Whirlwind", 50000, 1)
Unit:RegisterEvent("Horseman_Whirlwind2", 80000, 1)
Unit:RegisterEvent("Horseman_Conflagration", 90000, 0)
Unit:RegisterEvent("Horseman_PumpkinFiend", 120000, 1)
end
function Horseman_Sound1(Unit, Event)
Unit:PlaySoundToSet(11961)
end
function Horseman_Sound2(Unit, Event)
Unit:PlaySoundToSet(11965)
end
function Horseman_Cleave(Unit, Event)
Unit:PlaySoundToSet(11966)
Unit:FullCastSpellOnTarget(37476, Unit:GetRandomPlayer(0))
end
function Hosreman_HeadFightBegin(Unit, Event)
Unit:RegisterEvent("Horseman_HeadFight", 1000, 0)
Unit:RegisterEvent("Horseman_HeadFight2", 1000, 0)
end
--Head Fight 1
function Horseman_Headfight(Unit, Event)
Unit:SpawnCreature (900108 ,Unit:GetX(), Unit:GetY(), Unit:GetZ(), 14, 48000)
end
function Horseman_Whirlwind(Unit, Event)
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
end
--Head Fight 2
function Horseman_Headfight2(Unit, Event)
Unit:SpawnCreature (900108 ,Unit:GetX(), Unit:GetY(), Unit:GetZ(), 14, 48000)
end
function Horseman_Whirlwind(Unit, Event)
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
Unit:CastSpell(31358)
Unit:FullCastSpellOnTarget(1680, Unit:GetRandomPlayer(0))
end
function Horseman_Conflagration(Unit, Event)
Unit:FullCastSpellOnTarget(16805, Unit:GetRandomPlayer(0))
end
--Pumpkin Fiend Minion
function Horseman_PumpkinFiend(Unit, Event)
Unit:PlaySoundToSet(11963)
Unit:SpawnCreature (23545, Unit:GetX(), Unit:GetY(), Unit:GetZ(), 14, 500000)
Unit:SpawnCreature (23545, Unit:GetX(), Unit:GetY(), Unit:GetZ(), 14, 500000)
Unit:SpawnCreature (23545, Unit:GetX(), Unit:GetY(), Unit:GetZ(), 14, 500000)
Unit:SpawnCreature (23545, Unit:GetX(), Unit:GetY(), Unit:GetZ(), 14, 500000)
end
function Horseman_OnLeaveCombat(Unit, Event)
Unit:PlaySoundToSet(11967)
Unit:RemoveEvents()
end
function Horseman_OnDied(Unit, Event)
Unit:PlaySoundToSet(11964)
Unit:RemoveEvents()
end
RegisterUnitEvent(23682, 1, "Horseman_OnSpawned")
RegisterUnitEvent(23682, 2, "Horseman_DuringBattle")
RegisterUnitEvent(23682, 3, "Hosreman_HeadFightBegin")
RegisterUnitEvent(23682, 5, "Horseman_OnLeaveCombat")
RegisterUnitEvent(23682, 4, "Horseman_OnDied")
--Never edit Below this
print (" ====================================================")
print (" Loaded: Headless Horseman Script (V"..VERSION..")")
print (" Made by Shadowheals")
print (" This script is Originally released for WoW Knights")
print (" This script now works on: ("..SERVER_NAME..")")
print (" ====================================================")
SQL for his head *YOU NEED THIS UNLESS U CHANGE SCRIPT TO REAL HEAD ID WHICH IS INVISIBLE AND YOU NEED A TARGET MACRO TO ATTACK IT*
Code:
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('900108', "Head of the Horseman", "", '', '0', '6', '0', '1', '0', '0', '25918', '0', '0', '0', '1', '1', '0', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('900108', '70', '70', '14', '63000', '63000', '36000', '1', '0', '100', '0', '3000', '4000', '0', '0', '0', '0', '0', '8000', '0', '0', '0', '0', '0', '0', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
Pumpkin Fiend (Because they are invisible normally so here's replacements.)
Code:
insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`)
values ('900111', "Pumpkin Fiend", "", '', '0', '6', '0', '0', '0', '0', '24720', '0', '0', '0', '1', '1', '0', '0');
insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`)
values ('900111', '70', '70', '123', '4500', '4500', '2500', '1', '0', '200', '0', '650', '650', '0', '0', '0', '0', '86461000', '0', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '2', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
CREDITS:
Me - For creating the script and working out most of the bugs (Still working on some)
Link_S - For helping fix a repeat problem where he would say something multiple times and piss you off LOL Thanks Link_S