Originally Posted by
Dr3ad
RegisterUnitEvent is commented out, you're using variable for a nil value, functions cannot have spaced name I guess. I fixed it for you.
function Admin_Wolf_Man_spawn(pUnit, event)
Wolf_Man = pUnit
end
RegisterUnitEvent(88888, 18, "Admin_Wolf_Man_spawn")
--INSERT INTO `creature_names` VALUES ('88888', 'Wolf Man', '', '', '0', '7', '0', '3', '0', '0', '657', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0');
--INSERT INTO `creature_proto` VALUES ('88888', '80', '80', '35', '2000', '2500', '0', '1', '1', '2100', '0', '100', '200', '0', '0', '0', '0', '0', '10000', '50', '50', '50', '50', '50', '50', '0', '0', '0', '1', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');
function Admin_Wolf_Man_combat(pUnit, event)
Wolf_Man:RegisterEvent("Admin_Wolf_Man_72967", 30000, 0)
function Admin_Wolf_Man_72967(pUnit, event)
if(Wolf_Man:GetCurrentSpellId() == nil) then
Wolf_Man:FullCastSpellOnTarget(72967, Wolf_Man:GetRandomPlayer(0))
end
end
end